/* ── Reveal on scroll ────────────────────────────────────────────────────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Images with scroll-driven zoom */
[data-zoom] { overflow: hidden; }
[data-zoom] img { will-change: transform; transform-origin: center; }

/* ── Section Intro ───────────────────────────────────────────────────────── */

.intro {
    background: var(--bg-green);
    padding-block: var(--section-v);
    overflow: hidden;
}

/* Header centrado */
.intro__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-inline: var(--padding-h);
    margin-bottom: 180px;
}

.intro__copete {
    color: var(--terracota);
    letter-spacing: 0.1em;
}

.intro__title {
    font-style: italic;
    color: var(--text-dark);
    font-size: clamp(26px, 5vw, 56px);
    line-height: 1.1;
}

/* Grid 2 columnas */
.intro__grid {
    display: grid;
    grid-template-columns: calc(45% - 60px) calc(55% - 60px);
    gap: 0 120px;
    padding-inline: var(--padding-h);
    align-items: start;
    margin-bottom: 180px;
}

.intro__col {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.intro__col--right {
    padding-left: 120px;
}

.intro__text {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.4vw, 32px);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
    
}

.intro__col--left .intro__text{
    margin-left: 120px;
}


.intro__illustration {
    display: block;
    width: auto;
    height: auto;
    opacity: 0.75;
}

.intro__illustration--whale {
    max-width: 380px;
        margin-right: -50px;
    margin-left: auto;
}

@media (max-width: 768px){
    .intro__col--left .intro__text{
        margin-left: 0px;
    }
    .intro__text{
        text-align:center;
    }
    .intro__illustration--whale {
    width: 100%;
    margin-right: 0px;
}
}

.intro__illustration--bird {
    max-width: 240px;
}

/* Images */
.intro__img-wrap {
    border-radius: 6px;
    overflow: hidden;
}
.intro__col--left .intro__img-wrap{
    aspect-ratio: 3 / 4;
}
.intro__col--right .intro__img-wrap{
    aspect-ratio: 1 / 1;
}

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

/* Full-width image */
.intro__fullimg {
    margin-inline: calc(var(--padding-h) + 120px);
    
    overflow: hidden;
    aspect-ratio: 16 / 5;
    margin-bottom: 100px;
    border-radius: 12px;
}

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

/* Cierre centrado */
.intro__closing {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
    padding-inline: var(--padding-h);
}

.intro__arq {
    max-width: 480px;
    width: auto;
    height: auto;
    opacity: 0.55;
}

.intro__quote {
    font-size: clamp(20px, 4vw, 42px);
    color: var(--green-dark);
    line-height: 1.2;
}

.intro__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    background: var(--green-light);
    padding: 22px 32px;
    border-radius: 100px;
    transition: background 0.25s ease;
}

.intro__cta:hover {
    background: var(--green-dark);
    color: var(--white);
    opacity: 1;
}

/* ── Section Atributos ───────────────────────────────────────────────────── */

.atributos {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.atributos__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.atributos__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 71, 79, 0)    0%,
        rgba(10, 71, 79, 0)   42%,
        rgba(10, 71, 79, 0.88) 68%,
        rgba(10, 71, 79, 1)   100%
    );
}

.atributos__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 56px;
    align-items: start;
    padding-inline: var(--padding-h);
    padding-bottom: 80px;
}

.atributos__col--header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.atributos__copete {
    color: var(--white);
    letter-spacing: 0.1em;
}

.atributos__title {
    font-style: italic;
    color: var(--white);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.05;
}

.atributos__text {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
    color: var(--white);
}

@media (max-width: 1024px) {
    .atributos {
        min-height: auto;
    }

    .atributos__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding-top: 60vh;
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .atributos__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 50vh;
        padding-bottom: 48px;
    }

    .atributos__overlay {
        background: linear-gradient(
            to bottom,
            rgba(10, 71, 79, 0)   0%,
            rgba(10, 71, 79, 0.9) 45%,
            rgba(10, 71, 79, 1)  100%
        );
    }
}

/* ── Section Ecosistema ──────────────────────────────────────────────────── */

.ecosistema {
    background: linear-gradient(to bottom, #0A474F 0%, var(--green-dark) 100%);
    padding-top: var(--section-v);
    padding-bottom: var(--section-v);
    overflow: hidden;
}

/* Header */
.ecosistema__header {
    text-align: center;
    padding-inline: var(--padding-h);
    margin-bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.ecosistema__copete {
    color: var(--green-light);
    letter-spacing: 0.1em;
}

.ecosistema__title {
    font-style: italic;
    color: var(--white);
    line-height: 1.1;
}

/* Cards grid — full width, no container */
.ecosistema__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding-inline: 24px;
}

/* Individual card */
.eco-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

.eco-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.eco-card:hover .eco-card__img {
    transform: scale(1.05);
}

/* Static gradient: transparent → 55% black at bottom */
.eco-card__gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        transparent 45%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

/* Colored hover overlay */
.eco-card__hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.eco-card:hover .eco-card__hover { opacity: 1; }

.eco-card--terracota  .eco-card__hover { background: rgba(207, 76,  53,  0.80); }
.eco-card--green-dark .eco-card__hover { background: rgba(25,  119, 132, 0.80); }
.eco-card--orange     .eco-card__hover { background: rgba(225, 149, 79,  0.80); }
.eco-card--green-light .eco-card__hover { background: rgba(79, 180, 149, 0.80); }

/* Card content */
.eco-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.eco-card__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
}

.eco-card__desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    margin-bottom: 0;
    transition: opacity 0.35s ease 0.05s,
                transform 0.35s ease 0.05s,
                max-height 0.4s ease,
                margin-bottom 0.35s ease;
}

.eco-card:hover .eco-card__desc {
    max-height: 150px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 14px;
}

.eco-card__link {
    display: inline-block;
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.25s ease;
    line-height: 1;
}

.eco-card:hover .eco-card__link { opacity: 1; }

/* 5-column illustration row */
.ecosistema__icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    padding-inline: var(--padding-h);
    padding-top: var(--section-v);
    text-align: center;
}

.ecosistema__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.ecosistema__icon img {
    width: auto;
    /* max-width: 180px; */
    /* height: 110px; */
    object-fit: contain;
    opacity: 0.65;
}

.ecosistema__icon-label {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--white);
    max-width: 18ch;
}

@media (max-width: 1024px) {
    .ecosistema__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecosistema__icons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ecosistema__header {
        margin-bottom: 48px;
    }

    /* Scroll horizontal con snap — 1 card visible + peek de la siguiente */
    .ecosistema__cards {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline-start: var(--padding-h-mobile);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-inline: var(--padding-h-mobile);
    }

    .ecosistema__cards::-webkit-scrollbar { display: none; }

    .eco-card {
        flex: 0 0 78vw;
        aspect-ratio: 3 / 4;
        border-radius: 12px;
        scroll-snap-align: start;
    }

    /* Sin overlay de color en mobile — evita el "hover atascado" en touch */
    .eco-card__hover { display: none; }

    /* Descripción y CTA siempre visibles — no dependen del hover */
    .eco-card__desc {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 14px;
    }

    .eco-card__link { opacity: 1; }

    /* Gradient más pronunciado para que el texto lea bien */
    .eco-card__gradient {
        background: linear-gradient(
            to bottom,
            transparent 20%,
            rgba(0, 0, 0, 0.70) 100%
        );
    }

    /* Padding menor para que quepa en pantallas chicas */
    .eco-card__body {
        padding: 20px 20px 24px;
    }

    .eco-card__title {
        font-size: 22px;
    }

    /* Icons: 2 columnas en mobile */
    .ecosistema__icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
}

/* ── Section Real Estate ─────────────────────────────────────────────────── */

.realestate {
    background: linear-gradient(to bottom right, #E3ECE4 0%, #D4EEEB 100%);
    padding-block: var(--section-v);
    padding-inline: var(--padding-h);
}

/* Grid texto + foto */
.realestate__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--padding-inner-h);
    margin-bottom: 120px;
}

.realestate__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.realestate__copete {
    color: var(--terracota);
    letter-spacing: 0.1em;
}

.realestate__title {
    font-style: italic;
    color: var(--text-dark);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

.realestate__body {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.75;
    color: var(--text-dark);
    max-width: 44ch;
}

.realestate__cta {
    margin-top: 8px;
}

/* Imagen */
.realestate__image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

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

/* Stats — 5 col, ancho del contenedor */
.realestate__stats {
    display: flex;
    justify-content: space-between;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--padding-inner-h);
}

.realestate-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.realestate-stat__value {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 300;
    color: var(--green-light);
    line-height: 1;
}

.realestate-stat__label {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-light);
}

/* ── Section Ubicación ───────────────────────────────────────────────────── */

.ubicacion {
    position: relative;
}

/* Tall wrapper — the extra height creates the scroll space for the animation */
.ubicacion__outer {
    height: 300vh;
    position: relative;
}

/* Sticky inner — pinned at top:0 for the full 300vh scroll distance */
.ubicacion__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #a7e0ed; /* ocean color — fills letterbox gaps during zoom */
}

.ubicacion__map-wrap {
    width: 100%;
    height: 100%;
}

.ubicacion__map-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* SVG layer visibility — JS sets opacity per frame */
#ubicacion-svg #refes,
#ubicacion-svg #punto,
#ubicacion-svg #la-providencia {
    opacity: 0;
}

/* cls-8 reference lines */
#ubicacion-svg .cls-8 {
    vector-effect: non-scaling-stroke;
    stroke-width: 0.8;
}

/* Country borders: cls-13 peeks out ~2px from under cls-11, invisible at full zoom.
   Adding a stroke directly on cls-11 gives consistent 0.6px borders at all zoom levels. */
#ubicacion-svg #south-america .cls-11 {
    vector-effect: non-scaling-stroke;
    stroke: #719090;
    stroke-width: 0.6;
}

/* La Providencia marker — ripple rings injected by JS */
@keyframes ubicacion-pulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(5.5); opacity: 0;   }
}

.ubicacion-pulse-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: ubicacion-pulse 2.4s cubic-bezier(0.15, 0.5, 0.5, 1) infinite;
    pointer-events: none;
}

#ubicacion-svg #punto {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0.72);
}

/* Mini-map reference image — bottom-right of sticky container */
.ubicacion__minimap {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: clamp(220px, 26vw, 380px);
    height: auto;
    display: block;
    opacity: 1;
    pointer-events: none;
    border-radius: 4px;
}

/* Info overlay panel — revealed by JS after zoom completes */
.ubicacion__info {
    position: absolute;
    left: max(var(--padding-h), calc((100vw - var(--container-max)) / 2 + var(--padding-h)));
    bottom: 56px;
    width: clamp(300px, 36vw, 440px);
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    opacity: 0;
    transform: translateY(32px);
    box-shadow: 0 8px 48px rgba(10, 71, 79, 0.14);
    pointer-events: none;
}

.ubicacion__info.is-visible {
    pointer-events: auto;
}

.ubicacion__copete {
    display: block;
    color: var(--terracota);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.ubicacion__title {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.05;
    margin-bottom: 16px;
}

.ubicacion__body {
    font-size: clamp(14px, 1.1vw, 15px);
    line-height: 1.75;
    color: var(--text-dark);
}

.ubicacion__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ubicacion__table tr:first-child td {
    border-top: 1px solid rgba(10, 71, 79, 0.12);
}

.ubicacion__table td {
    padding: 13px 0;
    border-bottom: 1px solid rgba(10, 71, 79, 0.12);
    vertical-align: top;
}

.ubicacion__table-key {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--green-light);
    width: 38%;
    padding-right: 16px;
    line-height: 1.5;
}

.ubicacion__table-val {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-dark);
}

.ubicacion__cta {
    display: inline-block;
    margin-top: 20px;
}

/* ── Section Separator ───────────────────────────────────────────────────── */
.section-separator {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-separator__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.section-separator__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.20);
}

.section-separator__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.separator-quote {
    border: none;
    padding: 0;
}

.separator-quote p {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.25;
    color: var(--white);
}

/* ── Section Reserva ─────────────────────────────────────────────────────── */

.reserva {
    background: var(--bg-green);
    padding-top: var(--section-v);
    overflow: hidden;
}

/* Grid texto + foto — mismo patrón que realestate */
.reserva__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--padding-h);
    margin-bottom: var(--section-v);
}

.reserva__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reserva__copete {
    color: var(--terracota);
    letter-spacing: 0.1em;
}

.reserva__title {
    font-style: italic;
    color: var(--text-dark);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

.reserva__body {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.75;
    color: var(--text-dark);
    max-width: 44ch;
}

.reserva__cta { margin-top: 8px; }

.reserva__image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

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

/* Fauna strip — drag horizontal full width */
.fauna-strip {
    width: 100%;
    overflow: hidden;
}

.fauna-strip__track {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    height: clamp(260px, 32vw, 420px);
}

.fauna-strip__track::-webkit-scrollbar { display: none; }

.fauna-strip__track.is-dragging {
    cursor: grabbing;
}

.fauna-strip__item {
    flex: 0 0 calc(100vw / 4.3);
    height: 100%;
}

.fauna-strip__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Section Estancia ────────────────────────────────────────────────────── */

.estancia {
    background: var(--bg-green);
    padding-block: var(--section-v);
}

/* Header centrado */
.estancia__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-inline: var(--padding-h);
    max-width: var(--container-max);
    margin-inline: auto;
    margin-bottom: 64px;
}

.estancia__copete {
    color: var(--terracota);
    letter-spacing: 0.1em;
}

.estancia__title {
    font-style: italic;
    color: var(--text-dark);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
}

.estancia__body {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
    color: var(--text-dark);
    max-width: 56ch;
}

/* Cards — full width, 4 col */
.estancia__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-inline: var(--padding-h);
}

.estancia-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.estancia-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.estancia-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.estancia-card:hover .estancia-card__img img {
    transform: scale(1.04);
}

.estancia-card__content {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.estancia-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: var(--green-dark);
    line-height: 1.2;
}

.estancia-card__body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

/* CTA centrado */
.estancia__cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

@media (max-width: 1024px) {
    .estancia__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .estancia__cards { grid-template-columns: 1fr; gap: 30px; }
    .estancia__header{
        text-align: left;
        align-items: start;
    }
}

/* ── Section Partners ────────────────────────────────────────────────────── */
.partners {
    position: relative;
    padding-block: var(--section-v);
    overflow: hidden;
    min-height: 90vh;
}

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

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

.partners__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.20);
}

.partners__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 120px;
    padding-inline: var(--padding-h);
}

.partners__title {
    color: var(--white);
    font-weight: 300;
}

.partners__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.partners-logo {
    
    padding: 0px 32px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    min-height: 140px;
}

.partners-logo img {
    max-width: 100%;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.partners-logo:hover img { opacity: 1; }

/* ── Responsive (all sections) ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .realestate__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-bottom: 56px;
        padding-inline: 0;
    }

    .realestate__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 0;
    }

    .ubicacion__outer {
        height: 250vh;
    }

    .ubicacion__info {
        left: var(--padding-h);
        width: clamp(280px, 55vw, 400px);
        bottom: 40px;
        padding: 32px;
    }

    .reserva__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .intro__grid {
        grid-template-columns: 1fr;
        gap: 60px 120px;
        margin-bottom: 80px;
    }

    .intro__col--right {
        padding-top: 0;
        padding-left: 0;
    }

    .intro__col--left .intro__text {order: 2}
    .intro__col--left .intro__illustration--whale {order:1}
    .intro__col--left .intro__img-wrap {order:3}

    .intro__col--right .intro__illustration--bird { order: 1; margin:0 auto }
    .intro__col--right .intro__text               { order: 3; }
    .intro__col--right .intro__img-wrap           { order: 2; }

    .intro__fullimg {
        aspect-ratio: 5 / 3;
        margin-bottom: 60px;
        margin-inline: 0;
        border-radius: 0;
    }
    .intro__arq{
        width: 100%;
    }

    .intro__header {
        margin-bottom: 64px;
    }

    .partners__logos {
        grid-template-columns: repeat(2, 1fr);
        flex-direction: column;
    }
    .partners-logo{
        width: 100%;

    }
    .partners-logo img{
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .intro,
    .realestate,
    .reserva,
    .estancia,
    .partners {
        padding-block: var(--section-v);
    }

    .ubicacion__outer {
        height: 220vh;
    }

    .ubicacion__info {
        left: var(--padding-h-mobile);
        right: var(--padding-h-mobile);
        bottom: 24px;
        width: auto;
        padding: 24px;
    }

    .realestate__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
        padding-inline: 0;
    }

    .realestate-stat__value {
        font-size: 18px;
    }

    .realestate-stat__label {
        font-size: 8px;
        line-height: 1.3;
        letter-spacing: 0.05em;
    }

    .fauna-strip__item {
        flex: 0 0 calc(100vw / 2.2);
    }
}


/* =============================================================================
   SECCIÓN CONTACTO
   ============================================================================= */

.contacto {
    background: var(--text-dark);
    padding-block: var(--section-v);
}

.contacto__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}

/* ── Col texto ───────────────────────────────────────────────────────────── */

.contacto__col-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
    position: sticky;
    top: 120px;
}

.contacto__copete {
    color: var(--green-light);
    letter-spacing: 0.1em;
}

.contacto__title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
}

.contacto__title em {
    font-style: italic;
    color: var(--green-light);
}

.contacto__body {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.60);
    max-width: 42ch;
}

.contacto__info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

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

.contacto__info-label {
    color: rgba(255, 255, 255, 0.40);
    letter-spacing: 0.1em;
}

.contacto__info-item a,
.contacto__info-item span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.6;
    transition: color 0.2s;
}

.contacto__info-item a:hover {
    color: var(--white);
    opacity: 1;
}


/* ── Col formulario ──────────────────────────────────────────────────────── */

.contacto__col-form {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 16px;
    padding: 48px 44px;
}

.contacto__form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contacto__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contacto__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacto__label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.contacto__label span {
    color: var(--terracota);
}

.contacto__input,
.contacto__select {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    padding: 12px 0;
    width: 100%;
    transition: border-color 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}

.contacto__input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.contacto__input:focus,
.contacto__select:focus {
    outline: none;
    border-bottom-color: var(--green-light);
}

.contacto__input.is-invalid,
.contacto__select.is-invalid {
    border-bottom-color: var(--terracota);
}

.contacto__select-wrap {
    position: relative;
}

.contacto__select {
    cursor: pointer;
    padding-right: 24px;
}

.contacto__select option {
    background: var(--text-dark);
    color: var(--white);
}

.contacto__select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.40);
}

.contacto__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    background: var(--green-light);
    color: var(--text-dark);
    padding: 16px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.25s ease, color 0.25s ease, gap 0.2s ease;
    opacity: 1;
}

.contacto__submit:hover {
    background: var(--green-dark);
    color: var(--white);
    gap: 16px;
    opacity: 1;
}

.contacto__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.contacto__feedback {
    font-size: 14px;
    line-height: 1.5;
    min-height: 1.5em;
}

.contacto__feedback.is-success { color: var(--green-light); }
.contacto__feedback.is-error   { color: var(--terracota); }

/* Honeypot — fuera del viewport, invisible para humanos */
.contacto__hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.contacto__textarea {
    resize: none;
    min-height: 88px;
    line-height: 1.7;
}

.contacto__label .contacto__optional {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 6px;
    font-size: 11px;
}

/* ── Phone group (código de país + número) ────────────────────────────── */

.contacto__phone-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.contacto__phone-num {
    flex: 1 1 0;
    min-width: 0;
}

/* ── Phone dial combobox ─────────────────────────────────────────────── */

.contacto__phone-dial {
    flex: 0 0 auto;
    width: 120px;
    position: relative;
}

.contacto__phone-trigger {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    padding: 12px 20px 12px 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: border-color 0.25s ease;
    text-align: left;
    white-space: nowrap;
}

.contacto__phone-trigger svg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.40);
    transition: transform 0.2s ease;
    pointer-events: none;
    flex-shrink: 0;
}

.contacto__phone-trigger:focus {
    outline: none;
    border-bottom-color: var(--green-light);
}

.contacto__phone-trigger[aria-expanded="true"] {
    border-bottom-color: var(--green-light);
}

.contacto__phone-trigger[aria-expanded="true"] svg {
    transform: translateY(-50%) rotate(180deg);
}

.contacto__phone-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 280px;
    background: #0c3840;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    z-index: 200;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.contacto__phone-search-wrap {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.contacto__phone-search {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    padding: 9px 12px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}

.contacto__phone-search::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.contacto__phone-search:focus {
    border-color: var(--green-light);
}

.contacto__phone-list {
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.contacto__phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.contacto__phone-item:hover,
.contacto__phone-item.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.contacto__phone-item[aria-selected="true"] {
    background: rgba(79, 180, 149, 0.10);
}

.contacto__phone-item-flag {
    font-size: 17px;
    flex-shrink: 0;
    line-height: 1;
}

.contacto__phone-item-name {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contacto__phone-item-code {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    flex-shrink: 0;
}

.contacto__phone-empty {
    padding: 16px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.30);
    text-align: center;
}


/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .contacto__inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .contacto__col-text {
        position: static;
    }
}

@media (max-width: 768px) {
    .contacto {
        padding-block: 56px;
    }

    .contacto__col-form {
        padding: 20px 20px;
    }

    .contacto__row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ─── Loteo Mapa ─────────────────────────────────────────────── */

.loteo-mapa {
    padding-top: var(--section-v);
    padding-bottom: var(--section-v);
    background: var(--bg-green);
}

.loteo-mapa__header {
    text-align: center;
    margin: 0 auto 56px;
}

.loteo-mapa__copete {
    display: block;
    margin-bottom: 16px;
    color: var(--green-dark);
}

.loteo-mapa__title {
    font-family: "new-spirit", serif;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.loteo-mapa__lead {
    color: var(--text-light);
}

/* Preview */
.loteo-mapa__preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(10, 71, 79, 0.14);
    cursor: pointer;
}

.loteo-mapa__preview-img {
    display: block;
    width: 100%;
    height: auto;
}

.loteo-mapa__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 71, 79, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.loteo-mapa__preview:hover .loteo-mapa__overlay {
    background: rgba(10, 71, 79, 0.55);
}

.loteo-mapa__open-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--green-light);
    color: var(--white);
    font-family: "tt-commons-pro", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.loteo-mapa__open-btn:hover {
    background: var(--green-dark);
    transform: scale(1.03);
}

/* Modal */
.loteo-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loteo-modal[hidden] {
    display: none;
}

.loteo-modal.is-open {
    display: flex;
}

.loteo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 71, 79, 0.85);
    cursor: pointer;
}

.loteo-modal__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(100vw - 48px);
    height: calc(100vh - 48px);
    max-width: 1800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    background: #000;
    z-index: 1;
}

.loteo-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 52px;
    flex-shrink: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(10, 71, 79, 0.1);
}

.loteo-modal__bar-title {
    font-family: "tt-commons-pro", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

.loteo-modal__close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 12px;
    background: var(--green-dark);
    color: var(--white);
    font-family: "tt-commons-pro", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.loteo-modal__close:hover {
    background: var(--text-dark);
}

.loteo-modal__iframe {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
}

/* Animate modal in */
.loteo-modal.is-open .loteo-modal__inner {
    animation: modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .loteo-mapa {
        padding-top: var(--section-v-mobile);
        padding-bottom: var(--section-v-mobile);
    }

    .loteo-mapa__header {
        margin-bottom: 32px;
    }

    .loteo-modal__inner {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}
}
