/* ====================================================
   RESET Y ESTILOS BASE
   ==================================================== */

/* Asegurar que no haya espacios superiores por Lenis smooth scroll */
html.lenis,
html.lenis body {
    margin: 0;
    padding: 0;
}

/* ====================================================
   TOPBAR — Navbar fija (transparente → glass al scroll)
   ==================================================== */
:root {
    --topbar-h: 68px;
    --site-max: var(--content-max-width, 1400px);
    --site-pad: var(--content-padding-desktop, clamp(5rem, 8vw, 10rem));
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    z-index: 9999;
    /* Oculta por defecto — se muestra cuando el hero sale del viewport */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    background: rgba(10, 12, 18, 0.6);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.topbar.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

html {
    scroll-padding-top: var(--topbar-h);
}

.topbar__inner {
    height: 100%;
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hamburguesa dentro de la topbar */
.topbar .nav__burger {
    position: relative !important;
    z-index: 10001;
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Links de acción a la derecha */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.topbar__link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s;
}

.topbar__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.topbar__link:hover {
    color: #ffffff;
}

.topbar__link:hover::after {
    width: 100%;
}

/* --- Topbar responsive --- */
@media (max-width: 900px) {
    .topbar__left {
        gap: 1.4rem;
    }

    .topbar__link {
        font-size: 0.76rem;
    }
}

@media (max-width: 540px) {
    :root {
        --topbar-h: 58px;
    }

    .topbar__left {
        gap: 0.6rem;
    }

    .topbar__link {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
    }
}

/* Navbar mobile: 4 links con texto corto */
.topbar-label-short {
    display: none;
}

@media (max-width: 768px) {
    .topbar-label-full {
        display: none;
    }
    .topbar-label-short {
        display: inline;
    }
    .topbar__left {
        gap: 0.8rem;
    }
    .topbar__link {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }

    /* Ocultar topbar cuando el menú overlay está abierto */
    body:has(.menu-overlay.is-open) .topbar {
        opacity: 0;
        pointer-events: none;
    }

    .topbar__link--desktop {
        display: none;
    }
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ====================================================
   BOTONES FIJOS
   ==================================================== */

/* Botones fijos esquina inferior derecha */
.fixed-buttons {
    position: fixed;
    bottom: 1.75rem;
    right: 2.2rem;
    display: flex;
    gap: 1rem;
    z-index: 10050;
    pointer-events: auto;
}

.fixed-buttons > * {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.scroll-to-top-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: auto;
}

.scroll-to-top-button.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.scroll-to-top-button:hover {
    transform: translateY(-4px);
    background: #f5f5f5;
}

.whatsapp-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s, opacity 0.3s;
    pointer-events: auto;
}

.whatsapp-button.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.whatsapp-button:hover {
    transform: translateY(-4px);
}
.tours-virtuales__btn {
    display: block;
    width: max-content;
    min-width: 180px;
    margin: 1.2rem 0 0 0;
    padding: 0.5rem 1.3rem;
    background: transparent;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: 1.5px solid #1a1a1a;
    border-radius: 2em;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 10;
}
.tours-virtuales__btn:hover {
    background: #1a1a1a;
    color: #fff;
    border: 1.5px solid #1a1a1a;
    transform: translateY(-2px) scale(1.05);
}
/* ====================================================
   BOTÓN "VOLVER A PROYECTOS" - UNIFICADO
   ====================================================
   El botón es HIJO DIRECTO de .video-background (NO de .hero-header-inner)
   para evitar herencia de pointer-events:none que bloqueaba clics en 4K.
   Posición: absolute dentro de .video-background, bottom:3rem.
   Right usa max() para coincidir con el contenedor centrado de 1400px.
   ==================================================== */
.btn-volver-proyectos {
    display: none !important;
}

.btn-volver-proyectos-unified {
    /* Garantizar interactividad en todas las resoluciones */
    position: absolute !important;
    z-index: 150 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    /* ELIMINADOS: isolation:isolate, will-change:transform, backdrop-filter
       Causaban compositing layers con hit-test incorrecto en 4K */
    /* Área clickeable completa garantizada */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop grande y 4K: garantizar visibilidad y clickeabilidad */
@media (min-width: 1025px) {
    .btn-volver-proyectos-unified {
        z-index: 150 !important;
        pointer-events: auto !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .btn-volver-proyectos-unified {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        font-size: 0.82rem !important;
        padding: 0.6em 1.3em !important;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .btn-volver-proyectos-unified {
        bottom: 1rem !important;
        right: 1.2rem !important;
        font-size: 0.75rem !important;
        padding: 0.5em 1em !important;
    }
}

/* ====================================================
   SENDEROS HOUSING - ESTILOS COMPLETOS
   ==================================================== */

/* Variables CSS */
:root {
    --color-white: #ffffff;
    --font-body: 'Montserrat', sans-serif;
    --section-gap: clamp(3.5rem, 5vw, 6rem);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background: #e8e8e0;
}

/* Prevenir scroll cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
}

/* ====================================================
   VIDEO DE FONDO
   ==================================================== */
.video-background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 90vh;
    z-index: 1;
    overflow: hidden;
}

/* Elevar .video-background por encima de body::after (z-index:10 en styles.css)
   para que todo el contenido del hero sea interactivo en TODAS las resoluciones */
.video-background {
    z-index: 11;
}

@media (min-width: 1025px) {
    .video-background {
        width: 100%;
        max-width: 100%;
    }
}

/* ====================================================
   HERO - PROTECCIÓN POINTER-EVENTS PARA TODAS LAS RESOLUCIONES
   ====================================================
   Garantizar que las capas decorativas (overlays, fondos) NUNCA bloqueen
   la interacción con botones en ninguna resolución (1080p, 2K, 4K).
   ==================================================== */

/* Wrapper de contenido del hero: no debe interceptar clics */
.hero-content-wrapper {
    pointer-events: none !important;
}

/* Solo los elementos interactivos dentro del hero reciben clics */
.hero-content-wrapper .hero-text-content {
    pointer-events: auto;
}

.hero-content-wrapper .hero-buttons a {
    pointer-events: auto;
}

/* Overlays decorativos: nunca interceptar clics */
.video-background__overlay,
.video-background__darken {
    pointer-events: none !important;
}

.video-background__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

/* Wrapper parallax del hero: sobredimensionado para cubrir movimiento */
.hero-media {
    position: absolute;
    inset: -15% 0;
    width: 100%;
    height: 130%;
    overflow: hidden;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.video-background__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.30);
    z-index: 2;
}

.video-background__darken {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 3;
    pointer-events: none;
}

/* Título centrado sobre el video */
.video-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 100%;
    max-width: 900px;
    text-align: center;
    pointer-events: none;
}
.video-title--logo img {
    max-width: 520px;
    width: 98vw;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 16px rgba(0,0,0,0.18));
}

/* ====================================================
   LOGO SUPERIOR IZQUIERDA
   ==================================================== */
.header-logo {
    position: absolute;
    top: 32px;
    left: 40px;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-logo img {
    width: 220px; /* Tamaño agrandado */
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

/* ====================================================
   BOTÓN HAMBURGUESA SUPERIOR DERECHA
   ==================================================== */
.header-burger {
    position: absolute;
    top: 32px;
    right: 40px;
    z-index: 3000;
    width: 2.8rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-burger:hover {
    transform: scale(1.05);
}

.header-burger:hover {
    transform: scale(1.05);
}

.header-burger.is-open {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.header-burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ====================================================
   MENÚ OVERLAY - ESTILOS ELIMINADOS
   Los estilos del menú overlay ahora se heredan de styles.css
   para mantener consistencia con el index principal de CREAR.
   ==================================================== */

/* Media query antiguo removido - causaba conflicto con estilos actuales del botón volver a proyectos */

@media (max-width: 768px) {
    .header-languages {
        display: none;
    }
    .header-logo {
        top: 24px;
        left: 24px;
    }

    .header-logo img {
        width: 160px;
    }

    .header-languages {
        top: 28px;
        right: 90px;
        gap: 0.8rem;
    }

    .header-languages a {
        font-size: 0.85rem;
    }

    .header-burger {
        top: 24px;
        right: 24px;
        width: 32px;
        height: 32px;
    }

    .header-burger__line {
        width: 22px;
        height: 2.4px;
    }

    .video-background {
        height: 60%;
    }
    
    .video-title {
        font-size: 1.5rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header-logo {
        top: 20px;
        left: 20px;
    }

    .header-logo img {
        width: 130px;
    }

    .header-languages {
        top: 24px;
        right: 70px;
        gap: 0.6rem;
    }

    .header-languages a {
        font-size: 0.8rem;
    }

    .header-burger {
        top: 20px;
        right: 20px;
    }
    
    .video-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
}

/* ====================================================
   HERO LAYOUT — Structured overlay
   ==================================================== */
.hero-darken {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.hero-layout {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.hero-layout a,
.hero-layout button,
.hero-layout p {
    pointer-events: auto;
}

/* --- Top row: logo + burger --- */
.hero-header {
    padding: 2rem 0 0;
}

.hero-header-inner {
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.hero-logo {
    max-width: 380px;
    width: clamp(180px, 30vw, 380px);
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.hero-burger {
    flex-shrink: 0;
}

/* --- Center: description --- */
.hero-body {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-body-inner {
    padding: 0 var(--page-gutter);
    width: 100%;
}

.hero-description {
    max-width: 620px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* --- Bottom row: buttons + volver --- */
.hero-footer {
    padding: 0 0 2.5rem;
}

.hero-footer-inner {
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65em 1.6em;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 2em;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.hero-btn-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.95);
}

/* Links exclusivos mobile en el menú: ocultos en desktop */
/* Labels de botones: por defecto mostrar full, ocultar short */
.btn-label-short {
    display: none;
}

.menu-overlay__link--mobile-only {
    display: none;
}

/* --- Hero layout responsive --- */
@media (max-width: 768px) {
    /* Mostrar links mobile-only en el menú */
    .menu-overlay__link--mobile-only {
        display: block;
    }
    
    /* Labels: mostrar short, ocultar full */
    .btn-label-full {
        display: none;
    }
    .btn-label-short {
        display: inline;
    }
    
    /* Tours virtuales visible en mobile */
    .hero-btn-tours {
        display: inline-flex !important;
    }
    
    .hero-header {
        padding-top: 1.5rem;
    }
    .hero-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .hero-burger {
        margin-left: auto;
    }
    .hero-footer {
        padding-bottom: 1.2rem;
    }
    .hero-footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }
    
    /* 3 botones en una sola fila */
    .hero-buttons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        max-width: none;
        margin: 0;
    }
    .hero-description {
        font-size: 0.95rem;
        max-width: 90%;
        margin-bottom: 0.8rem;
    }
    .hero-btn-glass {
        font-size: 10.5px;
        padding: 4px 12px;
        border-radius: 20px;
        white-space: nowrap;
        line-height: 1;
        min-height: 0;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-header {
        padding-top: 1.2rem;
    }
    .hero-footer {
        padding-bottom: 1.2rem;
    }
    .hero-footer-inner {
        padding: 0 1.2rem !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }
    .hero-body-inner {
        padding: 0 1.2rem !important;
    }
    .topbar__inner {
        padding: 0 1.2rem !important;
    }
    .hero-buttons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        max-width: none;
        margin: 0;
    }
    .hero-description {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 0.6rem;
    }
    .hero-btn-glass {
        font-size: 9.5px;
        padding: 4px 10px;
        border-radius: 18px;
        white-space: nowrap;
        line-height: 1;
        min-height: 0;
        height: auto;
    }
}

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
    background-color: #05080f;
    color: #ffffff;
    padding: 4rem var(--page-gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-footer__column--left {
    display: flex;
    align-items: center;
}

.site-footer__column--right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.site-footer__logo,
img.site-footer__logo {
    height: 70px;
    width: auto;
    max-width: 270px;
    object-fit: contain;
}

.site-footer__location,
.site-footer__contact,
.site-footer__copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer__contact a {
    color: inherit;
    text-decoration: none;
}

.site-footer__social {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.site-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__social a:hover {
    opacity: 0.75;
    transform: translateY(-2px);
}

.site-footer__social .icon-linktree {
    width: 24px;
    height: 24px;
}

/* ====================================================
   SECCIÓN UBICACIÓN
   ==================================================== */
.ubicacion {
    width: 100%;
    background: #e8e8e0;
    padding: var(--section-gap) 0 0;
    overflow: hidden;
}

.ubicacion__container {
    padding: 0 var(--page-gutter);
}

.ubicacion__text-wrapper {
    margin-bottom: 4rem;
}

.ubicacion__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.ubicacion__description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.6;
    width: 100%;
    text-align: left;
    max-width: 100%;
}

.ubicacion__description[data-text-reveal] {
    display: block;
}

.ubicacion__paragraph {
    margin: 0;
    width: 100%;
    font-weight: 300;
}

/* Efecto letra por letra para texto con data-text-reveal */
.ubicacion__paragraph .letter {
    color: #d1d1d1 !important;
    transition: color 0.2s ease;
    display: inline;
}
.ubicacion__paragraph .letter.revealed {
    color: #1f1f1f !important;
}

/* Video con efecto parallax */
/* Wrapper único: detecta hover en TODA el área, contiene video + overlay mapa */
.map-hover {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 8;
    min-height: clamp(320px, 36vw, 540px);
    background: #2f3540;
    border-radius: 0;
}

/* Video sobredimensionado para parallax sin bandas */
.map-hover video {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Capa oscura sobre el video */
.video-overlay {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 1;
}

/* Overlay del mapa: se muestra con click en botón VER MAPA */
.map-overlay {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 3;
    opacity: 0;
    transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.map-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 53%;
    display: block;
}

/* Botón VER MAPA centrado sobre el video */
.map-toggle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1em 2em;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.map-toggle-btn:hover {
    opacity: 0.75;
}

/* Estado activo: mapa visible */
.map-hover.map-active .map-overlay {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.map-hover.map-active .map-toggle-btn {
    opacity: 0;
    pointer-events: none;
}

.map-hover.map-active .video-overlay {
    opacity: 0;
    transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ubicacion__hero-text {
    font-family: var(--font-body);
    font-size: 2.8rem;
    line-height: 1.2;
    color: white;
    margin: 0.3rem 0 0 0;
    text-align: right;
    font-weight: 300;
    letter-spacing: 0.035em;
    width: 100%;
    align-self: flex-end;
    position: static;
    max-width: 95%;
    z-index: 1;
}

.ubicacion__hero-text span {
    font-size: 2.1rem;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

@media (max-width: 1200px) {
    .video-title {
        font-size: 2.7rem;
        white-space: nowrap;
    }
}

@media (max-width: 1024px) {
    .video-title {
        font-size: 2.1rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .header-logo {
        top: 24px;
        left: 24px;
    }

    .header-logo img {
        width: 160px;
    }

    .header-languages {
        top: 28px;
        right: 90px;
        gap: 0.8rem;
    }

    .header-languages a {
        font-size: 0.85rem;
    }

    .header-burger {
        top: 24px;
        right: 24px;
        width: 32px;
        height: 32px;
    }

    .header-burger__line {
        width: 22px;
        height: 2.4px;
    }

    .video-background {
        height: 60%;
    }
    
    .video-title {
        font-size: 1.5rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header-logo {
        top: 20px;
        left: 20px;
    }

    .header-logo img {
        width: 130px;
    }

    .header-languages {
        top: 24px;
        right: 70px;
        gap: 0.6rem;
    }

    .header-languages a {
        font-size: 0.8rem;
    }

    .header-burger {
        top: 20px;
        right: 20px;
    }
    
    .video-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }
}

/* ====================================================
   SECCIÓN EQUIPAMIENTO - GRID
   ==================================================== */
.equipamiento {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #e8e8e0;
    padding: 48px 0 6rem;
}

.equipamiento__container {
    padding: 0 var(--page-gutter);
}

.equipamiento__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: #1a1a1a;
    text-align: left;
    margin-bottom: 48px;
}

/* ── Carousel ── */
.equip-carousel {
    position: relative;
    width: 100%;
}

/* ── Flechas de navegación ── */
.equip-arrows {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.equip-arrow {
    width: 48px;
    height: 48px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.equip-arrow:hover {
    background: #1a1a1a;
    color: #fff;
}
.equip-arrow:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.equip-track {
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.equip-track::-webkit-scrollbar { display: none; }

.equipamiento__card {
    flex: 0 0 auto;
    width: clamp(260px, 30vw, 420px);
    height: clamp(360px, 40vw, 520px);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.equipamiento__card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.equipamiento__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

.equipamiento__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    color: #fff;
}

.equipamiento__card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 1.6vw, 1.8rem);
    font-weight: 500;
    letter-spacing: 0.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.equipamiento__card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.8rem, 0.95vw, 0.95rem);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
}

/* Hover card */
@media (hover: hover) and (pointer: fine) {
    .equipamiento__card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.22);
    }
}



/* ── Brochure link ── */
.equip-brochure {
    display: inline-block;
    margin-top: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1.5px;
    transition: opacity 0.2s;
}
.equip-brochure:hover { opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .equipamiento { padding: 36px 0 3rem; }
    .equipamiento__container { padding: 0 2rem; }
    .equipamiento__title { margin-bottom: 32px; }
    .equipamiento__card { width: 75vw; height: clamp(340px, 55vw, 440px); }
    .equip-arrow { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .equipamiento__container { padding: 0 1.5rem; }
    .equipamiento__card { width: 82vw; height: 380px; }
    .equipamiento__card-content { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .equip-track { scroll-behavior: auto; }
    .equipamiento__card { transition: none; }
}

/* ====================================================
   SECCIÓN AMENITIES Y SERVICIOS
   ==================================================== */
.amenities {
    position: relative;
    z-index: 2;
    width: 100%;
    background: #e8e8e0;
    padding: var(--section-gap) 0 48px;
    overflow: visible;
}

.amenities .ubicacion__title {
    margin-top: 0;
    margin-bottom: 0;
}

/* ── Grilla de amenities individuales ── */
.amenities-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(18px, 2.4vw, 40px);
    margin-top: 40px;
    justify-items: start;
}

.amenity-item {
    margin: 0;
    padding: clamp(12px, 1.5vw, 24px) 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 1;
    cursor: pointer;
    will-change: transform;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.amenity-item img {
    width: clamp(64px, 6vw, 110px);
    height: clamp(64px, 6vw, 110px);
    object-fit: contain;
    display: block;
}

.amenity-item figcaption {
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(0.78rem, 1.1vw, 1.1rem);
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: #93a59e;
}

.amenity-item:hover {
    transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
    .amenity-item {
        transition: none;
    }
    .amenity-item:hover {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .amenities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .amenities {
        padding: 32px 0 56px;
    }
}

/* (orphaned old amenities carousel, parallax-section, tipologias CSS removed) */

/* ============================================
   TOURS VIRTUALES
   ============================================ */

.tours-virtuales {
    padding: 0 0 6rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Contenedor de la imagen parallax */
.tours-virtuales__parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 0;
    overflow: hidden;
}

.tours-virtuales__parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

/* Overlay oscuro sobre la imagen */
.tours-virtuales__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.tours-virtuales__container {
    padding: 0 var(--page-gutter);
    position: relative;
    z-index: 2;
}

.tours-virtuales__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: #1a1a1a;
    text-align: left;
    margin-bottom: 3rem;
}

.tours-virtuales__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.tours-virtuales__item {
    display: flex;
    flex-direction: column;
}

.tours-virtuales__item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: #1a1a1a;
    text-align: left;
    margin-bottom: 1.5rem;
}

.tours-virtuales__iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Ratio 4:3 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tours-virtuales__iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Botón Ver Tours Virtuales debajo del logo */
.btn-tours-virtuales {
    display: inline-block;
    margin: 18px auto 0 auto;
    padding: 8px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.08rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.04em;
    transition: background 0.2s, border 0.2s, color 0.2s;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
}
.btn-tours-virtuales:hover, .btn-tours-virtuales:focus {
    background: rgba(255,255,255,0.18);
    border: 1.5px solid #fff;
    color: #fff;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .tours-virtuales__container {
        padding: 0 3rem;
    }

    .tours-virtuales__title {
        font-size: 3rem;
    }

    .tours-virtuales__grid {
        gap: 2.5rem;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .tours-virtuales {
        padding: 4rem 0;
    }

    .tours-virtuales__container {
        padding: 0 2rem;
    }

    .tours-virtuales__title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .tours-virtuales__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tours-virtuales__item-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .tours-virtuales {
        padding: 3rem 0;
    }

    .tours-virtuales__container {
        padding: 0 1.5rem;
    }

    .tours-virtuales__title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .tours-virtuales__item-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .tours-virtuales__iframe-wrapper {
        padding-bottom: 80%; /* Ratio más cuadrado para móviles */
    }
}
.video-title--logo .btn-tours-virtuales {
    pointer-events: auto;
}


/* ========================================================================
   OPTIMIZACIONES MÓVILES PROFESIONALES - SENDEROS HOUSING
   ========================================================================
   
   Mejoras específicas para dispositivos móviles sin afectar desktop.
   Enfoque: legibilidad, usabilidad táctil, jerarquía visual optimizada.
   
   ======================================================================== */


/* ========================================================================
   HERO SECTION - OPTIMIZACIONES MÓVILES
   ======================================================================== */

@media (max-width: 768px) {
    /* Hero más alto y proporcionado en tablet */
    .video-background {
        height: 70vh !important;
    }
    
    /* Logo del proyecto mejor dimensionado */
    .video-title--logo img {
        max-width: 400px !important;
        width: 90vw !important;
    }
    
    /* Botón "Ver Tours" más visible y táctil */
    .btn-tours-virtuales {
        padding: 12px 32px !important;
        font-size: 1rem !important;
        margin-top: 24px !important;
        min-width: 200px !important;
    }
}

@media (max-width: 480px) {
    /* Hero optimizado para móviles pequeños */
    .video-background {
        height: 65vh !important;
    }
    
    /* Logo compacto pero impactante */
    .video-title--logo img {
        max-width: 280px !important;
        width: 85vw !important;
        margin-bottom: 8px !important;
    }
    
    /* Botón táctil optimizado */
    .btn-tours-virtuales {
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
        margin-top: 20px !important;
        min-width: 220px !important;
        letter-spacing: 0.02em !important;
    }
}


/* ========================================================================
   BOTÓN "VOLVER A PROYECTOS" - ANTIGUO (DESACTIVADO EN MÓVIL)
   ======================================================================== */

@media (max-width: 768px) {
    /* MOSTRAR btn-volver-proyectos en mobile (está en el flujo correcto del HTML) */
    .btn-volver-proyectos {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: static !important;
        width: 100% !important;
        margin-top: 0.625rem !important;
        justify-content: center !important;
        /* Mantener estilos visuales consistentes con los otros botones */
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        padding: 0.66em 1.5em !important;
        border-radius: 30px !important;
        text-decoration: none !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        backdrop-filter: blur(10px) !important;
        white-space: nowrap !important;
        transition: all 0.4s !important;
    }
}

@media (max-width: 480px) {
    /* MOSTRAR btn-volver-proyectos en mobile pequeño */
    .btn-volver-proyectos {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: static !important;
        width: 100% !important;
        margin-top: 0.625rem !important;
        justify-content: center !important;
        /* Mantener estilos visuales consistentes */
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        padding: 0.6em 1.3em !important;
        border-radius: 30px !important;
        text-decoration: none !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        backdrop-filter: blur(10px) !important;
        white-space: nowrap !important;
        transition: all 0.4s !important;
    }
}


/* ========================================================================
   BOTONES FIJOS (SCROLL & WHATSAPP) - MÓVIL
   ======================================================================== */

@media (max-width: 768px) {
    .fixed-buttons {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        gap: 1.25rem !important;
        flex-direction: column-reverse !important;
    }
    
    .scroll-to-top-button {
        display: flex !important;
    }
    
    .scroll-to-top-button,
    .whatsapp-button {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.3rem !important;
    }
    
}

@media (max-width: 480px) {
    .fixed-buttons {
        bottom: 1.25rem !important;
        right: 1.25rem !important;
        gap: 1rem !important;
        flex-direction: column-reverse !important;
    }
    
    .scroll-to-top-button,
    .whatsapp-button {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
    
    .scroll-to-top-button {
        box-shadow: 0 3px 8px rgba(0,0,0,0.12) !important;
    }
    
    .whatsapp-button {
        box-shadow: 0 3px 8px rgba(0,0,0,0.12) !important;
    }
}


/* ========================================================================
   SECCIÓN UBICACIÓN - MÓVIL
   ======================================================================== */

@media (max-width: 768px) {
    .ubicacion {
        padding: 4rem 0 2.5rem 0;
    }
    
    .ubicacion__container {
        gap: 2.5rem;
    }
    
    .ubicacion__title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.15rem;
    }
    
    .ubicacion__description {
        margin-bottom: 2rem;
    }
    
    .ubicacion__paragraph {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .map-hover {
        aspect-ratio: 1600 / 1131;
        min-height: 240px;
        height: auto;
        margin: 0 auto;
        max-width: 95vw;
    }
    

}

@media (max-width: 480px) {
    .ubicacion {
        padding: 3rem 0 2rem 0;
    }
    
    .ubicacion__container {
        padding: 0 1.5rem;
        gap: 2rem;
    }
    
    .ubicacion__title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
        letter-spacing: 0.1rem;
    }
    
    .ubicacion__paragraph {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .map-hover {
        aspect-ratio: 1600 / 1131;
        min-height: 220px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        max-width: 95vw;
    }
    

}


/* ========================================================================
   SECCIÓN AMENITIES - GRILLA RESPONSIVE
   ======================================================================== */

@media (max-width: 768px) {
    .amenities {
        padding: 1.5rem 0 3rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(12px, 1.5vw, 20px);
    }
}

@media (max-width: 480px) {
    .amenities {
        padding: 1rem 0 2.5rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


/* ========================================================================
   SECCIÓN EQUIPAMIENTO - GRID MÓVIL
   ======================================================================== */

@media (max-width: 768px) {
    .equipamiento {
        padding: 4rem 0 !important;
    }
    
    .equipamiento__container {
        padding: 0 2rem !important;
    }
    
    .equipamiento__title {
        font-size: 2.5rem !important;
        letter-spacing: 0.15rem !important;
        margin-bottom: 3rem !important;
    }
    
    .equipamiento__card-content {
        padding: 2.25rem !important;
    }
    
    .equipamiento__card-title {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
    }
    
    .equipamiento__card-text {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 480px) {
    .equipamiento {
        padding: 3rem 0 !important;
    }
    
    .equipamiento__container {
        padding: 0 1.5rem !important;
    }
    
    .equipamiento__title {
        font-size: 2rem !important;
        letter-spacing: 0.1rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .equipamiento__card-content {
        padding: 1.75rem !important;
    }
    
    .equipamiento__card-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.85rem !important;
        line-height: 1.25 !important;
    }
    
    .equipamiento__card-text {
        font-size: 0.85rem !important;
        line-height: 1.55 !important;
    }
    
}


/* ========================================================================
   SECCIÓN TOURS VIRTUALES - MÓVIL
   ======================================================================== */

@media (max-width: 768px) {
    .tours-virtuales {
        padding: 4rem 0 !important;
    }
    
    .tours-virtuales__container {
        padding: 0 2rem !important;
    }
    
    .tours-virtuales__title {
        font-size: 2.5rem !important;
        letter-spacing: 0.15rem !important;
        margin-bottom: 3rem !important;
    }
    
    .tours-virtuales__grid {
        grid-template-columns: 1fr !important;
        gap: 2.75rem !important;
    }
    
    .tours-virtuales__item-title {
        font-size: 1.4rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .tours-virtuales__iframe-wrapper {
        border-radius: 8px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
    }
    
    .tours-virtuales__btn {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        margin-top: 1rem !important;
        min-width: 200px !important;
    }
}

@media (max-width: 480px) {
    .tours-virtuales {
        padding: 3rem 0 !important;
    }
    
    .tours-virtuales__container {
        padding: 0 1.5rem !important;
    }
    
    .tours-virtuales__title {
        font-size: 2rem !important;
        letter-spacing: 0.1rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .tours-virtuales__grid {
        gap: 2.5rem !important;
    }
    
    .tours-virtuales__item-title {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .tours-virtuales__iframe-wrapper {
        padding-bottom: 85% !important;
        border-radius: 6px !important;
    }
    
    .tours-virtuales__btn {
        padding: 14px 22px !important;
        font-size: 0.9rem !important;
        margin-top: 1rem !important;
        min-width: 220px !important;
    }
}


/* ========================================================================
   FOOTER - MÓVIL (MISMO ESTILO QUE INDEX)
   ======================================================================== */

@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 1.5rem;
    }
    
    .site-footer__inner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem;
        text-align: center;
    }
    
    .site-footer__column--left {
        align-items: center !important;
    }
    
    .site-footer__column--right {
        align-items: center !important;
        gap: 1.25rem;
    }
    
    .site-footer__logo,
    img.site-footer__logo {
        height: 50px !important;
        width: auto !important;
        max-width: none;
    }
    
    .site-footer__contact,
    .site-footer__copyright {
        font-size: 0.85rem;
        line-height: 1.6;
        text-align: center !important;
    }
    
    .site-footer__social {
        gap: 1rem;
        margin: 0.5rem 0;
        justify-content: center !important;
    }
    
    .site-footer__social a {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 1.2rem;
    }
    
    .site-footer__logo,
    img.site-footer__logo {
        height: 38px !important;
        width: auto !important;
        max-width: none;
    }
    
    .site-footer__contact,
    .site-footer__copyright {
        font-size: 0.8rem;
    }
    
    .site-footer__social a {
        width: 40px;
        height: 40px;
    }
}


/* ========================================================================
   MEJORAS GENERALES DE USABILIDAD MÓVIL
   ======================================================================== */

@media (max-width: 768px) {
    /* Prevenir scroll horizontal */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Mejora de renderizado de texto */
    p, li, span, h1, h2, h3, h4, h5, h6 {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
}

@media (max-width: 480px) {
    /* Prevenir zoom en inputs (iOS) */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Mejorar experiencia táctil */
    * {
        -webkit-tap-highlight-color: transparent !important;
    }
}


/* ========================================================================
   FIN DE OPTIMIZACIONES MÓVILES
   ======================================================================== */

/* ========================================================================
   MENÚ HAMBURGUESA
   ======================================================================== */

.nav__burger {
    width: 3.8rem;
    height: 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: transform 0.2s ease;
}

.nav__burger:hover {
    transform: scale(1.05);
}

.nav__burger span {
    display: block;
    width: 100%;
    height: 4.5px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav__burger.is-open span:nth-child(1) {
    transform: translateY(0.65rem) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__burger.is-open span:nth-child(3) {
    transform: translateY(-0.65rem) rotate(-45deg);
}

/* Menú hamburguesa en mobile */
@media (max-width: 768px) {
    .nav__burger {
        width: 2.4rem;
        height: 1.8rem;
    }
    
    .nav__burger span {
        height: 2.5px;
    }
}

/* Prevenir scroll cuando el menú está abierto */
.no-scroll {
    overflow: hidden !important;
}

/* ====================================================
   OPTIMIZACIONES MÓVIL - HERO SECTION
   Corrección específica para max-width: 768px
   ==================================================== */

@media (max-width: 768px) {
    /* Ajuste del contenedor principal del hero - compacto */
    .video-background {
        height: auto !important;
        min-height: 0 !important;
    }
    
    /* Hero layout pasa a relativo para ocupar solo lo necesario */
    .hero-layout {
        position: relative !important;
    }
    
    .hero-body {
        flex: 0 0 auto !important;
        padding: 2.5rem 0 1rem 0 !important;
    }
    
    /* Asegurar que la imagen de fondo cubra correctamente el hero */
    .video-background__image {
        object-fit: cover !important;
    }
    
    /* Header: fix positioning pulled from flex by mobile-optimizations.css */
    .hero-layout .hero-header {
        padding-top: 1.5rem !important;
        position: relative !important;
        width: 100% !important;
    }
    
    .hero-layout .hero-header-inner {
        padding: 0 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    /* Burger: visible y alineado al borde derecho */
    .hero-layout .hero-burger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        width: 1.6rem !important;
        height: 1.2rem !important;
        flex-shrink: 0 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        margin-left: auto !important;
    }
    
    .hero-layout .hero-burger span {
        display: block !important;
        width: 22px !important;
        height: 1.5px !important;
        background-color: #ffffff !important;
        border-radius: 999px !important;
        box-shadow: 0 0 3px rgba(0,0,0,0.5) !important;
    }
    
    /* Logo: aumentar tamaño en mobile para mejor visibilidad */
    .hero-logo {
        max-width: 260px !important;
    }
    
    /* Espaciador invisible del logo - espaciado uniforme */
    .hero-text-content > div {
        margin-bottom: 1.25rem !important;
    }
    
    /* Contenedor de contenido: reorganizar layout - SUBIR CONTENIDO */
    .hero-content-wrapper {
        padding-top: 10px !important;
        justify-content: flex-start !important;
    }
    
    .hero-content-inner {
        padding: 0 1.5rem !important;
    }
    
    .hero-content-grid {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }
    
    /* Contenido de texto: ajustes para mobile */
    .hero-text-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Configurar hero-content-grid como flex column para integrar fixed-back-button */
    .hero-content-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    /* Párrafo descriptivo: mejor legibilidad en mobile - ESPACIADO UNIFORME */
    .hero-description {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        margin-bottom: 0.8rem !important;
        max-width: 88% !important;
        text-align: left !important;
    }
    
    /* ========================================
       BOTONES CTA - Solo 3 visibles en mobile, 1 fila
       ======================================== */
    
    /* Labels: short en mobile */
    .btn-label-full {
        display: none !important;
    }
    .btn-label-short {
        display: inline !important;
    }
    
    /* Tours visible en mobile */
    .hero-btn-tours {
        display: inline-flex !important;
    }    
    /* Contenedor: 4 botones en UNA fila, alineados a la izquierda */
    .hero-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        max-width: none !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    /* Contenedor de texto del hero: agregar fixed-back-button al flujo */
    .hero-text-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    /* Botones: compactos y chatitos en una fila */
    .hero-buttons a {
        width: fit-content !important;
        width: -moz-fit-content !important;
        flex: 0 0 auto !important;
        font-size: 10.5px !important;
        padding: 4px 12px !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
        line-height: 1 !important;
        min-height: 0 !important;
        height: auto !important;
    }
    
    /* Footer del hero: fila con todos los botones juntos */
    .hero-footer-inner {
        padding: 0 1.5rem !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    
    .hero-body-inner {
        padding: 0 1.5rem !important;
    }
    
    .topbar__inner {
        padding: 0 1.5rem !important;
    }
    
    /* Media query antiguo removido - conflicto con sistema actual de posicionamiento */
}

@media (max-width: 480px) {
    /* Refinamiento para pantallas muy pequeñas */
    
    /* Altura del hero: min-height en vez de height fijo para no cortar contenido */
    .video-background {
        height: auto !important;
        min-height: 70vh !important;
    }
    
    .hero-layout .hero-header {
        padding-top: 1.2rem !important;
        position: relative !important;
        width: 100% !important;
    }
    
    .hero-layout .hero-header-inner {
        padding: 0 1.2rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    .hero-layout .hero-burger {
        width: 1.4rem !important;
        height: 1rem !important;
        gap: 3px !important;
    }
    
    .hero-logo {
        max-width: 220px !important;
    }

    /* Espaciador invisible del logo - reducir aún más en pantallas muy pequeñas */
    .hero-text-content > div {
        margin-bottom: 1rem !important;
    }
    
    .hero-content-wrapper {
        padding-top: 5px !important;
    }
    
    .hero-content-inner {
        padding: 0 1.2rem !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.6rem !important;
        max-width: 90% !important;
    }
    
    /* Botones: aún más compactos en 480px */
    .hero-buttons {
        gap: 6px !important;
        max-width: none !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
    
    .hero-buttons a {
        font-size: 9.5px !important;
        padding: 4px 10px !important;
        border-radius: 18px !important;
        line-height: 1 !important;
        min-height: 0 !important;
        height: auto !important;
    }
    
    /* Asegurar que hero-text-content sea flex column */
    .hero-text-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}


/* ========================================================================
   RESPONSIVE COMPLETO — TABLET (769px–1024px)
   ======================================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --site-pad: 3rem;
    }
    /* Contenedores: reducir padding lateral */
    .ubicacion__container,
    .equipamiento__container,
    .tours-virtuales__container {
        padding: 0 3rem !important;
    }

    /* Hero: ajustar padding inline de los wrappers */
    .hero-header-inner,
    .hero-body-inner,
    .hero-footer-inner,
    .hero-content-inner {
        padding: 0 3rem !important;
    }
    .topbar__inner {
        padding: 0 3rem !important;
    }
    .hero-logo {
        max-width: 300px !important;
    }
    .hero-description {
        font-size: 1.05rem !important;
    }
    .btn-volver-proyectos-unified {
        right: 3rem !important;
        bottom: 2.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Ubicación */
    .ubicacion {
        padding: 5rem 0;
    }
    .ubicacion__text-wrapper {
        margin-bottom: 3rem;
    }

    /* Amenities */
    .amenities .ubicacion__title {
        margin-top: 40px;
    }
    .amenities-grid {
        margin-top: 40px;
    }

    /* Equipamiento */
    .equipamiento__card {
        width: clamp(240px, 28vw, 360px);
        height: clamp(340px, 38vw, 460px);
    }
    .equipamiento__card-title {
        font-size: clamp(1.1rem, 1.4vw, 1.5rem);
    }
    .equipamiento__card-text {
        font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    }

    /* Tours virtuales */
    .tours-virtuales__title {
        font-size: 2.8rem;
    }
}


/* ========================================================================
   RESPONSIVE COMPLETO — MOBILE (≤768px) — Correcciones adicionales
   ======================================================================== */

@media (max-width: 768px) {
    :root {
        --site-pad: 2rem;
    }
    /* Contenedor Ubicación: reducir padding a 2rem */
    .ubicacion__container {
        padding: 0 2rem !important;
    }

    /* Amenities: corregir title y spacing */
    .amenities .ubicacion__title {
        margin-top: 32px !important;
        font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
    }
    .amenities-grid {
        margin-top: 32px !important;
        gap: clamp(12px, 3vw, 20px) !important;
    }
    .amenity-item img {
        width: clamp(52px, 12vw, 80px) !important;
        height: clamp(52px, 12vw, 80px) !important;
    }
    .amenity-item figcaption {
        font-size: clamp(0.7rem, 2.2vw, 0.88rem) !important;
        margin-top: 8px !important;
    }

    /* Equipamiento brochure link */
    .equip-brochure {
        font-size: 1rem !important;
    }
}


/* ========================================================================
   RESPONSIVE COMPLETO — MOBILE PEQUEÑO (≤480px)
   ======================================================================== */

@media (max-width: 480px) {
    :root {
        --site-pad: 1.5rem;
    }
    /* Contenedor Ubicación */
    .ubicacion__container {
        padding: 0 1.5rem !important;
    }

    /* Amenities */
    .amenities .ubicacion__title {
        margin-top: 24px !important;
        font-size: clamp(1.4rem, 5.5vw, 1.8rem) !important;
    }
    .amenities-grid {
        margin-top: 24px !important;
        gap: 10px !important;
    }
    .amenity-item img {
        width: clamp(44px, 14vw, 64px) !important;
        height: clamp(44px, 14vw, 64px) !important;
    }
    .amenity-item figcaption {
        font-size: clamp(0.65rem, 2.5vw, 0.8rem) !important;
        margin-top: 6px !important;
    }

    /* Equipamiento */
    .equipamiento__card {
        width: 82vw !important;
        height: 360px !important;
    }
    .equipamiento__card-content {
        padding: 1.5rem !important;
    }

    /* Equipamiento brochure link */
    .equip-brochure {
        font-size: 0.95rem !important;
    }
}


/* ========================================================================
   RESPONSIVE COMPLETO — PANTALLAS MUY PEQUEÑAS (≤360px)
   ======================================================================== */

@media (max-width: 360px) {
    :root {
        --site-pad: 1.2rem;
    }
    .hero-logo {
        max-width: 180px !important;
    }
    .hero-description {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        max-width: 95% !important;
    }
    .hero-buttons a {
        font-size: 0.65rem !important;
        padding: 0.45em 0.7em !important;
    }
    .btn-volver-proyectos-unified {
        font-size: 0.65rem !important;
        padding: 0.45em 0.7em !important;
    }
    .ubicacion__container {
        padding: 0 1.2rem !important;
    }
    .equipamiento__container {
        padding: 0 1.2rem !important;
    }
    .ubicacion__title {
        font-size: 1.6rem !important;
        letter-spacing: 0.08rem !important;
    }
    .amenities .ubicacion__title {
        font-size: 1.3rem !important;
    }
    .amenities-grid {
        gap: 8px !important;
    }
    .amenity-item img {
        width: 40px !important;
        height: 40px !important;
    }
    .amenity-item figcaption {
        font-size: 0.62rem !important;
    }
    .equipamiento__title {
        font-size: 1.6rem !important;
        letter-spacing: 0.08rem !important;
    }
    .equipamiento__card {
        width: 85vw !important;
        height: 320px !important;
    }
    .tours-virtuales__title {
        font-size: 1.6rem !important;
    }
    .tours-virtuales__container {
        padding: 0 1.2rem !important;
    }
    .site-footer {
        padding: 1.5rem 1rem !important;
    }
}


/* ========================================================================
   RESPONSIVE — DESKTOP GRANDE (≥1440px)
   ======================================================================== */

@media (min-width: 1440px) {
    /* Amenities: iconos más generosos */
    .amenity-item img {
        width: clamp(90px, 6vw, 120px);
        height: clamp(90px, 6vw, 120px);
    }
    .amenity-item figcaption {
        font-size: clamp(0.95rem, 1vw, 1.15rem);
    }
}


/* ========================================================================
   RESPONSIVE — 2K / QHD (≥1920px)
   ======================================================================== */

@media (min-width: 1920px) {
    .ubicacion__title {
        font-size: 3.2rem;
    }
    .equipamiento__title {
        font-size: 3.2rem;
    }
    .equipamiento__card {
        width: clamp(360px, 22vw, 480px);
        height: clamp(460px, 28vw, 600px);
    }
    .equipamiento__card-title {
        font-size: 1.8rem;
    }
    .amenity-item img {
        width: 120px;
        height: 120px;
    }
    .amenity-item figcaption {
        font-size: 1.15rem;
    }
    .tours-virtuales__title {
        font-size: 4rem;
    }
}


/* ========================================================================
   RESPONSIVE — 4K / ULTRAWIDE (≥2560px)
   ======================================================================== */

@media (min-width: 2560px) {
    /* Hero: escalar contenido */
    .hero-logo {
        max-width: 480px !important;
    }
    .hero-description {
        font-size: 1.35rem !important;
        max-width: 700px !important;
    }
    .hero-buttons a {
        font-size: 1.05rem !important;
        padding: 1em 2.5em !important;
    }
    .btn-volver-proyectos-unified {
        font-size: 1.05rem !important;
        padding: 1em 2.5em !important;
    }

    /* Ubicación */
    .ubicacion__title {
        font-size: 3.5rem;
    }
    .ubicacion__description {
        font-size: 2.2rem;
    }
    .ubicacion__text-wrapper {
        margin-bottom: 5rem;
    }
    .map-hover {
        min-height: 700px;
    }

    /* Amenities */
    .amenities .ubicacion__title {
        margin-top: 64px;
        font-size: 3.5rem;
    }
    .amenities-grid {
        margin-top: 64px;
        gap: 48px;
    }
    .amenity-item img {
        width: 140px;
        height: 140px;
    }
    .amenity-item figcaption {
        font-size: 1.3rem;
        margin-top: 16px;
    }

    /* Equipamiento */
    .equipamiento__title {
        font-size: 3.5rem;
        margin-bottom: 64px;
    }
    .equipamiento__card {
        width: clamp(420px, 20vw, 560px);
        height: clamp(520px, 26vw, 700px);
    }
    .equipamiento__card-title {
        font-size: 2rem;
    }
    .equipamiento__card-text {
        font-size: 1.1rem;
    }
    .equip-brochure {
        font-size: 1.35rem;
    }

    /* Tours virtuales */
    .tours-virtuales__title {
        font-size: 4.5rem;
        margin-bottom: 5rem;
    }
    .tours-virtuales__item-title {
        font-size: 2rem;
    }

    /* Footer */
    .site-footer__logo img {
        width: 340px;
    }
    .site-footer__location,
    .site-footer__contact,
    .site-footer__copyright {
        font-size: 1.1rem;
    }
}


/* ========================================================================
   RESPONSIVE — SUPER ULTRAWIDE / 5K+ (≥3440px)
   ======================================================================== */

@media (min-width: 3440px) {
    .hero-logo {
        max-width: 560px !important;
    }
    .hero-description {
        font-size: 1.5rem !important;
    }
    .hero-buttons a {
        font-size: 1.15rem !important;
        padding: 1.1em 2.8em !important;
    }
    .ubicacion__title {
        font-size: 4rem;
    }
    .equipamiento__title {
        font-size: 4rem;
    }
    .equipamiento__card {
        width: clamp(500px, 18vw, 640px);
        height: clamp(600px, 22vw, 800px);
    }
}
