/* =========================================================
   FUNDACIÓN PAQARINA — styles
   Paleta inspirada en logo + Desierto de Atacama
   ========================================================= */

:root {
    --c-brick: #8B2418;
    --c-brick-dark: #5C1810;
    --c-brick-soft: #A8392A;

    --c-sand-50: #FAF6EE;
    --c-sand-100: #F2EAD8;
    --c-sand-200: #E8DCC2;
    --c-sand-300: #D4C0A0;

    --c-ink: #2A2118;
    --c-ink-soft: #5C4D40;
    --c-ink-muted: #897764;
    --c-line: rgba(42, 33, 24, 0.12);

    --c-night: #1A0E08;
    --c-night-2: #2A1810;

    --ff-display: "Cormorant Garamond", "Georgia", serif;
    --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1200px;
    --container-narrow: 760px;

    --radius: 4px;
    --radius-lg: 12px;

    --shadow-sm: 0 2px 8px rgba(42, 33, 24, 0.06);
    --shadow-md: 0 12px 36px rgba(42, 33, 24, 0.10);
    --shadow-lg: 0 24px 60px rgba(42, 33, 24, 0.18);

    --nav-h: 76px;
    --t: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--c-ink);
    background: var(--c-sand-50);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }

::selection { background: var(--c-brick); color: var(--c-sand-50); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }
.container--narrow { max-width: var(--container-narrow); text-align: center; }

.kicker {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-brick);
    font-weight: 500;
    margin-bottom: 14px;
}

.rule {
    display: block;
    width: 56px;
    height: 2px;
    background: var(--c-brick);
    margin: 18px auto 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    transition: all var(--t);
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary { background: var(--c-brick); color: #fff; border-color: var(--c-brick); }
.btn--primary:hover { background: var(--c-brick-dark); border-color: var(--c-brick-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { background: transparent; color: var(--c-brick); border-color: var(--c-brick); }
.btn--outline:hover { background: var(--c-brick); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 18px 40px; font-size: 15px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background var(--t), box-shadow var(--t), border-color var(--t);
    border-bottom: 1px solid transparent;
}
.nav__inner {
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav__brand {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.nav__logo {
    width: auto;
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.4,0,.2,1);
}
/* Color (horizontal burdeo) — used when scrolled */
.nav__logo--color {
    height: 42px;
    opacity: 0;
    pointer-events: none;
}
/* White stacked — BIG in hero, overflows the nav downward */
.nav__logo--white {
    position: absolute;
    top: 8px;
    left: 0;
    height: 120px;
    opacity: 1;
    transform-origin: left top;
    filter: drop-shadow(0 2px 14px rgba(0,0,0,0.4));
}

/* state: scrolled — big white logo disappears, burdeo horizontal appears */
.nav.is-solid {
    background: rgba(250, 246, 238, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--c-line);
    box-shadow: var(--shadow-sm);
}
.nav.is-solid .nav__logo--white {
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
}
.nav.is-solid .nav__logo--color {
    opacity: 1;
    pointer-events: auto;
}

/* state: hero — only the big white logo visible */
.nav.is-hero .nav__logo--white { opacity: 1; transform: scale(1); }
.nav.is-hero .nav__logo--color { opacity: 0; }
.nav.is-hero .nav__menu a:not(.nav__cta) { color: rgba(255, 255, 255, 0.92); }
.nav.is-hero .nav__cta { background: rgba(255,255,255,.95); color: var(--c-brick-dark); border-color: rgba(255,255,255,.95); }
.nav.is-hero .nav__toggle span { background: #fff; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__menu a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-ink);
    position: relative;
    padding: 6px 0;
}
.nav__menu a:not(.nav__cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 2px;
    background: var(--c-brick);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__menu a:not(.nav__cta).is-active::after { transform: scaleX(1); }

/* App menu item — plain link + "Pictografías" badge */
.nav__app { display: inline-flex; align-items: center; gap: 8px; }
.nav__menu .nav__app[aria-current="page"] { color: var(--c-brick); }
.nav__menu .nav__app[aria-current="page"]::after { transform: scaleX(1); }
.nav.is-hero .nav__menu .nav__app[aria-current="page"] { color: #fff; }
.nav__badge {
    display: inline-block;
    padding: 2px 7px;
    font-family: var(--ff-body);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.5;
    color: #fff;
    background: var(--c-brick);
    border-radius: 999px;
    white-space: nowrap;
    animation: badgePulse 2.2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 57, 42, 0.55); transform: scale(1); }
    50%      { box-shadow: 0 0 9px 1px rgba(168, 57, 42, 0.75); transform: scale(1.06); }
}
.nav.is-hero .nav__badge {
    background: rgba(255, 255, 255, 0.96);
    color: var(--c-brick-dark);
    animation: badgePulseLight 2.2s ease-in-out infinite;
}
@keyframes badgePulseLight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); transform: scale(1); }
    50%      { box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.85); transform: scale(1.06); }
}

/* Social icons in the nav */
.nav__social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid var(--c-line);
}
.nav__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border-radius: 50%;
    color: var(--c-ink);
    transition: color var(--t), background var(--t), transform var(--t);
}
.nav__social a:hover { color: var(--c-brick); background: var(--c-sand-100); transform: translateY(-1px); }
.nav__social a::after { display: none !important; }
.nav__social svg { width: 18px; height: 18px; }
.nav.is-hero .nav__social { border-left-color: rgba(255, 255, 255, 0.25); }
.nav.is-hero .nav__social a { color: rgba(255, 255, 255, 0.9); }
.nav.is-hero .nav__social a:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }

.nav__cta {
    background: var(--c-brick);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--t);
}
.nav__cta:hover { background: var(--c-brick-dark); transform: translateY(-1px); }
.nav__cta::after { display: none !important; }

.nav__toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-ink);
    transition: all var(--t);
    border-radius: 2px;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding: calc(var(--nav-h) + 24px) 0 80px;
}

.hero__video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a0e08 url("assets/bg-aves.svg") center/cover no-repeat;
}
.hero__video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    min-width: 100%; min-height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero__video.is-ready { opacity: 1; }

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(26,14,8,.40) 0%, rgba(92,24,16,.42) 70%),
        linear-gradient(180deg, rgba(92,24,16,.26) 0%, rgba(139,36,24,.20) 50%, rgba(92,24,16,.55) 100%),
        linear-gradient(90deg, rgba(26,14,8,.50) 0%, rgba(26,14,8,0) 62%);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    padding: 0 24px;
    margin-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
    /* intentional offset below the overflowing logo, balanced */
    margin-top: 56px;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(255,255,255,.08);
}
/* When the eyebrow follows the lead (placed at the bottom) */
.hero__lead + .hero__eyebrow {
    margin-top: 12px;
    margin-bottom: 0;
}

.hero__title {
    font-family: var(--ff-display);
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 500;
    line-height: 1.02;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero__title-em {
    font-style: italic;
    color: var(--c-sand-200);
    font-weight: 400;
}

.hero__lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255,255,255,.9);
    max-width: 560px;
    margin: 0 0 36px;
    text-shadow: 0 1px 12px rgba(0,0,0,.3);
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 28px;
    height: 46px;
    border: 1.5px solid rgba(255,255,255,.6);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.hero__scroll span {
    width: 3px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
    padding: clamp(72px, 10vw, 120px) 0;
    position: relative;
    overflow: hidden;
}
.section--cream { background: var(--c-sand-50); }
.section--sand { background: var(--c-sand-100); }

/* Significado — parallax bird banner background */
.section--significado > .container { position: relative; z-index: 1; }
.significado__bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    max-width: none;
    height: auto;
    opacity: 0.15;
    filter: invert(1);
    pointer-events: none;
    transform: translate(-50%, calc(-50% + var(--parallax-y, 0px)));
    will-change: transform;
    z-index: 0;
    user-select: none;
}
@media (max-width: 720px) {
    .significado__bg { width: 220%; opacity: 0.15; }
}
.section--dark {
    background: var(--c-night);
    color: var(--c-sand-100);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 36, 24, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 36, 24, 0.12) 0%, transparent 50%);
}
.section--prospect {
    background: var(--c-brick-dark);
    color: var(--c-sand-100);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(212, 192, 160, 0.15) 0%, transparent 60%);
}
.section--cta {
    background: linear-gradient(135deg, var(--c-brick) 0%, var(--c-brick-dark) 100%);
    color: #fff;
    text-align: center;
}

.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; }

.section__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 500;
    margin: 0;
}
.section--dark .section__title,
.section--prospect .section__title { color: #fff; }
.section--dark .kicker,
.section--prospect .kicker { color: var(--c-sand-200); }

.section__sub {
    margin: 24px auto 0;
    max-width: 620px;
    color: var(--c-ink-soft);
    font-size: 1.05rem;
}
.section--dark .section__sub,
.section--prospect .section__sub { color: rgba(255,255,255,.7); }

/* =========================================================
   SPLIT — video al costado + info al otro
   ========================================================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split__media {
    margin: 0;
    position: relative;
}
.split__video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1a0e08 url("assets/bg-aves.svg") center/cover no-repeat;
    box-shadow: var(--shadow-lg);
}
.split__video-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(92,24,16,.10) 0%, rgba(26,14,8,.20) 100%);
    pointer-events: none;
}
.split__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.split__video.is-ready { opacity: 1; }

.split__content {
    max-width: 540px;
}
.split__content .kicker { margin-bottom: 14px; }
.split__content .section__title {
    margin: 0 0 6px;
    text-align: left;
}
.split__content .prose {
    margin-top: 28px;
    text-align: justify;
    text-justify: inter-word;
}

/* Left-aligned rule (instead of centered under heading) */
.rule--left {
    margin: 18px 0 0;
}

/* tablet — same split but tighter */
@media (max-width: 980px) {
    .split { gap: 40px; }
}

/* mobile — stack: video on top, info below */
@media (max-width: 720px) {
    .split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .split__video-wrap { aspect-ratio: 16 / 10; }
    .split__content { max-width: 100%; }
}

/* ---------- Prose ---------- */
.prose {
    max-width: 720px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--c-ink-soft);
    text-align: justify;
    text-justify: inter-word;
}
.prose--center { margin: 0 auto; text-align: center; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--c-brick); }
.prose__highlight {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.4rem !important;
    color: var(--c-brick) !important;
    margin: 1.6em 0 .6em !important;
    line-height: 1.4;
}
.prose__signature {
    font-size: 0.95rem !important;
    letter-spacing: 0.06em;
    color: var(--c-ink-muted) !important;
    margin: 0 !important;
}

/* ---------- Decorative geoglyphs ---------- */
.deco {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}
.deco--aves {
    bottom: -40px;
    right: -60px;
    width: 280px;
    transform: rotate(-8deg);
}
.deco--ceremonia {
    top: -70px;
    right: -50px;
    width: 460px;
    opacity: 0.13;
    filter: invert(1);
    transform: translateY(var(--parallax-y, 0));
    will-change: transform;
}

.deco--prospect-aves {
    bottom: -60px;
    left: -50px;
    width: 380px;
    opacity: 0.12;
    filter: invert(1);
    transform: translateY(var(--parallax-y, 0)) rotate(6deg);
    will-change: transform;
}

/* =========================================================
   DUO (Misión / Visión)
   ========================================================= */
.duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.duo__card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(232, 220, 194, 0.15);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    transition: all var(--t);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.duo__card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 220, 194, 0.3);
}
.duo__num {
    font-family: var(--ff-display);
    font-size: 2.4rem;
    font-style: italic;
    color: var(--c-brick-soft);
    display: block;
    margin-bottom: 8px;
}
.duo__title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}
.duo__card p {
    margin: 0 0 1em;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
}
.duo__card p:last-child { margin-bottom: 0; }
.duo__card strong { color: var(--c-sand-200); font-weight: 600; }

/* =========================================================
   SHOWCASE — full-bleed vertical video with reddish overlay
   ========================================================= */
.showcase {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding: 100px 24px;
}
.showcase__video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a0e08;
}
.showcase__video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    min-width: 100%; min-height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.showcase__video.is-ready { opacity: 1; }

.showcase__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(26, 14, 8, 0.45) 0%, rgba(26, 14, 8, 0.78) 100%),
        linear-gradient(0deg, rgba(92, 24, 16, 0.55), rgba(92, 24, 16, 0.55));
}
.showcase__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}
.kicker--light { color: var(--c-sand-200); }

.showcase__quote {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 3.6vw, 2.6rem);
    line-height: 1.4;
    font-weight: 400;
    margin: 18px 0 0;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
    letter-spacing: -0.005em;
}
.showcase__quote em {
    font-style: italic;
    color: var(--c-sand-200);
}

@media (max-width: 720px) {
    .showcase__quote br { display: none; }
    .showcase__quote { line-height: 1.5; }
}

/* =========================================================
   PILLARS
   ========================================================= */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.pillar {
    background: #fff;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--c-line);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.pillar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--c-brick);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}
.pillar:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.pillar:hover::before { transform: scaleX(1); }

.pillar__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--c-sand-100);
    color: var(--c-brick);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}
.pillar:hover .pillar__icon {
    background: var(--c-brick);
    color: #fff;
    transform: scale(1.05);
}
.pillar__icon svg { width: 28px; height: 28px; }

.pillar h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--c-ink);
}
.pillar p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-ink-soft);
    margin: 0;
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}
.stat {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid rgba(232, 220, 194, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.15);
    transition: all var(--t);
}
.stat:hover {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(232, 220, 194, 0.35);
    transform: translateY(-3px);
}
.stat__value {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 7vw, 4.8rem);
    font-weight: 500;
    line-height: 1;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.stat__currency { font-size: 0.6em; color: var(--c-sand-200); margin-left: 4px; }
.stat__label {
    font-size: 0.95rem;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.stat__label svg { color: var(--c-sand-200); flex-shrink: 0; }
.stat__label em { font-style: italic; opacity: 0.7; }

/* =========================================================
   CTA
   ========================================================= */
.cta__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 18px;
    color: #fff;
}
.cta__text {
    font-size: 1.1rem;
    margin: 0 auto 36px;
    max-width: 560px;
    color: rgba(255,255,255,.88);
}
.section--cta .btn--primary {
    background: #fff;
    color: var(--c-brick-dark);
    border-color: #fff;
}
.section--cta .btn--primary:hover {
    background: var(--c-sand-100);
    border-color: var(--c-sand-100);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--c-night);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 28px;
    font-size: 0.93rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__logo { width: 140px; opacity: 0.95; margin-bottom: 18px; }
.footer__brand p { margin: 0; color: rgba(255,255,255,.55); font-size: 0.9rem; }

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: color var(--t), background var(--t), border-color var(--t), transform var(--t);
}
.footer__social a:hover {
    color: #fff;
    background: var(--c-brick);
    border-color: var(--c-brick);
    transform: translateY(-2px);
}
.footer__social svg { width: 19px; height: 19px; }

.footer h4 {
    font-family: var(--ff-body);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-sand-200);
    margin-bottom: 18px;
    font-weight: 600;
}

.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a {
    color: rgba(255,255,255,.7);
    font-size: 0.95rem;
    transition: color var(--t);
}
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact p { margin: 4px 0 0; color: rgba(255,255,255,.5); font-size: 0.9rem; }

.footer__bottom {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255,255,255,.45);
    font-size: 0.85rem;
}
.footer__bottom p { margin: 0; }

/* =========================================================
   ANIMATIONS — reveal on scroll
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE — tablet
   ========================================================= */
@media (max-width: 980px) {
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   RESPONSIVE — mobile
   ========================================================= */
@media (max-width: 720px) {
    :root { --nav-h: 74px; }
    body { font-size: 16px; }

    .container { padding: 0 20px; }

    /* nav: bigger logo on mobile */
    .nav__logo--color { height: 48px; }
    .nav__logo--white { height: 104px; top: 8px; }
    .nav.is-solid .nav__logo--white { transform: scale(0.46); }
    .nav__toggle { display: flex; }

    /* Keep logo + burger above the full-screen overlay */
    .nav__brand { z-index: 3; }
    .nav__toggle { position: relative; z-index: 3; }

    /* ===== Full-screen overlay menu (SRM / Sairam style) ===== */
    .nav__menu {
        position: fixed;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, #14110f 0%, #0a0807 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: calc(var(--nav-h) + 20px) 32px 48px;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: opacity 0.45s ease, visibility 0.45s ease;
        overflow-y: auto;
    }
    .nav__menu.is-open { opacity: 1; visibility: visible; }

    /* Subtle bird motif watermark behind the menu */
    .nav__menu::after {
        content: "";
        position: absolute;
        inset: 0;
        background: url("assets/bg-banner-aves.svg") center/120% no-repeat;
        opacity: 0.05;
        pointer-events: none;
    }

    /* When the overlay is open: transparent bar, white logo, white burger */
    .nav.is-menu-open {
        background: transparent !important;
        box-shadow: none !important;
        border-color: transparent !important;
        /* must clear backdrop-filter — it would create a containing block
           and trap the fixed full-screen menu inside the 74px bar */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .nav.is-menu-open .nav__logo--color { opacity: 0; }
    .nav.is-menu-open .nav__logo--white {
        opacity: 1;
        height: 84px;
        top: 10px;
        transform: none;
        filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
    }
    .nav.is-menu-open .nav__toggle span { background: #fff; }

    /* Centered, uppercase, letter-spaced links */
    .nav__menu a:not(.nav__cta) {
        position: relative;
        font-family: var(--ff-body);
        font-size: 17px;
        font-weight: 300;
        letter-spacing: 0.3em;
        text-transform: uppercase;
        text-align: center;
        padding: 20px 0 !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.82) !important;
        background: transparent !important;
        transition: color var(--t), letter-spacing var(--t);
    }
    .nav__menu a:not(.nav__cta)::after { display: none !important; }
    .nav__menu a:not(.nav__cta):active { color: #fff !important; }

    /* Active section: sand color + small underline dot */
    .nav__menu a:not(.nav__cta).is-active {
        color: var(--c-sand-200) !important;
        letter-spacing: 0.34em;
    }
    .nav__menu a:not(.nav__cta).is-active::before {
        content: "";
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 22px;
        height: 2px;
        background: var(--c-brick-soft);
        border-radius: 2px;
    }

    /* App CTA — filled brick button centered below the links */
    .nav__menu .nav__cta--app {
        margin-top: 28px;
        padding: 16px 40px !important;
        background: var(--c-brick) !important;
        color: #fff !important;
        border: 1px solid var(--c-brick-soft) !important;
        border-radius: 999px;
        justify-content: center;
        font-family: var(--ff-body);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.22em;
        box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
    }
    .nav__menu .nav__cta--app::after { display: none !important; }
    .nav__menu .nav__cta--app[aria-current="page"] {
        background: var(--c-brick-dark) !important;
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    /* Force white text + dot inside the overlay, overriding the desktop
       .nav.is-hero rules that otherwise paint the label brick (invisible). */
    .nav.is-menu-open .nav__menu .nav__cta--app,
    .nav.is-hero .nav__menu .nav__cta--app,
    .nav.is-solid .nav__menu .nav__cta--app { color: #fff !important; }
    .nav.is-menu-open .nav__menu .nav__cta-dot,
    .nav.is-hero .nav__menu .nav__cta-dot,
    .nav.is-solid .nav__menu .nav__cta-dot { background: #fff !important; --pulse: 255, 255, 255; }

    /* Social icons — row centered at the bottom of the overlay */
    .nav__social {
        margin: 40px 0 0;
        padding: 28px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        gap: 18px;
        width: 60%;
        max-width: 240px;
        justify-content: center;
    }
    .nav__social a,
    .nav.is-hero .nav__social a,
    .nav.is-solid .nav__social a {
        width: 46px;
        height: 46px;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        color: rgba(255, 255, 255, 0.85) !important;
    }
    .nav__social a:hover,
    .nav.is-hero .nav__social a:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.5);
    }
    .nav__social svg { width: 22px; height: 22px; }

    /* Override hero/solid states inside the overlay */
    .nav.is-hero .nav__menu a:not(.nav__cta),
    .nav.is-solid .nav__menu a:not(.nav__cta) {
        color: rgba(255, 255, 255, 0.82) !important;
    }
    .nav.is-hero .nav__menu a:not(.nav__cta).is-active,
    .nav.is-solid .nav__menu a:not(.nav__cta).is-active {
        color: var(--c-sand-200) !important;
    }

    /* hero */
    .hero { padding: calc(var(--nav-h) + 32px) 0 100px; }
    .hero__content {
        margin-left: 0 !important;
        padding: 0 24px;
        max-width: 100%;
        margin-top: 40px;
    }
    .hero__title { font-size: clamp(2.2rem, 10vw, 3.4rem); }
    .hero__lead { font-size: 1rem; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .hero__scroll { display: none; }

    /* CTA email button: keep the long email from looking oversized */
    .section--cta .btn--lg {
        font-size: 12.5px;
        padding: 14px 18px;
        letter-spacing: 0.01em;
        text-transform: none;
        width: 100%;
        max-width: 100%;
        word-break: break-word;
    }

    /* duo */
    .duo { grid-template-columns: 1fr; gap: 18px; }
    .duo__card { padding: 36px 28px; }

    /* pillars */
    .pillars { grid-template-columns: 1fr; gap: 16px; }
    .pillar { padding: 32px 24px; }

    /* footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: left;
    }
    .footer__bottom { flex-direction: column; align-items: center; text-align: center; }

    /* deco scaling */
    .deco--aves { width: 180px; bottom: -20px; right: -30px; }
    .deco--ceremonia { width: 280px; top: -40px; right: -30px; }
    .deco--prospect-aves { width: 220px; bottom: -30px; left: -30px; }
}

@media (max-width: 420px) {
    .section__title { font-size: 1.8rem; }
    .stat { padding: 32px 16px; }
}

/* =========================================================
   NAV — featured "App" CTA button (with live dot)
   ========================================================= */
.nav__cta--app {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
.nav__cta-dot {
    --pulse: 255, 255, 255;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: ctaDotPulse 2.2s ease-in-out infinite;
}
@keyframes ctaDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--pulse), 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(var(--pulse), 0); }
}
.nav.is-hero .nav__cta--app { background: #fff; color: var(--c-brick-dark) !important; }
.nav.is-hero .nav__cta-dot { --pulse: 139, 36, 24; background: var(--c-brick); }

/* Current page state (app.html) */
.nav__cta--app[aria-current="page"] {
    background: var(--c-brick-dark);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}
.nav__cta--app[aria-current="page"]:hover {
    background: var(--c-brick-dark);
    transform: none;
}
.nav.is-hero .nav__cta--app[aria-current="page"] {
    background: var(--c-sand-100);
    box-shadow: inset 0 2px 6px rgba(92, 24, 16, 0.25);
}

/* Active-section color & hero variant */
.nav__menu a:not(.nav__cta).is-active { color: var(--c-brick); }
.nav.is-hero .nav__menu a:not(.nav__cta).is-active { color: #fff; }
.nav.is-hero .nav__menu a:not(.nav__cta).is-active::after { background: #fff; }
.nav.is-hero .nav__menu a:not(.nav__cta):hover::after { background: #fff; }

/* =========================================================
   HERO variant — App landing (no video, decorative gradient)
   ========================================================= */
.hero--app {
    min-height: 85vh;
    min-height: 85svh;
}
/* Fallback background visible while the video loads */
.hero--app .hero__video-wrap {
    background:
        radial-gradient(ellipse at 80% 0%, rgba(168, 57, 42, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(139, 36, 24, 0.4) 0%, transparent 60%),
        linear-gradient(160deg, var(--c-night) 0%, var(--c-night-2) 100%);
}
.hero--app .hero__overlay {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(26, 14, 8, 0.32) 0%, rgba(92, 24, 16, 0.36) 70%),
        linear-gradient(180deg, rgba(26, 14, 8, 0.22) 0%, rgba(26, 14, 8, 0.62) 100%);
}

.hero__eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--c-sand-200);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(232, 220, 194, 0.55);
    animation: heroEyebrowPulse 2.4s ease-in-out infinite;
}
@keyframes heroEyebrowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 220, 194, 0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(232, 220, 194, 0); }
}

/* =========================================================
   APP — Intro actions row (above "Cómo funciona" title)
   ========================================================= */
.intro-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.intro-actions--right { justify-content: flex-end; }
.intro-actions .btn {
    min-width: 180px;
}
@media (max-width: 720px) {
    .intro-actions, .intro-actions--right {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        margin-bottom: 24px;
    }
    .intro-actions .btn { width: 100%; }
}

/* Left-aligned header block inside .app-split__text */
.split-head--right { text-align: left; margin-bottom: 28px; }
.split-head--right .kicker { display: inline-block; }
.section__title--right { text-align: left; }
.rule--right { margin-left: 0; margin-right: auto; }

/* Body text */
#como-funciona .prose { text-align: justify; }
#como-funciona .author-inline { text-align: left; }
#como-funciona .intro-actions--right { justify-content: flex-start; }

@media (max-width: 720px) {
    .split-head--right { text-align: center; }
    .section__title--right { text-align: center; }
    .rule--right { margin-left: auto; margin-right: auto; }
    #como-funciona .prose { text-align: center; }
    #como-funciona .author-inline { text-align: center; }
    #como-funciona .intro-actions--right { justify-content: center; }
}

/* =========================================================
   APP — Scroll-driven DStretch before/after slider
   ========================================================= */
.dstretch-scroll {
    position: relative;
    max-width: 520px;
    aspect-ratio: 7 / 12;
    margin: 48px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-night-2);
    box-shadow: var(--shadow-lg);
}
.dstretch-scroll__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dstretch-scroll__img--after {
    clip-path: inset(0 0 0 var(--reveal, 60%));
    will-change: clip-path;
}
.dstretch-scroll__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--reveal, 60%);
    width: 3px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
    pointer-events: none;
    will-change: left;
    z-index: 2;
}
.dstretch-scroll__handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dstretch-scroll__handle span::before {
    content: "⇆";
    color: var(--c-brick);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.dstretch-scroll__chip {
    position: absolute;
    bottom: 18px;
    padding: 6px 13px;
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 4px;
    z-index: 3;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.dstretch-scroll__chip--before {
    left: 18px;
    background: rgba(26, 14, 8, 0.82);
}
.dstretch-scroll__chip--after {
    right: 18px;
    background: rgba(139, 36, 24, 0.92);
}
.dstretch-scroll__hint {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(26, 14, 8, 0.72);
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    white-space: nowrap;
}
@media (max-width: 720px) {
    .dstretch-scroll { max-width: 320px; }
    .dstretch-scroll__hint { font-size: 9px; padding: 5px 10px; }
}

/* =========================================================
   APP — Real DStretch before/after comparison (legacy side-by-side)
   ========================================================= */
.dstretch-real {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 760px;
    margin: 40px auto 72px;
    position: relative;
}
.dstretch-real::before {
    content: "ANTES";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--c-brick);
    background: var(--c-sand-50);
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(42, 24, 16, 0.15), 0 0 0 1px rgba(139, 36, 24, 0.18);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}
.dstretch-real::after {
    content: "→";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 38px), -50%);
    font-size: 14px;
    color: var(--c-brick);
    z-index: 3;
    pointer-events: none;
}

.dstretch-real__pane {
    margin: 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 5;
    background: var(--c-night-2);
    box-shadow: var(--shadow-md);
    transition: transform var(--t);
}
.dstretch-real__pane:hover { transform: translateY(-2px); }
.dstretch-real__pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
}
.dstretch-real__pane:hover img { transform: scale(1.03); }

.dstretch-real__pane figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 18px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 14, 8, 0.92) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dstretch-real__label {
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.dstretch-real__pane--after .dstretch-real__label { color: var(--c-sand-200); }
.dstretch-real__hint {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.3;
}

/* Subtle frame distinction so "after" reads as the result */
.dstretch-real__pane--after { box-shadow: var(--shadow-md), inset 0 0 0 2px rgba(139, 36, 24, 0.5); }

@media (max-width: 720px) {
    .dstretch-real {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 14px;
    }
    .dstretch-real::before { display: none; }
    .dstretch-real::after { display: none; }
}

/* =========================================================
   APP — En terreno split (workflow w/ photos)
   ========================================================= */
.terreno-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 16px;
}
.terreno-split__item {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--c-night-2);
    box-shadow: var(--shadow-md);
}
.terreno-split__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
}
.terreno-split__item:hover img { transform: scale(1.04); }
.terreno-split__item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 22px 22px;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 14, 8, 0.92) 70%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.terreno-split__num {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--c-sand-200);
    letter-spacing: 0.04em;
}
.terreno-split__title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.terreno-split__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

@media (max-width: 720px) {
    .terreno-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .terreno-split__item { aspect-ratio: 16 / 11; }
    .terreno-split__title { font-size: 1.2rem; }
}

/* =========================================================
   GALLERY — fotos en terreno
   ========================================================= */
.section--gallery {
    background: var(--c-sand-100);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 240px 240px;
    gap: 14px;
}

.gallery__item {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-night-2);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1), filter 0.6s ease;
    filter: saturate(0.95);
    transform-origin: left top;
}
.gallery__item:hover img {
    transform: scale(1.06);
    filter: saturate(1.1);
}

/* Big lead image: 2 cols x 2 rows on the left */
.gallery__item--lead {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Caption */
.gallery__item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px 18px 16px;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 14, 8, 0.85) 100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateY(12px);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.gallery__item:hover figcaption,
.gallery__item:focus-within figcaption,
.gallery__item--lead figcaption {
    opacity: 1;
    transform: translateY(0);
}
.gallery__tag {
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.gallery__loc {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--c-sand-200);
}
.gallery__item--lead figcaption { padding: 28px 22px 22px; }
.gallery__item--lead .gallery__tag { font-size: 13px; }

@media (max-width: 980px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 280px 220px 220px;
    }
    .gallery__item--lead {
        grid-column: 1 / 3;
        grid-row: 1;
    }
}

@media (max-width: 720px) {
    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-rows: 220px;
        gap: 12px;
    }
    .gallery__item--lead {
        grid-column: 1;
        grid-row: auto;
        height: 280px;
    }
    .gallery__item figcaption { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   APP — DStretch landing
   ========================================================= */
.section--app {
    background:
        radial-gradient(circle at 85% 0%, rgba(139, 36, 24, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(139, 36, 24, 0.05) 0%, transparent 55%),
        var(--c-sand-50);
}
.section--app::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/bg-aves.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
    opacity: 0.025;
    pointer-events: none;
}
.section--app > .container { position: relative; z-index: 1; }

/* Header pill kicker */
.kicker--app {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    background: rgba(139, 36, 24, 0.08);
    border: 1px solid rgba(139, 36, 24, 0.18);
    border-radius: 999px;
    margin-bottom: 18px;
}
.kicker--app .kicker__dot {
    width: 6px;
    height: 6px;
    background: var(--c-brick);
    border-radius: 50%;
    animation: appPulse 2s ease-in-out infinite;
}
@keyframes appPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 36, 24, 0.5); }
    50%      { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(139, 36, 24, 0); }
}

/* Split: phone mockup + DStretch explanation */
.app-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 72px;
    align-items: start;
    margin: 64px 0 80px;
}
.app-split__visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 72px;
}
.app-split__text { max-width: 600px; }
.app-h3 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--c-ink);
    margin: 10px 0 16px;
    line-height: 1.2;
}
.app-split__text .prose { margin-top: 6px; }

/* Inline author byline — sits below the "Cómo funciona" prose */
.author-inline {
    margin: 32px 0 0;
    padding: 22px 24px;
    background: rgba(139, 36, 24, 0.04);
    border: 1px solid rgba(139, 36, 24, 0.12);
    border-left: 3px solid var(--c-brick);
    border-radius: var(--radius-lg);
}
.author-inline__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.author-inline__label {
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-brick);
}
.author-inline__name {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.2;
    letter-spacing: -0.005em;
}
.author-inline__role {
    font-size: 0.92rem;
    color: var(--c-ink-soft);
    line-height: 1.5;
}

/* --- Phone mockup --- */
.app-mock {
    width: 100%;
    max-width: 320px;
    transform: translateY(var(--rise-y, 0));
    will-change: transform;
}
@media (max-width: 720px) {
    .app-mock { transform: none; }
}
.app-mock__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 18;
    background: linear-gradient(160deg, #1a0e08 0%, #2a1810 100%);
    border-radius: 38px;
    padding: 11px;
    box-shadow:
        0 30px 60px -22px rgba(42, 24, 16, 0.45),
        0 18px 36px -14px rgba(92, 24, 16, 0.28),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
    transform: rotate(-3deg);
    transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
.app-mock__frame:hover { transform: rotate(0deg) translateY(-4px); }

.app-mock__notch {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #0a0604;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}
.app-mock__screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--c-sand-50);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-mock__topbar {
    flex: 0 0 38px;
    padding: 14px 16px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--c-brick-dark) 0%, var(--c-brick) 100%);
}
.app-mock__brand {
    font-family: var(--ff-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #fff;
}
.app-mock__bars {
    display: flex;
    gap: 3px;
}
.app-mock__bars i {
    display: block;
    width: 12px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1px;
}

.app-mock__viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.app-mock__layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.app-mock__art { display: none; }
.app-mock__layer--before {
    background-image: url("assets/DStretch_ORIGINAL_1780508922787.webp");
}
.app-mock__layer--after {
    background-image: url("assets/DStretch_AUTO_1780508910019.webp");
    clip-path: inset(0 0 0 58%);
    animation: appReveal 6s ease-in-out infinite;
}
@keyframes appReveal {
    0%, 100% { clip-path: inset(0 0 0 62%); }
    45%, 55% { clip-path: inset(0 0 0 15%); }
}

.app-mock__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 62%;
    width: 2px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
    animation: appHandle 6s ease-in-out infinite;
    pointer-events: none;
}
.app-mock__handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
@keyframes appHandle {
    0%, 100% { left: 62%; }
    45%, 55% { left: 15%; }
}

.app-mock__chip {
    position: absolute;
    bottom: 10px;
    font-family: var(--ff-body);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 7px;
    color: #fff;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.app-mock__chip--left {
    left: 10px;
    background: rgba(26, 14, 8, 0.78);
}
.app-mock__chip--right {
    right: 10px;
    background: rgba(139, 36, 24, 0.92);
}

.app-mock__filters {
    flex: 0 0 auto;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid var(--c-line);
    display: flex;
    gap: 6px;
    overflow: hidden;
}
.app-mock__pill {
    flex: 1;
    font-family: var(--ff-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 6px 0;
    border-radius: 6px;
    background: var(--c-sand-100);
    color: var(--c-ink-soft);
}
.app-mock__pill--active {
    background: var(--c-brick);
    color: #fff;
}

.app-mock__meta {
    flex: 0 0 26px;
    padding: 7px 12px;
    background: #15090a;
    color: var(--c-sand-200);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-body);
    font-size: 8.5px;
    letter-spacing: 0.08em;
}
.app-mock__meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6cd87a;
    box-shadow: 0 0 8px rgba(108, 216, 122, 0.6);
}

/* --- Features grid --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 72px;
}
.feature {
    background: #fff;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-line);
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
    position: relative;
    overflow: hidden;
}
.feature::after {
    content: "";
    position: absolute;
    inset: auto -50px -50px auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(139, 36, 24, 0.06) 0%, transparent 70%);
    transition: transform var(--t);
    pointer-events: none;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 36, 24, 0.22);
    box-shadow: var(--shadow-md);
}
.feature:hover::after { transform: scale(1.5); }

.feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--c-sand-100);
    color: var(--c-brick);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: background var(--t), color var(--t), transform var(--t);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature:hover .feature__icon {
    background: var(--c-brick);
    color: #fff;
    transform: scale(1.05);
}
.feature h4 {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    margin: 0 0 8px;
    color: var(--c-ink);
    font-weight: 600;
}
.feature p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-ink-soft);
}

/* --- Author signature (inline, attached to "Cómo funciona") --- */
.author-inline {
    margin-top: 36px;
    padding: 20px 22px;
    background: rgba(139, 36, 24, 0.05);
    border-left: 3px solid var(--c-brick);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.author-inline__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.author-inline__label {
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-brick);
}
.author-inline__name {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin-top: 2px;
}
.author-inline__role {
    font-size: 0.88rem;
    color: var(--c-ink-soft);
    line-height: 1.45;
}
.author-inline__note {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 36, 24, 0.18);
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--c-brick-dark);
    line-height: 1.5;
}

@media (max-width: 720px) {
    .author-inline { padding: 16px 18px; }
    .author-inline__name { font-size: 1.08rem; }
    .author-inline__note { font-size: 0.96rem; }
}

/* --- Author card (legacy, no longer rendered) --- */
.author-card {
    background: linear-gradient(135deg, var(--c-brick-dark) 0%, var(--c-night-2) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.author-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(212, 192, 160, 0.2) 0%, transparent 65%);
    pointer-events: none;
}
.author-card__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.author-card__avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(232, 220, 194, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-sand-200);
    flex-shrink: 0;
}
.author-card__avatar svg { width: 38px; height: 38px; }
.author-card__body { flex: 1; min-width: 220px; }
.author-card__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-sand-200);
    margin-bottom: 6px;
}
.author-card__name {
    font-family: var(--ff-display);
    font-size: 1.7rem;
    margin: 0 0 6px;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.author-card__role {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.5;
}
.author-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #fff;
    color: var(--c-brick-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: transform var(--t), background var(--t);
    flex-shrink: 0;
}
.author-card__cta:hover {
    background: var(--c-sand-100);
    transform: translateX(3px);
}

/* --- App responsive --- */
@media (max-width: 980px) {
    .app-split { gap: 44px; }
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .app-split {
        grid-template-columns: 1fr;
        gap: 44px;
        margin: 40px 0 56px;
    }
    .app-split__visual { margin-top: 0; }
    .app-mock { max-width: 260px; }
    .features { grid-template-columns: 1fr; gap: 14px; }
    .author-card { padding: 28px 24px; }
    .author-card__inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .author-card__name { font-size: 1.5rem; }
    .author-card__cta { width: 100%; justify-content: center; }
}

/* =========================================================
   INSTAGRAM — sección (lista para widget de terceros)
   El embed de LightWidget/Behold se pega dentro de .ig-feed.
   ========================================================= */
.section--instagram { background: var(--c-sand-100); }
.ig-handle {
    display: inline-block;
    margin-top: 18px;
    font-family: var(--ff-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--c-brick);
    transition: color var(--t);
}
.ig-handle:hover { color: var(--c-brick-dark); }
.ig-feed { margin-top: 44px; }
.ig-feed iframe { width: 100% !important; border: 0; border-radius: var(--radius-lg); }

/* =========================================================
   CONTACTO — landing + formulario
   ========================================================= */
.hero--contacto {
    min-height: 82vh;
    min-height: 82svh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* --- Columna info --- */
.contact-info { padding-top: 8px; }
.contact-info__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--c-ink);
    margin: 8px 0 0;
}
.contact-info__list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-info__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-sand-100);
    color: var(--c-brick);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__item > div { display: flex; flex-direction: column; gap: 2px; }
.contact-info__label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    font-weight: 600;
}
.contact-info__item a,
.contact-info__item span:not(.contact-info__label):not(.contact-info__icon) {
    color: var(--c-ink-soft);
    font-size: 1rem;
}
.contact-info__item a:hover { color: var(--c-brick); }

/* --- Formulario --- */
.contact-form {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--c-ink);
    margin-bottom: 8px;
}
.field label span[aria-hidden] { color: var(--c-brick); }
.field__opt {
    font-weight: 400;
    color: var(--c-ink-muted);
    letter-spacing: 0;
    text-transform: none;
}
.field input,
.field textarea {
    width: 100%;
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--c-ink);
    background: var(--c-sand-50);
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius);
    padding: 13px 16px;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    -webkit-appearance: none;
    appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--c-ink-muted); opacity: 0.7; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--c-brick);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 36, 24, 0.10);
}

/* File upload (drag/drop style) */
.file-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.field label.file-drop {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 16px;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0;
    background: var(--c-sand-50);
    border: 1.5px dashed var(--c-line);
    border-radius: var(--radius);
    color: var(--c-ink-muted);
    cursor: pointer;
    transition: border-color var(--t), background var(--t), color var(--t);
}
.file-drop:hover {
    border-color: var(--c-brick);
    color: var(--c-ink-soft);
    background: #fff;
}
.file-drop__icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
    color: var(--c-brick);
}
.file-drop__text {
    font-size: 0.95rem;
    word-break: break-word;
}
.file-drop.has-file {
    border-style: solid;
    border-color: var(--c-brick);
    background: rgba(139, 36, 24, 0.04);
    color: var(--c-ink);
}
.file-drop.has-file .file-drop__text { font-weight: 600; color: var(--c-brick-dark); }

/* Honeypot — oculto a humanos, visible para bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Botón enviar + spinner */
.contact-form__submit {
    width: 100%;
    margin-top: 6px;
    position: relative;
}
.contact-form__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.contact-form__submit.is-loading .contact-form__submit-text { opacity: 0.6; }
.contact-form__submit.is-loading .contact-form__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Estado (éxito / error) */
.contact-form__status {
    margin: 16px 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0;
    min-height: 1px;
}
.contact-form__status.is-success {
    color: #1f7a3d;
    background: rgba(31, 122, 61, 0.08);
    border: 1px solid rgba(31, 122, 61, 0.22);
    border-radius: var(--radius);
    padding: 12px 16px;
}
.contact-form__status.is-error {
    color: var(--c-brick);
    background: rgba(139, 36, 24, 0.06);
    border: 1px solid rgba(139, 36, 24, 0.22);
    border-radius: var(--radius);
    padding: 12px 16px;
}
.contact-form__legal {
    margin: 18px 0 0;
    font-size: 0.82rem;
    color: var(--c-ink-muted);
    line-height: 1.5;
}

/* reCAPTCHA badge — discreto */
.grecaptcha-badge { z-index: 50; }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
    .contact-form { padding: 26px 20px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .field-row .field { margin-bottom: 20px; }
}

/* =========================================================
   PREFERS REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .hero__video { display: none; }
}
