/**
 * /services — layout tipo unmonde2reves/contact
 * Tipografía Inter (Maor) + soporte light/dark
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.services-page {
    /* Hero bajo cabecera transparente (como inicio) — gana a site-roadmap */
    padding-top: 0 !important;
    min-height: 100vh;
    background: var(--background, #f8f7f4);
    color: var(--text, #141414);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-anchor: none;
}

body.services-page .svc {
    width: min(1080px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

/* ── Intro tipo Dream Explorers: panel redondeado adaptativo ── */
body.services-page .svc-top {
    --svc-de-inset: clamp(12px, 2.2vw, 20px);
    --svc-hero-pad-y: clamp(3.8rem, 11vw, 9rem);
    --svc-hero-radius: clamp(20px, 3vw, 33px);
    --svc-hero-bg: #556e64;
    --svc-hero-bg-opacity: 88%;
    --svc-hero-title-size: 4.4rem;
    --svc-hero-lead-size: 1.15rem;
    --svc-hero-title-color: #f3f1ed;
    --svc-hero-lead-color: rgba(243, 241, 237, 0.88);
    --svc-hero-pos-x: 50%;
    --svc-hero-pos-y: 50%;
    --svc-hero-title-shift-x: 0%;
    --svc-hero-title-shift-y: 0%;
    --svc-hero-lead-shift-x: 0%;
    --svc-hero-lead-shift-y: 0%;
    position: relative;
    width: calc(100% - (var(--svc-de-inset) * 2));
    max-width: 100%;
    margin: max(0.65rem, calc(var(--header-h, 6.75rem) * 0.22)) auto clamp(2rem, 5vw, 3.5rem);
    box-sizing: border-box;
}

/* El panel coloreado: aspect-ratio fijo para que se vea igual en toda pantalla */
body.services-page .svc-top__heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.65 / 1;
    min-height: 400px;
    margin: 0;
    padding: var(--svc-hero-pad-y) 0;
    border-radius: var(--svc-hero-radius);
    background: color-mix(in srgb, var(--svc-hero-bg) var(--svc-hero-bg-opacity), transparent);
    color: var(--svc-hero-title-color);
    box-sizing: border-box;
    overflow: hidden;
}

body.services-page .svc-top__copy {
    width: min(52rem, calc(100% - clamp(1.5rem, 6vw, 4rem)));
    margin: 0 auto;
    padding: clamp(0.75rem, 2.5vw, 1.25rem);
    text-align: center;
    box-sizing: border-box;
    z-index: 1;
}

body.services-page .svc-top__title {
    margin: 0 0 clamp(0.55rem, 1.5vw, 0.85rem);
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: clamp(2rem, 6.2vw, var(--svc-hero-title-size, 4.4rem)) !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.05 !important;
    text-transform: none;
    color: var(--svc-hero-title-color) !important;
}

body.services-page .svc-top__lead {
    margin: 0 auto;
    max-width: 36rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(0.95rem, 2.1vw, var(--svc-hero-lead-size, 1.15rem)) !important;
    font-weight: 400;
    line-height: 1.55 !important;
    letter-spacing: normal !important;
    color: var(--svc-hero-lead-color) !important;
}

@media (max-width: 900px) {
    body.services-page .svc-top {
        --svc-de-inset: clamp(10px, 2.5vw, 14px);
        margin-top: max(0.5rem, calc(var(--header-h, 5.5rem) * 0.18));
    }
}

@media (max-width: 640px) {
    body.services-page .svc-top {
        --svc-de-inset: 10px;
    }

    body.services-page .svc-top__heading {
        border-radius: 18px;
    }

    body.services-page .svc-top__copy {
        width: min(36rem, calc(100% - 1.5rem));
    }
}

@media (max-height: 700px) and (min-width: 641px) {
    body.services-page .svc-top__title {
        font-size: clamp(1.85rem, 5vw, min(3.1rem, var(--svc-hero-title-size, 4.4rem))) !important;
    }
}

/* ── Section titles ── */
body.services-page .svc-section__title {
    margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.35rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
    color: var(--text) !important;
}

/* ── Services + photos ── */
body.services-page .svc-services {
    margin-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

body.services-page .svc-services__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 768px) {
    body.services-page .svc-services__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem 1.75rem;
    }
}

body.services-page .svc-service {
    text-align: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

body.services-page .svc-service__media {
    width: 100%;
    margin: 0 auto 1.15rem;
    overflow: hidden;
    border-radius: clamp(12px, 1.8vw, 18px);
    aspect-ratio: 4 / 5;
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

body.services-page .svc-service__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.services-page .svc-service:hover .svc-service__media img {
    transform: scale(1.04);
}

body.services-page .svc-service__title {
    margin: 0 0 0.75rem;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
    color: var(--text) !important;
}

body.services-page .svc-service__text {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem !important;
    font-weight: 400;
    line-height: 1.6 !important;
    letter-spacing: normal !important;
    color: var(--text) !important;
    opacity: 0.78;
}

/* ── Testimonials (más anchas / rectangulares) ── */
body.services-page .svc-testimonials.speech-section {
    width: min(1480px, calc(100% - clamp(1.25rem, 3.5vw, 2.5rem)));
    margin: 0 auto clamp(3.5rem, 8vw, 5.5rem);
    padding: 0;
}

body.services-page .svc-testimonials .speech-section__title {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: clamp(1.85rem, 4.2vw, 3rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

body.services-page .svc-testimonials .speech-bubbles {
    max-width: 1100px !important;
    width: 100%;
    gap: 1.25rem;
}

@media (min-width: 901px) {
    body.services-page .svc-testimonials .speech-bubbles--cols-2,
    body.services-page .svc-testimonials .speech-bubbles--cols-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(0.9rem, 1.5vw, 1.35rem);
        max-width: none !important;
    }
}

@media (max-width: 1100px) and (min-width: 701px) {
    body.services-page .svc-testimonials .speech-bubbles--cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body.services-page .svc-testimonials .speech-bubbles--cols-3 {
        grid-template-columns: 1fr;
    }
}

body.services-page .svc-testimonials .speech-bubble {
    max-width: none;
}

body.services-page .svc-testimonials .speech-bubble__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    min-height: 0;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    aspect-ratio: auto;
    color: #fff;
}

@media (max-width: 700px) {
    body.services-page .svc-testimonials .speech-bubble__inner {
        aspect-ratio: auto;
        min-height: 0;
    }
}

body.services-page .svc-testimonials .speech-bubble__inner::before {
    display: none;
}

[data-theme="dark"] body.services-page .svc-testimonials .speech-bubble__inner {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

body.services-page .svc-testimonials .speech-bubble.is-visible:hover .speech-bubble__inner {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

body.services-page .svc-testimonials .speech-bubble__logo-wrap {
    min-height: 3.25rem;
}

body.services-page .svc-testimonials .speech-bubble__logo {
    max-height: 48px;
    max-width: 130px;
}

body.services-page .svc-testimonials .speech-bubble__stars {
    gap: 5px;
    margin-top: auto;
}

body.services-page .svc-testimonials .speech-bubble__star {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.18);
    transform: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), fill 0.25s ease;
}

body.services-page .svc-testimonials .speech-bubble__star.is-filled {
    fill: #ffc107;
}

body.services-page .svc-testimonials .speech-bubble:hover .speech-bubble__star:nth-child(1) {
    transform: translateY(-4px) scale(1.08);
    transition-delay: 0ms;
}
body.services-page .svc-testimonials .speech-bubble:hover .speech-bubble__star:nth-child(2) {
    transform: translateY(-5px) scale(1.1);
    transition-delay: 45ms;
}
body.services-page .svc-testimonials .speech-bubble:hover .speech-bubble__star:nth-child(3) {
    transform: translateY(-6px) scale(1.12);
    transition-delay: 90ms;
}
body.services-page .svc-testimonials .speech-bubble:hover .speech-bubble__star:nth-child(4) {
    transform: translateY(-5px) scale(1.1);
    transition-delay: 135ms;
}
body.services-page .svc-testimonials .speech-bubble:hover .speech-bubble__star:nth-child(5) {
    transform: translateY(-4px) scale(1.08);
    transition-delay: 180ms;
}

body.services-page .svc-testimonials .speech-bubble:hover .speech-bubble__star.is-filled {
    fill: #ffc107;
}

@media (prefers-reduced-motion: reduce) {
    body.services-page .svc-testimonials .speech-bubble__star {
        transition: none;
    }

    body.services-page .svc-testimonials .speech-bubble:hover .speech-bubble__star {
        transform: none;
    }
}

body.services-page .svc-testimonials .speech-bubble__quote {
    flex: 1;
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 1rem !important;
    font-style: italic !important;
    font-weight: 400;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    color: #d0d0d0 !important;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

body.services-page .svc-testimonials .speech-bubble__author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-family: 'Inter', system-ui, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
    color: rgba(255, 255, 255, 0.88) !important;
}

body.services-page .svc-testimonials .speech-bubble__author-name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.88);
}

body.services-page .svc-testimonials .speech-bubble__author-meta {
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

body.services-page .svc-testimonials .speech-bubble.reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
}

body.services-page .svc-testimonials .speech-bubble.reveal {
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-i, 0) * 140ms);
}

body.services-page .svc-testimonials .speech-bubble.reveal.is-visible {
    opacity: 1;
    transform: none;
}

body.services-page .svc-testimonials .speech-bubble.is-visible:hover {
    transform: translateY(-6px);
}

body.services-page .svc-service.reveal {
    transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

/* ── Instagram feed: full-bleed, columnas según pantalla (Servicios + Home) ── */
.svc-instagram {
    width: 100%;
    text-align: center;
    padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.svc-instagram .svc-section__title {
    margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.35rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
    color: var(--text) !important;
}

.svc-instagram__intro,
.svc-instagram__cta-wrap {
    width: min(1080px, calc(100% - 2.5rem));
    margin-left: auto;
    margin-right: auto;
}

.svc-instagram__cta-wrap--pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.svc-instagram__cta-wrap--pair .svc-instagram__btn {
    min-width: min(14rem, 100%);
}

.svc-instagram__lead {
    margin: 0 auto 1.35rem;
    max-width: 42rem;
    font-family: "Cormorant Garamond", "Antic Didone", Georgia, serif !important;
    font-size: clamp(1.02rem, 1.7vw, 1.12rem) !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    letter-spacing: 0.01em !important;
    color: var(--text) !important;
    opacity: 0.88;
}

.svc-instagram__handle-link {
    color: inherit !important;
    font: inherit !important;
    font-weight: inherit !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.svc-instagram__handle-link:hover {
    opacity: 0.7;
}

.svc-instagram__handle {
    margin: 0 0 1.35rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text) !important;
}

.svc-instagram__grid {
    display: grid;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 1.75rem;
    margin-left: calc(50% - 50vw);
    gap: 3px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Por defecto: ocultar sobrantes; cada breakpoint muestra más */
.svc-instagram__grid .svc-instagram__cell {
    display: none;
}

.svc-instagram__grid .svc-instagram__cell:nth-child(-n + 4) {
    display: block;
}

@media (min-width: 640px) {
    .svc-instagram__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .svc-instagram__grid .svc-instagram__cell:nth-child(-n + 8) {
        display: block;
    }
}

@media (min-width: 900px) {
    .svc-instagram__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }
}

@media (min-width: 1100px) {
    .svc-instagram__grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 5px;
    }

    .svc-instagram__grid .svc-instagram__cell:nth-child(-n + 8) {
        display: block;
    }
}

@media (min-width: 1400px) {
    .svc-instagram__grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 6px;
    }
}

.svc-instagram__cell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

.svc-instagram__cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.svc-instagram__cell:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}

.svc-instagram__btn {
    --svc-btn-bg: var(--text, #141414);
    --svc-btn-fg: var(--background, #f8f7f4);
    --svc-btn-hover-bg: #ffffff;
    --svc-btn-hover-fg: var(--text, #141414);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(16rem, 100%);
    min-height: 3.125rem;
    padding: 0.85rem 1.5rem;
    overflow: hidden;
    isolation: isolate;
    border: 2px solid var(--svc-btn-bg) !important;
    background: var(--svc-btn-bg) !important;
    color: var(--svc-btn-fg) !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    text-transform: none;
    text-decoration: none;
    border-radius: 3.75rem !important;
    cursor: pointer;
}

[data-theme="dark"] .svc-instagram__btn {
    --svc-btn-hover-bg: #0c0c0c;
    --svc-btn-hover-fg: #f2f2f0;
}

.svc-instagram__btn-fill {
    position: absolute;
    display: block;
    width: 150%;
    height: 200%;
    top: -50%;
    left: -25%;
    border-radius: 50%;
    background: var(--svc-btn-hover-bg) !important;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.6s cubic-bezier(0.3, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.svc-instagram__btn-text {
    position: relative;
    z-index: 1;
    color: inherit !important;
}

.svc-instagram__btn:hover {
    color: var(--svc-btn-hover-fg) !important;
    background: var(--svc-btn-bg) !important;
}

.svc-instagram__btn:hover .svc-instagram__btn-fill {
    transform: translate3d(0, 0, 0);
}

/* Neutraliza cards/legacy de roadmap/editorial en esta página */
body.services-page .page-wrap,
body.services-page .page-hero,
body.services-page .services-grid,
body.services-page .packages,
body.services-page .process,
body.services-page .page-cta {
    display: none !important;
}
