/* Diana Lamus Báez — estilos compartidos del sitio */
/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    --color-dark: #1a1a1a;
    --color-navy: #003455;
    --color-gold: #cc9927;
    --color-cream: #f5f0e8;
    --color-gold-light: #daba7b;
    --color-white: #ffffff;
    --color-dark-brown: #1f140f;
    --nav-h: 64px;
    --font-headline: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-script: 'Photograph Signature', cursive;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    overflow-x: hidden;
    background: var(--color-cream);
}

/* ========================================
   FLOATING NAVBAR — réplica Voiceflow
   (velo de cristal + barra que se recoge al hacer scroll)
   ======================================== */
.site-nav {
    --nav-text: #515a63;
    --nav-text-hover: #1a1e23;
    --nav-text-soft: #6e797b;
    --nav-radius: 12px;
    --nav-ease: 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 24px;
    font-family: var(--font-body);
    line-height: 1.75;
}

.nav-bar {
    width: 100%;
    max-width: 85rem;
    margin-inline: auto;
    padding-inline: 2rem;
    min-height: 52px;
    border-radius: var(--nav-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all var(--nav-ease);
}

/* Velo de cristal (aparece al hacer scroll) */
.bar-veils {
    position: absolute;
    inset: 0;
    border-radius: var(--nav-radius);
    overflow: hidden;
    pointer-events: none;
}

.veil-light {
    position: absolute;
    inset: 0;
    border-radius: var(--nav-radius);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    transition: all var(--nav-ease);
}

.veil-layer {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.2);
}

.veil-layer.is-second {
    background-color: rgba(226, 230, 230, 0.5);
}

.site-nav.is-scrolled .veil-light {
    opacity: 1;
}

/* Estado inicial: logo izquierda, links centrados, acciones derecha */
.nav-brand-box,
.nav-actions {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    min-width: 0;
}

/* Estado scrolled: la barra se recoge */
@media (min-width: 992px) {
    .site-nav.is-scrolled .nav-bar {
        max-width: 61rem;
        padding-left: 1.25rem;
        padding-right: 0.75rem;
    }
    .site-nav.is-scrolled .nav-brand-box,
    .site-nav.is-scrolled .nav-actions {
        flex: 0 0 auto;
    }
}

/* Logo — colores originales */
.nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    height: 46px;
    width: auto;
    display: block;
    transition: height var(--nav-ease);
}

.site-nav.is-scrolled .nav-brand img {
    height: 40px;
}

/* Nav links */
.nav-menu {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.375rem 0.875rem;
    margin: 0;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nav-text);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
    color: var(--nav-text-hover);
}

.nav-link.is-active {
    color: var(--color-navy);
    font-weight: 600;
}

/* Dropdown trigger chevron */
.nav-link .chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-item {
    position: relative;
}

.nav-item.is-open .nav-link .chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #e2e4e5;
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-0.5rem);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.2s;
    box-shadow:
        0 24px 48px -16px rgba(15, 30, 97, 0.14),
        0 8px 16px -8px rgba(15, 30, 97, 0.08);
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.nav-item.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.nav-dropdown-link {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #38414a;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-dropdown-link.is-active {
    color: var(--color-navy);
    font-weight: 600;
}

.nav-dropdown-link:hover {
    background: #f2f7f7;
    color: var(--nav-text-hover);
}

/* Acciones */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    white-space: nowrap;
}

.nav-pill {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nav-text-soft);
    text-decoration: none;
    padding: 0.25rem 0.625rem;
    border-radius: 7px;
    transition: all 0.2s;
}

.nav-pill:hover {
    color: #1f2429;
    background-color: #ffffff;
    box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.04);
}

.nav-cta {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px 9px;
    border-radius: 8px;
    background-color: var(--color-navy);
    transition: all 0.2s;
    box-shadow:
        0 6px 16px -8px rgba(15, 30, 97, 0.08),
        0 4px 12px -6px rgba(15, 30, 97, 0.06),
        0 3px 8px -4px rgba(15, 30, 97, 0.06),
        0 2px 6px -3px rgba(15, 30, 97, 0.04),
        0 1px 4px -2px rgba(15, 30, 97, 0.04),
        0 1px 3px -1px rgba(15, 30, 97, 0.02),
        0 1px 2px 0 rgba(15, 30, 97, 0.01),
        inset 0 -1px 0 1px rgba(0, 32, 54, 0.32),
        inset 0 1px 2px -1px rgba(255, 255, 255, 0.32);
}

.nav-cta:hover {
    background-color: #002a45;
    box-shadow:
        0 6px 32px -12px rgba(15, 30, 97, 0.16),
        0 4px 24px -12px rgba(15, 30, 97, 0.12),
        0 4px 12px -4px rgba(15, 30, 97, 0.08),
        0 3px 8px -3px rgba(15, 30, 97, 0.06),
        0 2px 4px -2px rgba(15, 30, 97, 0.04),
        0 2px 4px -1px rgba(15, 30, 97, 0.02),
        0 1px 3px 0 rgba(15, 30, 97, 0.01),
        inset 0 -1px 0 1px rgba(0, 24, 40, 0.32),
        inset 0 1px 2px -1px rgba(255, 255, 255, 0.32);
}

.nav-cta:active {
    background-color: #001f33;
}

/* Hamburger button */
.nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    transition: background 0.2s ease;
}

.nav-burger:hover {
    background: rgba(255, 255, 255, 0.6);
}

.nav-burger .burger-line {
    width: 18px;
    height: 1.5px;
    background: var(--nav-text-hover);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

.nav-burger.is-active .burger-line:nth-child(1) {
    transform: translateY(3.25px) rotate(45deg);
}

.nav-burger.is-active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-burger.is-active .burger-line:nth-child(3) {
    transform: translateY(-3.25px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(242, 247, 247, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 90px 0 32px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer .nav-drawer-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: #515a63;
    text-decoration: none;
    padding: 11px 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.nav-drawer .nav-drawer-group {
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.nav-drawer .nav-drawer-link--sub {
    font-size: 0.92rem;
    padding: 8px 24px;
    color: #6e797b;
}

.nav-drawer .nav-drawer-link:hover {
    color: #1a1e23;
    background: #ffffff;
}

.nav-drawer .nav-drawer-cta {
    margin-top: 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 8px;
    background: var(--color-navy);
    transition: all 0.2s ease;
}

.nav-drawer .nav-drawer-cta:hover {
    background: #002a45;
}

/* Responsive nav */
@media (max-width: 1140px) {
    .nav-pill {
        display: none;
    }
}

@media (max-width: 991px) {
    .nav-bar {
        padding-inline: 1rem;
    }
    .nav-link {
        padding-inline: 0.5rem;
    }
}

@media (max-width: 1060px) {
    .nav-menu {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .nav-drawer {
        display: flex;
    }

    .site-nav.is-scrolled .veil-light {
        opacity: 1;
    }

    .nav-bar {
        padding: 6px 8px 6px 16px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-cta {
        font-size: 0.72rem;
        padding: 8px 14px 7px;
    }
}

@media (max-width: 480px) {
    .site-nav {
        padding: 10px 14px;
    }

    .nav-brand img,
    .site-nav.is-scrolled .nav-brand img {
        height: 36px;
    }
}

/* ========================================
   HERO SECTION — Scroll-scrubbed video
   ======================================== */
.hero-wrapper {
    /* Recorrido de scroll de la animación (~3 giros de rueda del mouse).
       Súbelo o bájalo para alargar o acortar el movimiento. */
    --hero-scroll: 100vh;
    height: calc(100vh + var(--hero-scroll));
    height: calc(100svh + var(--hero-scroll));
    position: relative;
}

.hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas for the frame sequence */
.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__canvas canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
}

/* Dark gradient overlay for readability */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Velo crema solo en el lado del texto; la ilustración queda limpia */
    background:
        linear-gradient(
            to right,
            rgba(245, 240, 232, 0.70) 0%,
            rgba(245, 240, 232, 0.45) 35%,
            rgba(245, 240, 232, 0) 58%
        );
    pointer-events: none;
}

/* Content container
   Escritorio: columna izquierda; la ilustración se acomoda (por JS) a la derecha
   del texto, nunca debajo de él. */
.hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 85rem;
    margin: 0 auto;
    padding: 104px calc(2rem + 24px) clamp(80px, 15vh, 130px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    height: 100%;
}

/* Centrado "seguro": si el texto no cabe, nunca sube por debajo del menú */
.hero__content > :first-child { margin-top: auto; }
.hero__content > :last-child { margin-bottom: auto; }

.hero__content > * {
    max-width: min(600px, 44vw);
}

/* ========================================
   HEADLINE — Playfair Display
   ======================================== */
.hero__headline {
    font-family: var(--font-headline);
    font-weight: 700;
    /* Escala también con el alto de pantalla para no chocar con el menú */
    font-size: clamp(2.2rem, min(6vw, 9.5vh), 5.5rem);
    line-height: 1.05;
    color: var(--color-navy);
    margin-bottom: clamp(14px, 3.5vh, 32px);
    position: relative;
    letter-spacing: -0.01em;
}

.hero__headline .line {
    display: block;
    overflow: hidden;
}

.hero__headline .line-inner {
    display: block;
    transform: translateY(110%) rotate(4deg);
    transform-origin: 0% 100%;
}

/* Brush accent */
.brush-accent {
    position: relative;
    display: inline-block;
}

.brush-accent::after {
    content: '';
    position: absolute;
    bottom: 4%;
    left: -4%;
    width: 108%;
    height: 35%;
    background: var(--color-gold);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: -1;
    border-radius: 3px;
}

.brush-accent.active::after {
    opacity: 0.55;
    transform: scaleX(1);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

/* ========================================
   SUBTITLE — Montserrat Uppercase
   ======================================== */
.hero__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    line-height: 1.75;
    color: #38414a;
    max-width: min(470px, 36vw);
    margin: 0 0 clamp(20px, 5vh, 44px);
    letter-spacing: 0.02em;
}

/* Palabras del subtítulo (las crea el JS para animarlas una a una) */
.hero__subtitle .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em);
    filter: blur(6px);
}

/* ========================================
   CTA BUTTONS
   ======================================== */
.hero__ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero__content > .hero__ctas {
    max-width: min(660px, 50vw);
}

/* Estado inicial mientras entran; sin transiciones CSS para que no peleen con GSAP */
.hero__ctas:not(.is-ready) .btn {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition: none;
}

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    outline: none;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-dark);
}

.btn--primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(204, 153, 39, 0.35);
}

.btn--secondary {
    background: transparent;
    color: var(--color-navy);
    border: 1.5px solid rgba(0, 52, 85, 0.35);
}

.btn--secondary:hover {
    border-color: var(--color-navy);
    background: rgba(0, 52, 85, 0.06);
    transform: translateY(-2px);
}

/* ========================================
   MARQUEE — Bottom tagline strip
   ======================================== */
.hero__marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 15;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    opacity: 0;
}

.hero__marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.hero__marquee-item {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero__marquee-item .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-gold);
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
/* Alineado con la columna de texto para no tapar la ilustración */
.hero__scroll-indicator {
    position: absolute;
    bottom: 76px;
    left: calc(max(0px, (100% - 85rem) / 2) + 2rem + 24px);
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
}

.hero__scroll-indicator span {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(26, 30, 35, 0.55);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(0, 52, 85, 0.2);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-gold);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ========================================
   SOBRE DIANA + MÉTODO
   ======================================== */
.about {
    position: relative;
    background: var(--color-cream);
    padding: clamp(80px, 11vw, 140px) 0;
    overflow: hidden;
}

.about__inner {
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 calc(2rem + 24px);
    display: grid;
    /* Sobre Diana 30% · Foto 24% · Método 46% */
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr) minmax(0, 4.6fr);
    grid-template-areas: "bio photo method";
    column-gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.about__bio { grid-area: bio; }
.about__photo { grid-area: photo; }
.about__method {
    grid-area: method;
    position: relative;
    padding-left: clamp(32px, 4vw, 56px);
    border-left: 1px solid rgba(0, 52, 85, 0.15);
}

.eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #515a63;
    margin-bottom: 18px;
}

.about__title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(1.9rem, 2.6vw, 2.5rem);
    line-height: 1.18;
    color: var(--color-navy);
    margin-bottom: 28px;
}

.about__text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.9;
    color: #38414a;
    max-width: 440px;
    margin-bottom: 36px;
}

/* Enlace con flecha */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-navy);
    text-decoration: none;
}

.link-arrow span {
    padding-bottom: 6px;
    background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
    transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow svg {
    width: 22px;
    height: 22px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow:hover span { background-size: 40% 1px; }
.link-arrow:hover svg { transform: translateX(6px); }

/* ——— Polaroid ——— */
.about__photo {
    position: relative;
    perspective: 1000px;
    width: 100%;
    max-width: 290px;
    justify-self: center;
}

.polaroid {
    --rx: 0deg;
    --ry: 0deg;
    --tx: 0px;
    --ty: 0px;
    position: relative;
    background: #fbfaf7;
    padding: 16px 16px 64px;
    box-shadow:
        0 1px 2px rgba(31, 20, 15, 0.08),
        0 18px 40px -18px rgba(31, 20, 15, 0.35);
    transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.polaroid.is-hover {
    transform: translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(0deg) scale(1.02);
    transition: transform 0.15s ease-out, box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 2px 4px rgba(31, 20, 15, 0.08),
        0 40px 70px -24px rgba(31, 20, 15, 0.45);
}

.polaroid__img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ddd;
}

.polaroid__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
    display: block;
    filter: grayscale(1) contrast(1.05);
    transform: scale(1.04) translate(var(--tx), var(--ty));
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}

.polaroid.is-hover .polaroid__img img {
    transform: scale(1.12) translate(var(--tx), var(--ty));
    transition: transform 0.3s ease-out, filter 0.8s ease;
}

/* Cinta adhesiva */
.polaroid__tape {
    position: absolute;
    top: -18px;
    right: -26px;
    width: 120px;
    height: 34px;
    background: rgba(214, 196, 160, 0.78);
    transform: rotate(32deg) translateZ(20px);
    clip-path: polygon(3% 0, 97% 4%, 100% 30%, 97% 55%, 100% 82%, 96% 100%, 4% 96%, 0 70%, 3% 45%, 0 18%);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.35);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.polaroid.is-hover .polaroid__tape {
    transform: rotate(28deg) translate(4px, -3px) translateZ(20px);
}

/* Nota de papel escrita a mano */
.polaroid__note {
    position: absolute;
    right: -20px;
    bottom: 16px;
    width: 145px;
    padding: 12px 12px 10px;
    background: #f4efe4;
    font-family: 'Caveat', var(--font-script);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.1;
    color: #1f140f;
    text-align: center;
    transform: rotate(-4deg) translateZ(40px);
    clip-path: polygon(0 4%, 6% 0, 14% 3%, 24% 0, 36% 2%, 48% 0, 60% 3%, 72% 0, 84% 2%, 94% 0, 100% 4%, 98% 100%, 88% 97%, 76% 100%, 64% 98%, 50% 100%, 38% 97%, 26% 100%, 14% 98%, 2% 100%);
    filter: drop-shadow(0 6px 10px rgba(31, 20, 15, 0.18));
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.polaroid.is-hover .polaroid__note {
    transform: rotate(-7deg) translate(8px, 6px) translateZ(40px);
}

/* ——— Método ——— */
.method__title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(1.7rem, 2.3vw, 2.2rem);
    line-height: 1.2;
    color: var(--color-navy);
    margin-bottom: 14px;
}

.method__lead {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.7;
    color: #38414a;
    max-width: 540px;
    margin-bottom: 26px;
}

.method__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 30px -14px;
}

.method__step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: default;
    isolation: isolate;
    outline: none;
}

/* El azul entra al fondo de la fila */
.method__step::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--color-navy);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.method__num {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--color-gold);
    color: #ffffff;
    font-family: var(--font-headline);
    font-size: 1.05rem;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.method__name {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a1e23;
    transition: color 0.35s ease;
}

.method__q {
    display: block;
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: #515a63;
    transition: color 0.35s ease;
}

.method__step:hover::before,
.method__step:focus-visible::before {
    transform: scaleX(1);
}

.method__step:hover .method__num,
.method__step:focus-visible .method__num {
    background: #ffffff;
    color: var(--color-gold);
    transform: rotate(-8deg) scale(1.06);
}

.method__step:hover .method__name,
.method__step:focus-visible .method__name {
    color: #ffffff;
}

.method__step:hover .method__q,
.method__step:focus-visible .method__q {
    color: rgba(255, 255, 255, 0.78);
}

/* Tablet: bio + foto arriba, método abajo */
@media (max-width: 1100px) {
    .about__inner {
        grid-template-columns: minmax(0, 1fr) clamp(240px, 36vw, 340px);
        grid-template-areas:
            "bio photo"
            "method method";
        row-gap: 72px;
    }
    .about__method {
        padding-left: 0;
        padding-top: 56px;
        border-left: 0;
        border-top: 1px solid rgba(0, 52, 85, 0.15);
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        column-gap: 48px;
        align-items: start;
    }
    .method__list { margin-bottom: 0; grid-column: 2; grid-row: 1 / span 2; }
    .method__list + .link-arrow { grid-column: 1; grid-row: 2; align-self: start; }
}

/* Tablet vertical y móvil: sin foto (misma condición que el hero) */
@media (max-width: 900px), (max-aspect-ratio: 11/10) {
    .about__photo {
        display: none;
    }
    .about__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "bio"
            "method";
        row-gap: 56px;
    }
    .about__text {
        max-width: 620px;
    }
}

/* Móvil: una columna */
@media (max-width: 700px) {
    .about__inner {
        padding: 0 24px;
        row-gap: 48px;
    }
    .about__method {
        display: block;
        padding-top: 48px;
    }
    .method__list { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .polaroid,
    .polaroid *,
    .method__step::before,
    .method__num {
        transition: none !important;
    }
}

/* ========================================
   CASOS + CIFRAS (banda azul de marca)
   ======================================== */
.cases {
    position: relative;
    background:
        radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 55%),
        var(--color-navy);
    color: var(--color-white);
    overflow: hidden;
}

.cases__inner {
    max-width: 85rem;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 88px) calc(2rem + 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.5fr);
    grid-template-areas: "text art stats";
    align-items: center;
    column-gap: clamp(24px, 3vw, 48px);
}

.cases__text { grid-area: text; }

.cases .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.cases__title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    line-height: 1.22;
    color: var(--color-white);
    margin-bottom: 30px;
}

.link-arrow--light {
    color: var(--color-white);
}

.cases__art {
    grid-area: art;
    position: relative;
}

/* Ilustración interactiva: inclinación 3D, halo dorado que sigue al cursor
   y un destello que recorre solo la silueta (máscara con la misma imagen) */
.cases__art {
    perspective: 1100px;
}

.cases__art-tilt {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    animation: artFloat 6s ease-in-out infinite;
}

.cases__art-tilt.is-hover {
    animation-play-state: paused;
    transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1.05);
    transition: transform 0.2s ease-out;
}

.cases__art-tilt img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 18, 31, 0.45));
    transform: translateZ(30px);
    transition: filter 0.6s ease;
}

.cases__art-tilt.is-hover img {
    filter: drop-shadow(0 30px 40px rgba(0, 12, 22, 0.55)) saturate(1.12);
}

.cases__art-glow {
    position: absolute;
    inset: -12%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(204, 153, 39, 0.45) 0%, rgba(204, 153, 39, 0.12) 30%, rgba(204, 153, 39, 0) 60%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.cases__art-tilt.is-hover .cases__art-glow {
    opacity: 1;
}

.cases__art-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    transform: translateZ(31px);
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 65%);
    background-size: 250% 100%;
    background-position: 150% 0;
    -webkit-mask: url('../img/consultoria-marketing-redes-sociales-diseno-web.webp') center / 100% 100% no-repeat;
    mask: url('../img/consultoria-marketing-redes-sociales-diseno-web.webp') center / 100% 100% no-repeat;
    mix-blend-mode: soft-light;
    opacity: 0;
}

.cases__art-tilt.is-hover .cases__art-shine {
    animation: artShine 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes artFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

@keyframes artShine {
    0% { opacity: 1; background-position: 150% 0; }
    100% { opacity: 1; background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cases__art-tilt,
    .cases__art-tilt.is-hover {
        animation: none;
        transform: none;
    }
    .cases__art-shine { display: none; }
}

/* Cifras */
.cases__stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    align-content: center;
    align-items: start;
    padding-left: clamp(24px, 3vw, 48px);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    list-style: none;
    margin: 0;
}

.stat {
    padding: 8px clamp(14px, 2vw, 32px);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stat:first-child {
    border-left: 0;
    padding-left: 0;
}

.stat__num {
    display: block;
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    line-height: 1;
    color: var(--color-white);
    margin-bottom: 14px;
    font-variant-numeric: lining-nums tabular-nums;
    white-space: nowrap;
}

.stat__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    max-width: 12ch;
}

/* Tablet: texto + ilustración arriba, cifras abajo */
@media (max-width: 1100px) {
    .cases__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        grid-template-areas:
            "text art"
            "stats stats";
        row-gap: 48px;
    }
    .cases__stats {
        padding-left: 0;
        padding-top: 40px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.35);
    }
}

/* Móvil: una columna */
@media (max-width: 640px) {
    .cases__inner {
        padding-inline: 24px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "text"
            "art"
            "stats";
        row-gap: 36px;
    }
    .cases__art {
        width: min(100%, 420px);
        margin: 0 auto;
    }
    .stat {
        padding-inline: 12px;
    }
    .stat__num {
        font-size: clamp(1.9rem, 9vw, 2.4rem);
    }
    .stat__label {
        font-size: 0.78rem;
    }
}

/* ========================================
   IDEAS / BLOG
   ======================================== */
.ideas {
    background: #ffffff;
    padding: clamp(80px, 10vw, 130px) 0;
}

.ideas__inner {
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 calc(2rem + 24px);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.4fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: center;
}

.ideas__title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(2.2rem, 3.4vw, 3.4rem);
    line-height: 1.1;
    color: var(--color-navy);
    margin-bottom: 28px;
}

.ideas__text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.85;
    color: #38414a;
    max-width: 380px;
    margin-bottom: 32px;
}

.ideas__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 28px);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Tarjeta */
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 52, 85, 0.1);
    border-radius: 14px;
    padding: 12px;
    box-shadow:
        0 1px 2px rgba(15, 30, 50, 0.05),
        0 10px 24px -14px rgba(15, 30, 50, 0.18);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover,
.post-card:focus-within {
    transform: translateY(-8px);
    box-shadow:
        0 2px 4px rgba(15, 30, 50, 0.05),
        0 28px 48px -20px rgba(0, 52, 85, 0.35);
}

.post-card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: 10px;
    overflow: hidden;
    background: #e6eef0;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card__media img {
    transform: scale(1.07);
}

.post-card__time {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(0, 30, 50, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: #ffffff;
}

.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 6px 4px;
}

.post-card__title {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.35vw, 1.3rem);
    line-height: 1.25;
    color: #1a1e23;
    margin-bottom: 6px;
}

.post-card__cat {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #6e797b;
    margin-bottom: 10px;
}

.post-card__desc {
    font-family: var(--font-body);
    font-size: 0.86rem;
    line-height: 1.6;
    color: #38414a;
    margin-bottom: 18px;
}

.post-card__btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--color-navy);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Toda la tarjeta es clicable a través del botón */
.post-card__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
}

.post-card__btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card__btn {
    background: #002a45;
}

.post-card:hover .post-card__btn svg {
    transform: translateX(4px);
}

.post-card__btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* Tablet y móvil: intro arriba, tarjetas en carrusel deslizable */
@media (max-width: 1024px) {
    .ideas__inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }
    .ideas__text { max-width: 560px; margin-bottom: 0; }
    .ideas__intro .link-arrow { margin-top: 24px; }
    .ideas__cards {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 calc(-2rem - 24px);
        padding: 8px calc(2rem + 24px) 28px;
        scroll-padding-inline: calc(2rem + 24px);
        scrollbar-width: none;
    }
    .ideas__cards::-webkit-scrollbar { display: none; }
    .ideas__cards > li {
        flex: 0 0 min(300px, 78vw);
        scroll-snap-align: start;
    }
}

@media (max-width: 700px) {
    .ideas__inner { padding: 0 24px; }
    .ideas__cards {
        margin: 0 -24px;
        padding: 8px 24px 28px;
        scroll-padding-inline: 24px;
    }
}

/* ========================================
   PREGUNTAS FRECUENTES
   ======================================== */
.faq {
    background: var(--color-cream);
    padding: clamp(80px, 10vw, 130px) 0;
}

.faq__inner {
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 calc(2rem + 24px);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: clamp(40px, 6vw, 110px);
    align-items: start;
}

.faq__intro {
    position: sticky;
    top: 120px;
}

.faq__title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(2.2rem, 3.8vw, 3.6rem);
    line-height: 1.08;
    color: var(--color-navy);
}

.faq__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(0, 52, 85, 0.16);
}

.faq__item {
    border-bottom: 1px solid rgba(0, 52, 85, 0.16);
}

.faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 4px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(0.92rem, 1.1vw, 1.02rem);
    line-height: 1.45;
    color: #1a1e23;
    transition: color 0.25s ease;
}

.faq__q:hover,
.faq__item.is-open .faq__q {
    color: var(--color-navy);
}

.faq__q:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Ícono + que gira y se convierte en × */
.faq__icon {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.6px;
    background: currentColor;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: background-color 0.35s ease;
}

.faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq__q:hover .faq__icon {
    background: rgba(0, 52, 85, 0.08);
}

.faq__item.is-open .faq__icon {
    transform: rotate(135deg);
    background: var(--color-navy);
}

.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
    background: #ffffff;
}

/* Respuesta: se despliega animando la altura (grid 0fr → 1fr) */
.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item.is-open .faq__a {
    grid-template-rows: 1fr;
}

.faq__a-inner {
    overflow: hidden;
}

.faq__a p {
    font-family: var(--font-body);
    font-size: 0.93rem;
    line-height: 1.85;
    color: #38414a;
    max-width: 600px;
    padding: 0 56px 26px 4px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__item.is-open .faq__a p {
    opacity: 1;
    transform: none;
    transition-delay: 0.1s;
}

.faq__a a {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-gold);
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .faq__inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }
    .faq__intro { position: static; }
}

@media (max-width: 700px) {
    .faq__inner { padding: 0 24px; }
    .faq__q { padding: 20px 0; }
    .faq__a p { padding: 0 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .faq__a, .faq__a p, .faq__icon { transition: none; }
}

/* ========================================
   CONTACTO
   ======================================== */
.contact {
    position: relative;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 55%),
        var(--color-navy);
    color: #ffffff;
    padding: clamp(80px, 10vw, 130px) 0;
    overflow: hidden;
}

.contact__inner {
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 calc(2rem + 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: clamp(40px, 6vw, 110px);
    align-items: center;
}

.contact .eyebrow { color: rgba(255, 255, 255, 0.7); }

.contact__title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(2.2rem, 3.8vw, 3.6rem);
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 24px;
}

.contact__title em {
    font-style: italic;
    color: var(--color-gold-light);
}

.contact__text {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.8);
    max-width: 440px;
    margin-bottom: 40px;
}

.contact__channels {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
}

.channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.channel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateX(6px);
}

.channel__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
}

/* ——— Íconos de papel con animación stop motion ———
   Al pasar el mouse el ícono "salta" en cuadros sueltos (steps), como papel
   movido a mano entre fotos, y su sombra cambia en cada cuadro. */
.paper-icon img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 15, 28, 0.35));
    transform-origin: 50% 70%;
}

.paper-icon:hover img,
.paper-icon:focus-visible img,
.channel:hover .paper-icon img,
.channel:focus-visible .paper-icon img {
    animation: paperStop 0.72s steps(1, end) infinite;
}

@keyframes paperStop {
    0%     { transform: translate(0, -2px) rotate(-4deg) scale(1.04);  filter: drop-shadow(1px 6px 5px rgba(0, 15, 28, 0.4)); }
    16.66% { transform: translate(1px, -5px) rotate(3deg) scale(1.08); filter: drop-shadow(-2px 9px 6px rgba(0, 15, 28, 0.35)); }
    33.33% { transform: translate(-1px, -3px) rotate(-6deg) scale(1.05); filter: drop-shadow(2px 7px 5px rgba(0, 15, 28, 0.4)); }
    50%    { transform: translate(0, -6px) rotate(5deg) scale(1.09);  filter: drop-shadow(-1px 10px 7px rgba(0, 15, 28, 0.32)); }
    66.66% { transform: translate(1px, -4px) rotate(-2deg) scale(1.06); filter: drop-shadow(1px 8px 6px rgba(0, 15, 28, 0.38)); }
    83.33% { transform: translate(-1px, -5px) rotate(4deg) scale(1.07); filter: drop-shadow(-2px 9px 6px rgba(0, 15, 28, 0.35)); }
}

@media (prefers-reduced-motion: reduce) {
    .paper-icon:hover img,
    .paper-icon:focus-visible img,
    .channel:hover .paper-icon img {
        animation: none;
        transform: translateY(-3px);
    }
}

.channel__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.channel__value {
    display: block;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 500;
}

.channel__arrow {
    margin-left: auto;
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.channel:hover .channel__arrow { transform: translateX(4px); opacity: 1; }

/* Formulario */
.contact-form {
    background: #ffffff;
    color: #1a1e23;
    border-radius: 18px;
    padding: clamp(24px, 3vw, 40px);
    box-shadow: 0 30px 60px -30px rgba(0, 12, 22, 0.6);
}

.contact-form__title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.contact-form__lead {
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: #6e797b;
    margin-bottom: 26px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #38414a;
}

.field label span { color: var(--color-gold); }

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #1a1e23;
    background: #f7f5f1;
    border: 1px solid #e2e4e5;
    border-radius: 10px;
    padding: 13px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23515a63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #9aa3a6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(0, 52, 85, 0.12);
}

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.field__error {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #c0392b;
    min-height: 0;
}

.form-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.5;
    color: #515a63;
}

.form-consent input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-navy);
    flex-shrink: 0;
}

.form-consent.is-invalid { color: #c0392b; }

/* Solicitud por WhatsApp: código de país + número */
.phone-input {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
}

.phone-input select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #1a1e23;
    background: #f7f5f1;
    border: 1px solid #e2e4e5;
    border-radius: 10px;
    padding: 13px 10px;
}

.phone-input select:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(0, 52, 85, 0.12);
}

.field.is-invalid .phone-input input {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.wa-form__direct {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #515a63;
}

.wa-form__direct a,
.form-success a,
.form-status a {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-gold);
    text-underline-offset: 3px;
}

/* ========================================
   BOTÓN FLOTANTE DE WHATSAPP (solo escritorio)
   ======================================== */
.wa-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 990;
    display: none;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) and (hover: hover) {
    .wa-float { display: flex; }
}

.wa-float.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.wa-float__btn {
    position: relative;
    display: block;
    width: 66px;
    height: 66px;
}

/* Onda suave que invita a hacer clic */
.wa-float__btn::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    background: rgba(63, 138, 98, 0.45);
    z-index: -1;
    animation: waPulse 2.6s ease-out infinite;
}

.wa-float__btn img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 16px rgba(0, 20, 35, 0.35));
    transform-origin: 50% 70%;
}

.wa-float:hover .wa-float__btn img,
.wa-float:focus-visible .wa-float__btn img {
    animation: paperStop 0.72s steps(1, end) infinite;
}

.wa-float__label {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-navy);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 26px -12px rgba(0, 20, 35, 0.6);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
    opacity: 1;
    transform: none;
}

.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float__btn { outline: 2px solid var(--color-gold); outline-offset: 4px; border-radius: 16px; }

@keyframes waPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    70% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float__btn::before { animation: none; }
    .wa-float:hover .wa-float__btn img { animation: none; }
}

.form-consent a {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-gold);
    text-underline-offset: 2px;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dark);
    background: var(--color-gold);
    border: 0;
    border-radius: 999px;
    padding: 15px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 153, 39, 0.35);
}

.form-submit[disabled] { opacity: 0.7; cursor: wait; transform: none; }

.form-status {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #38414a;
}

.form-status.is-error { color: #c0392b; }

/* Estado enviado */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 10px;
}

.contact-form.is-sent .form-body { display: none; }
.contact-form.is-sent .form-success { display: block; }

.form-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 52, 85, 0.08);
    color: var(--color-navy);
}

.form-success h3 {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.form-success p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #515a63;
}

.hp-field { position: absolute; left: -9999px; }

@media (max-width: 960px) {
    .contact__inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 48px;
    }
    .contact__channels { max-width: 520px; }
}

@media (max-width: 700px) {
    .contact__inner { padding: 0 20px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .form-submit { width: 100%; }
}

/* ========================================
   FOOTER — paisaje de papel en capas
   ======================================== */
.site-footer {
    position: relative;
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-body);
}

/* Paisaje: lo dibuja el JS (capas, hojas y flores de papel) */
.footer-scape {
    position: relative;
    height: clamp(300px, 38vw, 560px);
    background: linear-gradient(to bottom, #f5f0e8 0%, #f1e9dc 70%, #ebdfcb 100%);
    overflow: hidden;
}

/* Ilustración de crecimiento: queda "metida" bajo el papel rasgado */
.footer-scape__art {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 2%;
    height: 92%;
    width: auto;
    max-width: 94%;
    object-fit: contain;
    object-position: 50% 100%;
    filter: drop-shadow(0 10px 18px rgba(0, 25, 43, 0.12));
}

.footer-scape svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.footer-scape .layer {
    will-change: transform;
}

.footer-main {
    max-width: 85rem;
    margin: -1px auto 0;
    padding: clamp(48px, 6vw, 72px) calc(2rem + 24px) 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 64px);
}

.footer-brand img {
    height: 58px;
    width: auto;
    display: block;
    margin-bottom: 22px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 340px;
    margin-bottom: 28px;
}

.footer-col h3 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: 20px;
    padding-bottom: 14px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-gold);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease, padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-col a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1.5px;
    background: var(--color-gold);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-col a:hover {
    color: #ffffff;
    padding-left: 18px;
}

.footer-col a:hover::before { width: 10px; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: var(--color-gold);
}

/* Íconos sociales de papel: dos capas recortadas + sombra */
.social {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social a {
    display: block;
    width: 54px;
    height: 54px;
    text-decoration: none;
}

.social a:focus-visible {
    outline: 2px solid var(--color-gold-light);
    outline-offset: 4px;
    border-radius: 12px;
}

.footer-contact__icon {
    flex-shrink: 0;
    width: 24px;
    height: auto;
    margin-top: -1px;
}

/* Barra inferior */
.footer-bottom {
    max-width: 85rem;
    margin: 0 auto;
    padding: 22px calc(2rem + 24px) 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom a:hover { color: #ffffff; }

.to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.to-top span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.to-top:hover { color: #ffffff; }
.to-top:hover span { background: var(--color-gold); border-color: var(--color-gold); transform: translateY(-4px); }

@media (max-width: 1024px) {
    .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 520px; }
}

@media (max-width: 640px) {
    /* Altura justa para la ilustración (proporción 1678×937) */
    .footer-scape { height: calc(94vw * 0.558 + 48px); }
    .footer-main {
        padding-inline: 24px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 24px;
    }
    .footer-contact-col { grid-column: 1 / -1; }
    .footer-bottom {
        padding-inline: 24px;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ========================================
   SPACER (Content after hero for scroll)
   ======================================== */
.content-spacer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    padding: 80px 40px;
}

.content-spacer p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-dark);
    text-align: center;
    max-width: 600px;
    opacity: 0.5;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .hero__headline .line-inner {
        transform: none !important;
    }
    .hero__subtitle .w,
    .hero__ctas .btn,
    .hero__canvas canvas,
    .hero__marquee,
    .hero__scroll-indicator {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .brush-accent::after {
        opacity: 0.55 !important;
        transform: scaleX(1) !important;
    }
    .hero__marquee-track {
        animation: none !important;
    }
    @keyframes scrollPulse {
        0%, 100% { top: 0; }
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-height: 700px) {
    .hero__scroll-indicator {
        display: none;
    }
}

/* Tablet vertical y móvil: la mujer ocupa todo el fondo, velo oscuro
   y texto blanco centrado encima. (Misma condición que STACKED_QUERY en el JS) */
@media (max-width: 900px), (max-aspect-ratio: 11/10) {
    .hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(26, 26, 26, 0.50) 0%,
            rgba(26, 26, 26, 0.38) 45%,
            rgba(26, 26, 26, 0.55) 100%
        );
    }
    .hero__content {
        align-items: center;
        text-align: center;
        padding: 104px 40px 84px;
    }
    .hero__content > *,
    .hero__content > .hero__ctas {
        max-width: 640px;
    }
    .hero__headline {
        font-size: clamp(2.1rem, min(8vw, 8vh), 3.8rem);
        color: var(--color-white);
        margin-bottom: 20px;
    }
    .hero__headline .line-inner {
        transform-origin: 50% 100%;
    }
    .hero__subtitle {
        max-width: 560px;
        margin-bottom: 32px;
        color: rgba(255, 255, 255, 0.9);
    }
    .hero__ctas {
        gap: 12px;
        justify-content: center;
    }
    .btn {
        padding: 14px 26px;
    }
    .btn--secondary {
        color: var(--color-white);
        border-color: rgba(255, 255, 255, 0.55);
    }
    .btn--secondary:hover {
        border-color: var(--color-white);
        background: rgba(255, 255, 255, 0.1);
    }
    .hero__scroll-indicator {
        display: none;
    }
    /* El menú siempre con su velo de cristal para que el logo se lea sobre la foto */
    .site-nav .veil-light {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero__content {
        padding: 96px 28px 72px;
    }
    .hero__marquee {
        padding: 14px 0;
    }
    .hero__marquee-item {
        font-size: 0.65rem;
        padding: 0 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero__content {
        padding: 88px 20px 68px;
    }
    .hero__headline {
        font-size: clamp(2rem, 10vw, 2.7rem);
        margin-bottom: 18px;
    }
    .hero__subtitle {
        font-size: 0.88rem;
        line-height: 1.7;
        margin-bottom: 28px;
    }
    .hero__ctas {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 22px;
    }
}
