/* ==========================================================================
   Senderos del Yunque — landing
   Paleta tomada del logo: verde salvia → verde azulado, gris carbón.
   ========================================================================== */

:root {
    --mist: #F4F6F1;
    --paper: #FBFCF9;
    --intro-bg: #F6F8F5;
    --ink: #22302B;
    --ink-2: #4C5954;
    --ink-3: #7B8681;
    --charcoal: #565756;
    --sage: #84BC9C;
    --teal: #599A8F;
    --moss: #5E8E75;
    --forest: #1C342F;
    --forest-2: #24443D;
    --cream: #EEF2EA;
    --wood: #C29A72;
    --error: #B0523A;
    --line: rgba(34, 48, 43, 0.12);
    --line-light: rgba(238, 242, 234, 0.16);

    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.25, 1);
    --radius: 20px;
    --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
    background: var(--mist);
}

body {
    margin: 0;
    background: var(--mist);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Tipografía ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--moss);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.eyebrow--center::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.eyebrow--light {
    color: var(--sage);
}

.display {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(38px, 5.4vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 144;
    color: var(--ink);
}

.display em {
    font-style: italic;
    color: var(--teal);
}

/* ---------- Botones ---------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    font: 500 13.5px/1.2 var(--font-sans);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out),
        transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s var(--ease-out);
}

.btn--primary {
    background: var(--forest);
    color: var(--cream);
    box-shadow: 0 14px 30px -16px rgba(28, 52, 47, 0.7);
}

.btn--primary:hover {
    background: var(--forest-2);
    transform: translateY(-1px);
    box-shadow: 0 18px 36px -16px rgba(28, 52, 47, 0.75);
}

.btn--primary:hover .btn__arrow {
    transform: translateX(4px);
}

.btn--ghost {
    background: transparent;
    color: var(--forest);
    box-shadow: inset 0 0 0 1px rgba(28, 52, 47, 0.28);
}

.btn--ghost:hover {
    background: var(--forest);
    color: var(--cream);
}

.btn--ghost:hover .btn__icon {
    transform: translateY(3px);
}

.btn:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.6px solid rgba(238, 242, 234, 0.35);
    border-top-color: var(--cream);
    animation: spin 0.8s linear infinite;
}

.btn.is-loading {
    pointer-events: none;
}

.btn.is-loading .btn__arrow {
    display: none;
}

.btn.is-loading .btn__spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Intro (video de carga)
   ========================================================================== */

.intro {
    display: none;
}

.js .intro {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--intro-bg);
    transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}

.skip-intro .intro {
    display: none;
}

body.is-intro {
    overflow: hidden;
}

.intro.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--intro-bg);
}

/* Teléfonos más angostos que 9:16: el video se reduce un poco para que el logo
   no se corte en los bordes, y sus orillas se funden con el fondo. */
@media (max-aspect-ratio: 9/16) {
    .intro .intro__video,
    .hero .hero__bg img {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 104vw;
        max-width: none;
        height: auto;
        aspect-ratio: 9 / 16;
        transform: translate(-50%, -50%);
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
    }

    .hero__bg {
        background: var(--intro-bg);
    }
}

/* Marca sutil mientras el video empieza a cargar */
.intro__loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 32px;
    margin: -16px 0 0 -60px;
    background: linear-gradient(90deg, var(--sage), var(--teal));
    -webkit-mask: url("../img/mark-mask.png") center / contain no-repeat;
    mask: url("../img/mark-mask.png") center / contain no-repeat;
    opacity: 0;
    animation: loader-breathe 1.8s var(--ease-in-out) 0.4s infinite;
    transition: opacity 0.4s;
}

.intro.is-playing .intro__loader {
    animation: none;
    opacity: 0;
}

@keyframes loader-breathe {
    0%, 100% { opacity: 0.15; transform: scale(0.98); }
    50% { opacity: 0.55; transform: scale(1); }
}

.intro__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(28, 52, 47, 0.06);
}

.intro__progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--sage), var(--teal));
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.intro__skip {
    position: absolute;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(251, 252, 249, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--ink-2);
    font: 500 11.5px/1 var(--font-sans);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out), background-color 0.3s;
}

.intro.is-playing .intro__skip {
    opacity: 1;
    transition-delay: 1.2s;
}

.intro__skip:hover {
    background: rgba(251, 252, 249, 0.9);
}

/* Logo que "vuela" desde el video hasta el hero */
.logo-flight {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 70;
    max-width: none;
    height: auto;
    transform-origin: 0 0;
    pointer-events: none;
    visibility: hidden;
    will-change: transform;
}

.logo-flight.is-active {
    visibility: visible;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(56px, 9vh, 120px) var(--gutter) clamp(56px, 8vh, 96px);
    text-align: center;
    overflow: hidden;
}

/* El fondo mide exactamente una pantalla para coincidir con el encuadre del video */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100lvh;
    z-index: -2;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(180deg, rgba(244, 246, 241, 0), var(--mist));
}

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(251, 252, 249, 0.55), rgba(251, 252, 249, 0) 70%),
        linear-gradient(180deg, rgba(244, 246, 241, 0.25) 0%, rgba(244, 246, 241, 0.1) 45%, rgba(244, 246, 241, 0.75) 100%);
    transition: opacity 1.4s var(--ease-out) 0.3s;
}

.js:not(.skip-intro) body:not(.is-ready) .hero__veil {
    opacity: 0;
}

.hero__inner {
    position: relative;
    width: 100%;
    max-width: 820px;
}

.hero__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: inherit;
}

.hero__title .eyebrow {
    margin-bottom: clamp(18px, 3vh, 28px);
}

.hero__logo {
    width: min(380px, 72vw, 40vh);
    height: auto;
}

.hero__lead {
    max-width: 640px;
    margin: clamp(22px, 3.6vh, 36px) auto 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(23px, 2.5vw, 31px);
    line-height: 1.25;
    letter-spacing: -0.005em;
    font-variation-settings: "opsz" 72;
    color: var(--ink);
}

.hero__panel {
    margin-top: clamp(22px, 3.6vh, 36px);
}

.register__intro {
    max-width: 560px;
    margin: 0 auto clamp(18px, 2.6vh, 26px);
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.6;
}

/* Animación de entrada del hero */
.js:not(.skip-intro) [data-hero] {
    opacity: 0;
    transform: translateY(18px);
}

.js:not(.skip-intro) .hero__logo {
    opacity: 0;
}

/* Con vuelo del logo, el contenido entra cuando el logo está aterrizando */
.is-ready {
    --hero-delay: 1250ms;
}

.is-ready.no-flight {
    --hero-delay: 350ms;
}

.is-ready [data-hero] {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 120ms + var(--hero-delay));
}

.is-ready .hero__logo.is-landed,
.is-ready.no-flight .hero__logo {
    opacity: 1 !important;
}

.is-ready.no-flight .hero__logo {
    transition: opacity 1s var(--ease-out) 0.25s;
}

@media (max-width: 480px) {
    .hero {
        padding-top: 44px;
    }

    .hero__title .eyebrow {
        gap: 10px;
        font-size: 11.5px;
        letter-spacing: 0.22em;
    }

    .eyebrow--center::before,
    .eyebrow--center::after {
        width: 16px;
    }

    .hero__logo {
        width: min(300px, 74vw);
    }

    .hero__lead {
        font-size: 22px;
    }

    .register__intro {
        font-size: 15.5px;
    }

    .lead-form__submit {
        gap: 10px;
        padding: 0 18px;
        font-size: 12.5px;
        letter-spacing: 0.12em;
    }
}

/* ---------- Formulario ---------- */

.lead-form {
    position: relative;
    padding: clamp(16px, 2.4vw, 22px);
    border-radius: 24px;
    background: rgba(251, 252, 249, 0.66);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 40px 80px -40px rgba(28, 52, 47, 0.35);
    text-align: left;
}

.lead-form__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 760px) {
    .lead-form__fields {
        grid-template-columns: 1.15fr 1.15fr 0.9fr;
    }
}

.field {
    position: relative;
}

.field__input {
    width: 100%;
    height: 60px;
    padding: 24px 18px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    font: 400 16px/1.2 var(--font-sans);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.field__input:hover {
    border-color: rgba(34, 48, 43, 0.22);
}

.field__input:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(89, 154, 143, 0.16);
}

.field__label {
    position: absolute;
    left: 19px;
    top: 19px;
    color: var(--ink-3);
    font-size: 16px;
    line-height: 1.4;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform 0.25s var(--ease-out), color 0.25s;
    white-space: nowrap;
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
    transform: translateY(-11px) scale(0.72);
    color: var(--moss);
    letter-spacing: 0.02em;
}

.field__error {
    margin: 6px 4px 0;
    min-height: 0;
    color: var(--error);
    font-size: 13px;
    line-height: 1.35;
}

.field__error:empty {
    display: none;
}

.field.is-invalid .field__input {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(176, 82, 58, 0.1);
}

.field.is-invalid .field__label {
    color: var(--error);
}

.lead-form__submit {
    width: 100%;
    margin-top: 12px;
}

.lead-form__status {
    margin: 12px 4px 0;
    color: var(--error);
    font-size: 14px;
    text-align: center;
}

.lead-form__status:empty {
    display: none;
}

.lead-form__legal {
    margin: 12px 4px 2px;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Estado de gracias ---------- */

.thanks {
    max-width: 600px;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 44px);
    border-radius: 24px;
    background: rgba(251, 252, 249, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 40px 80px -40px rgba(28, 52, 47, 0.35);
    outline: none;
}

.thanks.is-entering {
    animation: thanks-in 0.9s var(--ease-out) both;
}

@keyframes thanks-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
}

.thanks__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage), var(--teal));
    box-shadow: 0 12px 24px -12px rgba(89, 154, 143, 0.8);
}

.thanks__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 0;
}

.thanks.is-entering .thanks__icon svg {
    animation: draw 0.7s var(--ease-out) 0.35s both;
}

@keyframes draw {
    from {
        stroke-dashoffset: 24;
    }
}

.thanks__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 300;
    line-height: 1.15;
    font-variation-settings: "opsz" 72;
}

.thanks__text {
    margin: 10px auto 22px;
    max-width: 460px;
    color: var(--ink-2);
    font-size: 16.5px;
}

/* ==========================================================================
   Proyecto (se muestra después del registro)
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.no-js [data-reveal] {
    opacity: 1;
    transform: none;
}

.project.is-entering {
    animation: project-in 1.2s var(--ease-out) both;
}

@keyframes project-in {
    from {
        opacity: 0;
    }
}

/* ---------- Sobre el proyecto ---------- */

.about {
    padding: clamp(80px, 12vw, 150px) 0 clamp(80px, 11vw, 140px);
}

.about__grid {
    display: grid;
    gap: clamp(44px, 6vw, 90px);
    align-items: center;
}

@media (min-width: 900px) {
    .about__grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.about__title {
    margin-bottom: 26px;
}

.about__lead {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.35;
    color: var(--ink);
    font-variation-settings: "opsz" 48;
}

.about__text > p:not(.eyebrow):not(.about__lead) {
    margin: 0 0 16px;
    max-width: 540px;
    color: var(--ink-2);
}

.roads {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.road__shield {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--forest);
    color: var(--cream);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 2px var(--forest), inset 0 0 0 3.5px rgba(238, 242, 234, 0.55);
}

.road--place {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    color: var(--ink-2);
    font-size: 14.5px;
    letter-spacing: 0.02em;
}

.road--place svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--teal);
    stroke-width: 1.6;
}

.about__media {
    margin: 0;
    justify-self: center;
    width: min(100%, 470px);
}

.arch {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 26px 26px;
    overflow: hidden;
    box-shadow: 0 50px 90px -50px rgba(28, 52, 47, 0.55);
}

.arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: scale(1.06);
    transition: transform 2.2s var(--ease-out);
}

.about__media.is-visible .arch img {
    transform: scale(1);
}

.arch::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px 999px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

/* ---------- Residencias ---------- */

.homes {
    position: relative;
    padding: clamp(80px, 11vw, 140px) 0;
    background:
        radial-gradient(ellipse 60% 50% at 85% 0%, rgba(89, 154, 143, 0.22), transparent 70%),
        var(--forest);
    color: var(--cream);
}

.homes__title {
    max-width: 720px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.display--light {
    color: var(--cream);
}

.display--light em {
    color: var(--sage);
}

.homes__head {
    display: grid;
    gap: clamp(36px, 5vw, 64px);
    align-items: end;
    margin-bottom: clamp(48px, 6vw, 80px);
}

@media (min-width: 960px) {
    .homes__head {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

.count {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
}

.count__num {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(120px, 17vw, 210px);
    line-height: 0.82;
    letter-spacing: -0.04em;
    font-variant-numeric: lining-nums tabular-nums;
    font-variation-settings: "opsz" 144;
    background: linear-gradient(160deg, #F4F6F1 30%, var(--sage) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.count__label {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--cream);
}

.specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-light);
}

.spec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 16px 24px 0;
    border-bottom: 1px solid var(--line-light);
}

.spec:nth-child(n + 3) {
    padding-left: 22px;
    border-left: 1px solid var(--line-light);
}

.spec--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.spec svg {
    width: 34px;
    height: 34px;
    flex: none;
    fill: none;
    stroke: var(--sage);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spec__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec__value {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(26px, 2.6vw, 32px);
    line-height: 1.05;
    color: var(--cream);
    font-variation-settings: "opsz" 72;
    white-space: nowrap;
}

.spec--wide .spec__value {
    font-size: clamp(22px, 2.2vw, 27px);
    white-space: normal;
}

.spec__value small {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(238, 242, 234, 0.6);
    vertical-align: 0.35em;
    margin-right: 2px;
}

.spec__label {
    font-size: 15px;
    color: rgba(238, 242, 234, 0.7);
}

@media (max-width: 560px) {
    .specs {
        grid-template-columns: 1fr;
    }

    .spec {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding: 18px 0;
    }

    .spec:nth-child(n + 3) {
        padding-left: 0;
        border-left: 0;
    }

    .spec__body {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
}

.render {
    margin: 0;
}

.render__frame {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 60px 100px -60px rgba(0, 0, 0, 0.7);
}

.render__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    transform: scale(1.04);
    transition: transform 2.4s var(--ease-out);
}

.render.is-visible .render__frame img {
    transform: scale(1);
}

.render figcaption {
    margin-top: 16px;
    color: rgba(238, 242, 234, 0.55);
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

.pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translate(-9px, -50%);
    opacity: 0;
    transition: opacity 0.8s var(--ease-out) 0.9s;
}

.render.is-visible .pin {
    opacity: 1;
}

.render.is-visible .pin--mirador {
    transition-delay: 1.15s;
}

.pin__meta {
    opacity: 0.72;
}

.pin__dot {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3);
}

.pin__dot::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--teal);
}

.pin__dot::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
    from {
        transform: scale(0.8);
        opacity: 1;
    }
    to {
        transform: scale(2.1);
        opacity: 0;
    }
}

.pin__label {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(28, 52, 47, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pin--mirador {
    flex-direction: row-reverse;
    transform: translate(calc(-100% + 9px), -50%);
}

@media (max-width: 640px) {
    .pin {
        gap: 7px;
    }

    .pin__dot {
        width: 14px;
        height: 14px;
    }

    .pin__label {
        padding: 5px 9px;
        font-size: 9.5px;
        letter-spacing: 0.1em;
    }

    .pin--mirador {
        transform: translate(calc(-100% + 7px), -50%);
    }
}

/* ---------- Amenidades ---------- */

.amenities {
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 12vw, 150px) 0;
    background: var(--paper);
}

.topo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--teal);
    stroke-width: 1;
    opacity: 0.16;
    pointer-events: none;
}

.section-head {
    position: relative;
    max-width: 760px;
    margin: 0 auto clamp(44px, 6vw, 72px);
    text-align: center;
}

.section-head .eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.amenity-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.amenity {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 168px;
    padding: 24px 22px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 16.5px;
    line-height: 1.35;
    color: var(--ink);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.5s;
}

.amenity svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: var(--teal);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--ease-out);
}

.amenity span {
    margin-top: auto;
}

@media (hover: hover) {
    .amenity.is-visible:hover {
        transform: translateY(-4px);
        background: #fff;
        box-shadow: inset 0 0 0 1px rgba(89, 154, 143, 0.35), 0 24px 40px -28px rgba(28, 52, 47, 0.45);
    }

    .amenity:hover svg {
        transform: scale(1.08);
    }
}

@media (max-width: 420px) {
    .amenity {
        min-height: 150px;
        padding: 20px 16px 18px;
        font-size: 15px;
    }
}

/* ---------- Cierre ---------- */

.closing {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(110px, 16vw, 200px) 0 clamp(90px, 12vw, 140px);
    text-align: center;
    color: #fff;
}

.closing__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.closing__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.closing__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(28, 52, 47, 0.25) 0%, rgba(28, 52, 47, 0.55) 55%, rgba(28, 52, 47, 0.92) 100%);
}

.closing__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(22px, 3vw, 34px);
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    font-variation-settings: "opsz" 72;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.logo-mono {
    display: block;
    width: min(460px, 78vw);
    aspect-ratio: 912 / 424;
    background: #fff;
    -webkit-mask: url("../img/logo-mask.png") center / contain no-repeat;
    mask: url("../img/logo-mask.png") center / contain no-repeat;
    filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.2));
}

.closing__soon {
    margin: clamp(30px, 4vw, 44px) 0 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.closing__disclaimer {
    max-width: 560px;
    margin: 56px auto 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ---------- Footer ---------- */

.footer {
    padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
    background: var(--forest);
    color: rgba(238, 242, 234, 0.6);
    font-size: 13px;
    line-height: 1.6;
}

.footer__inner {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.footer p {
    margin: 0;
}

.footer a {
    color: rgba(238, 242, 234, 0.85);
}

.footer__legal {
    max-width: 720px;
    margin-top: 6px !important;
    font-size: 12px;
    color: rgba(238, 242, 234, 0.5);
}

.mark-mono {
    display: block;
    width: 84px;
    aspect-ratio: 806 / 208;
    background: var(--sage);
    -webkit-mask: url("../img/mark-mask.png") center / contain no-repeat;
    mask: url("../img/mark-mask.png") center / contain no-repeat;
    margin-bottom: 6px;
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* reCAPTCHA v3 invisible: se oculta el badge flotante */
.grecaptcha-badge {
    visibility: hidden !important;
}
