/* =========================================================
   CASTELLERS RESIDENCIAL � Hoja de Estilos Principal
   ========================================================= */


/* === FUENTES LOCALES === */
@font-face {
    font-family: 'Zapfino';
    src: url('../assets/fonts/Zapfino.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../assets/fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === VARIABLES DE COLOR === */
:root {
    --rojo:        #e7343f;
    --rojo-oscuro: #C4101F;
    --navy:        #013279;
    --navy-claro:  #1d71b8;
    --dorado:      #fbba00;
    --dorado-claro:#FFC84D;
    --teal:        #00ADAD;
    --verde:       #5CB800;
    --crema:       #f6efd7;
    --crema-claro: #FAF7F2;
    --blanco:      #FFFFFF;
    --oscuro:      #1C1C1C;
    --gris:        #6C757D;
    --gris-claro:  #F2F2F0;
    --borde:       rgba(0,0,0,.08);

    --fuente-titulo: 'Outfit', 'Montserrat', sans-serif;
    --fuente-cuerpo: 'Montserrat', 'Outfit', sans-serif;

    --radio:    8px;
    --radio-lg: 16px;
    --sombra:   0 4px 24px rgba(0,0,0,.10);
    --sombra-lg:0 8px 40px rgba(0,0,0,.14);

    --transicion: all .3s ease;
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--fuente-cuerpo);
    color: var(--oscuro);
    background-color: var(--blanco);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--fuente-titulo); }

h1, h2 { font-family: 'Zapfino', var(--fuente-titulo), serif !important; }

a { text-decoration: none; transition: var(--transicion); }

img { max-width: 100%; height: auto; }

section { position: relative; overflow: hidden; }

/* Utilidades */
.text-rojo   { color: var(--rojo)   !important; }
.text-navy   { color: var(--navy)   !important; }
.text-dorado { color: var(--dorado) !important; }
.text-teal   { color: var(--teal)   !important; }
.bg-crema    { background-color: var(--crema) !important; }
.bg-navy     { background-color: var(--navy)  !important; }
.bg-rojo     { background-color: var(--rojo)  !important; }
.bg-dorado   { background-color: var(--dorado)!important; }

/* L�nea decorativa de secci�n */
.seccion-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.seccion-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--rojo);
    border-radius: 2px;
}

/* === NAVBAR === */
#navbar {
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
    padding-top: .6rem;
    padding-bottom: .6rem;
    background: transparent;
    z-index: 1030;
}

#navbar.scrolled {
    background: var(--blanco) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.09);
    padding-top: .35rem;
    padding-bottom: .35rem;
}

.navbar-brand img {
    height: 150px;
    width: auto;
    transition: opacity .35s ease, height .35s ease;
}

/* Logo blanco visible por defecto (sobre el video) */
.navbar-brand .logo-blanco { display: block; }
.navbar-brand .logo-negro  { display: none;  }

/* Al hacer scroll: logo negro */
#navbar.scrolled .navbar-brand .logo-blanco { display: none;  }
#navbar.scrolled .navbar-brand .logo-negro  { display: block; }

#navbar.scrolled .navbar-brand img { height: 72px; }

.navbar-nav .nav-link {
    font-family: var(--fuente-titulo);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blanco);
    padding: .4rem .8rem;
    position: relative;
}

#navbar.scrolled .navbar-nav .nav-link {
    color: var(--oscuro);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: .8rem;
    width: 0; height: 2px;
    background: var(--navy);
    transition: width .3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--blanco); }

#navbar.scrolled .navbar-nav .nav-link:hover,
#navbar.scrolled .navbar-nav .nav-link.active { color: var(--oscuro); }

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: calc(100% - 1.6rem); }

.btn-agenda {
    background: var(--navy);
    color: var(--blanco) !important;
    font-family: var(--fuente-titulo);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .55rem 1.4rem;
    border-radius: 50px;
    border: 2px solid var(--navy);
    transition: var(--transicion);
}
.btn-agenda:hover {
    background: transparent;
    color: var(--navy) !important;
}

/* Toggler personalizado */
.navbar-toggler { border: none; padding: .25rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === HERO (video a pantalla completa) === */
#inicio {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Video de fondo */
#hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Overlay oscuro para dar profundidad al video */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 100%);
    z-index: 1;
}

/* === HERO TEXTO (sección bajo el video) === */
#hero-texto {
    background-color: var(--crema-claro);
    padding: 80px 0 70px;
}

.hero-titulo {
    font-family: var(--fuente-titulo);
    font-size: clamp(2.6rem, 5.5vw, 3rem);
    font-weight: 800;
    color: var(--navy);
    margin-top: 4rem;
    margin-bottom: 1.25rem;
    line-height: 4.5rem;
}

.hero-titulo span { display: inline; }
.hero-titulo .hero-titulo-linea2 { display: block; }

.hero-subtitulo {
    font-size: clamp(.9rem, 1.4vw, 1.05rem);
    color: var(--oscuro);
    line-height: 1.7;
    /*max-width: 800px;*/
    margin-bottom: 2rem;
}

.btn-primario {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--navy);
    color: var(--blanco);
    font-family: var(--fuente-titulo);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .05em;
    padding: .75rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--navy);
    transition: var(--transicion);
    text-transform: uppercase;
}
.btn-primario:hover {
    background: transparent;
    color: var(--navy);
}
.btn-primario i { font-size: 1rem; transition: transform .3s ease; }
.btn-primario:hover i { transform: translateX(4px); }

.btn-secundario {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--navy);
    font-family: var(--fuente-titulo);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .05em;
    padding: .75rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--navy);
    transition: var(--transicion);
    text-transform: uppercase;
}
.btn-secundario:hover {
    background: var(--navy);
    color: var(--blanco);
}
.btn-secundario i { transition: transform .3s ease; }
.btn-secundario:hover i { transform: translateX(4px); }

.btn-blanco {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--blanco);
    font-family: var(--fuente-titulo);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .05em;
    padding: .75rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--blanco);
    transition: var(--transicion);
    text-transform: uppercase;
}
.btn-blanco:hover {
    background: var(--blanco);
    color: var(--rojo);
}
.btn-blanco i { transition: transform .3s ease; }
.btn-blanco:hover i { transform: translateX(4px); }


/* === ESTAD�STICAS === */
#stats {
    background: var(--navy);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

/* Tarjeta con borde redondeado para los stats */
.stats-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 24px;
    padding: 2.5rem 4rem;
    min-width: 280px;
    text-align: center;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,.05);
}

.stats-numero {
    font-family: var(--fuente-titulo);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 1;
    color: var(--blanco);
    display: block;
}

.stats-texto {
    font-family: var(--fuente-titulo);
    font-size: clamp(.75rem, 1.4vw, .95rem);
    font-weight: 700;
    letter-spacing: .2em;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    margin-top: .75rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.stats-separador {
    width: 2px;
    height: 80px;
    background: rgba(255,255,255,.15);
    margin: 0 auto;
}

/* === DIVISORES ENTRE SECCIONES === */
.section-divider {
    height: 30px;
    display: block;
    position: relative;
}

/* Crema → Navy */
.divider-cream-navy {
    background: linear-gradient(to bottom, var(--crema-claro) 0%, var(--navy) 100%);
}

/* Navy → Crema */
.divider-navy-cream {
    background: linear-gradient(to bottom, var(--navy) 0%, var(--crema-claro) 100%);
}

/* === UBICACI�N === */
#ubicacion {
    background: var(--navy);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}


.ubicacion-titulo {
    font-family: var(--fuente-titulo);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--blanco);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.ubicacion-texto {
    color: rgba(255,255,255,.85);
    font-size: .97rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.ubicacion-mapa {
    border-radius: var(--radio-lg);
    overflow: hidden;
    /*box-shadow: var(--sombra-lg);*/
}

.ubicacion-mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* === MASTER PLAN === */
#master-plan {
    background: var(--crema-claro);
    padding: 90px 0;
}

.masterplan-img-wrap {
    position: relative;
    border-radius: var(--radio-lg);
    overflow: hidden;
    box-shadow: var(--sombra-lg);
}

.masterplan-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.masterplan-placeholder {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-claro) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    text-align: center;
    padding: 2rem;
}

.masterplan-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .5;
}

.masterplan-card {
    background: var(--blanco);
    border-radius: var(--radio-lg);
    padding: 2.5rem;
    box-shadow: var(--sombra);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.masterplan-card-titulo {
    font-family: var(--fuente-titulo);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.masterplan-card-texto {
    font-size: .95rem;
    color: var(--gris);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    flex: 1;
}

/* === POR QU� INVERTIR === */
#por-que {
    background: var(--blanco);
    padding: 90px 0;
}

.seccion-titulo {
    font-family: var(--fuente-titulo);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: .75rem;
}

.seccion-subtitulo {
    font-size: .97rem;
    color: var(--gris);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.ventaja-card {
    background: var(--crema-claro);
    border-radius: var(--radio-lg);
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: var(--transicion);
    border: 1px solid transparent;
    height: 100%;
}

.ventaja-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra);
    border-color: var(--rojo);
}

.ventaja-icono {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
}

.ventaja-titulo {
    font-family: var(--fuente-titulo);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .6rem;
}

.ventaja-texto {
    font-size: 1rem;
    color: var(--gris);
    line-height: 1.65;
}

/* === NUESTROS DESARROLLOS === */
#nosotros {
    background: var(--gris-claro);
    padding: 90px 0;
}

.desarrollos-titulo {
    font-family: var(--fuente-titulo);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.desarrollos-subtitulo {
    font-size: 1rem;
    color: var(--gris);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.desarrollos-hr {
    border: none;
    border-top: 2px solid var(--borde);
    margin: 2.5rem 0;
}

/* ---- CARRUSEL 1: Solo logotipos ---- */
.swiper-logos {
    padding: .5rem .5rem 1.5rem !important;
}

.logo-solo-slide {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border: 1px solid var(--borde);
    transition: var(--transicion);
}

.logo-solo-slide:hover {
    box-shadow: var(--sombra);
    transform: translateY(-4px);
    border-color: var(--rojo);
}

.logo-solo-slide img {
    max-height: 65px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(25%);
    transition: filter .3s ease;
}

.logo-solo-slide:hover img { filter: grayscale(0%); }

/* ---- CARRUSEL 2: Galeria de imagenes ---- */
.swiper-galeria {
    padding: .5rem .5rem 3rem !important;
}

.swiper-galeria .swiper-slide {
    height: auto;
}

.galeria-slide {
    border-radius: var(--radio-lg);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
    line-height: 0;
}

.galeria-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.galeria-slide:hover img {
    transform: scale(1.04);
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--blanco) !important;
    background: var(--rojo);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: var(--sombra);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: 700;
}

.swiper-pagination-bullet-active { background: var(--rojo) !important; }
.swiper-pagination-bullet { background: var(--navy); opacity: .3; }
.swiper-pagination-bullet-active { opacity: 1; }

/* === AGENDA TU VISITA (CONTACTO) === */
#contacto {
    background: var(--crema-claro);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}


.contacto-titulo {
    font-family: var(--fuente-titulo);
    font-size: clamp(1.8rem, 3.5vw, 2.0rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contacto-texto {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.form-card {
    background: var(--blanco);
    border-radius: var(--radio-lg);
    padding: 2.5rem;
    box-shadow: var(--sombra-lg);
}

.form-card .form-label {
    font-family: var(--fuente-titulo);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: .4rem;
}

.form-card .form-control {
    border: 1.5px solid #E0DDD8;
    border-radius: var(--radio);
    padding: .7rem 1rem;
    font-family: var(--fuente-cuerpo);
    font-size: .9rem;
    color: var(--oscuro);
    background: var(--crema-claro);
    transition: var(--transicion);
}

.form-card .form-control:focus {
    border-color: var(--rojo);
    box-shadow: 0 0 0 3px rgba(232,25,44,.12);
    background: var(--blanco);
}

.form-card .form-control::placeholder { color: #B0AAA3; }

.btn-enviar {
    background: var(--navy);
    color: var(--blanco);
    font-family: var(--fuente-titulo);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .8rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--navy);
    width: 100%;
    transition: var(--transicion);
    cursor: pointer;
}
.btn-enviar:hover {
    background: transparent;
    color: var(--navy);
}

/* Alert de �xito del formulario */
.alert-exito {
    display: none;
    background: #d1fae5;
    color: #065f46;
    border-radius: var(--radio);
    padding: 1rem 1.2rem;
    font-size: .9rem;
    margin-top: 1rem;
    border: 1px solid #a7f3d0;
}

/* === FOOTER === */
#footer {
    background: var(--oscuro);
    padding: 60px 0 30px;
    color: rgba(255,255,255,.75);
}

.footer-logo img {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--fuente-titulo);
    font-size: 1rem;
    color: rgba(255,255,255,.7);
    font-style: italic;
    margin-bottom: .5rem;
}

.footer-desc {
    font-size: 1rem;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    transition: var(--transicion);
    margin-right: .4rem;
}
.footer-social a:hover {
    background: var(--rojo);
    border-color: var(--rojo);
    color: var(--blanco);
}

.footer-titulo {
    font-family: var(--fuente-titulo);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gris-claro);
    margin-bottom: 1.2rem;
}

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a {
    font-size: 1rem;
    color: rgba(255,255,255,.65);
    transition: var(--transicion);
}
.footer-nav a:hover { color: var(--blanco); padding-left: 4px; }

.footer-info {
    font-size: 1rem;
    color: rgba(255,255,255,.65);
    line-height: 1.75;
}

.footer-info i {
    color: var(--blanco);
    margin-right: .5rem;
    font-size: .9rem;
}

.footer-info a {
    color: rgba(255,255,255,.65);
    transition: var(--transicion);
}
.footer-info a:hover { color: var(--blanco); }

.footer-hr {
    border-color: rgba(255,255,255,.1);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    font-size: .78rem;
    color: rgba(255,255,255,.35);
    text-align: center;
}

/* === BOT�N FLOTANTE WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    transition: var(--transicion);
    animation: pulso 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5b;
    box-shadow: 0 6px 28px rgba(37,211,102,.6);
}

.whatsapp-float i {
    color: var(--blanco);
    font-size: 1.65rem;
    line-height: 1;
}

@keyframes pulso {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
    70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Tooltip WhatsApp */
.whatsapp-float .tooltip-wa {
    position: absolute;
    right: 66px;
    white-space: nowrap;
    background: var(--oscuro);
    color: var(--blanco);
    font-size: .75rem;
    padding: .35rem .7rem;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.whatsapp-float:hover .tooltip-wa { opacity: 1; }

/* === SCROLL UP BTN === */
.scroll-top {
    position: fixed;
    bottom: 96px;
    right: 30px;
    z-index: 9998;
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--blanco);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transicion);
    box-shadow: var(--sombra);
    font-size: .9rem;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--rojo); }

/* === SHAPES DECORATIVAS === */

/* === RESPONSIVE === */

/* Menú móvil: fondo visible al expandir */
@media (max-width: 991.98px) {
    #navbar .navbar-collapse {
        background: rgba(10,10,10,.92);
        border-radius: 0 0 10px 10px;
        padding: .5rem 1.2rem 1rem;
        margin-top: .4rem;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    #navbar.scrolled .navbar-collapse {
        background: var(--blanco);
        box-shadow: 0 6px 20px rgba(0,0,0,.1);
    }
    #navbar.scrolled .navbar-collapse .nav-link {
        color: var(--oscuro);
    }
    #navbar.scrolled .navbar-collapse .nav-link:hover,
    #navbar.scrolled .navbar-collapse .nav-link.active {
        color: var(--rojo);
    }
    .btn-agenda { margin-bottom: .5rem; }
}

/* Video hero en móvil: mostrar completo sin recortar */
@media (max-width: 767.98px) {
    #inicio {
        height: auto;
        background: #000;
    }
    #hero-video {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .hero-overlay {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand img { height: 72px; }
    #navbar.scrolled .navbar-brand img { height: 52px; }
    #hero-texto { padding: 60px 0 50px; text-align: center; }
    .hero-subtitulo { 
        max-width: 100%; 
        text-align: left;
    }
    .navbar-nav { padding: 1rem 0; }
    .navbar-nav .nav-link { padding: .5rem 1rem; }
    .navbar-nav .nav-link::after { left: 1rem; }
    .btn-agenda { margin-top: .5rem; }
    .ubicacion-mapa { height: 280px; margin-top: 2rem; }
    .masterplan-img-wrap img,
    .masterplan-placeholder { height: 320px; }
    .masterplan-card { margin-top: 1.5rem; padding: 2rem 1.5rem; }
    #stats .stats-separador { display: none; }
}

@media (max-width: 767.98px) {
    .navbar-brand img { height: 60px; }
    #navbar.scrolled .navbar-brand img { height: 44px; }
    .hero-titulo { font-size: 2rem; line-height: 4.5rem;}
    #stats { padding: 50px 0; }
    .stats-numero { font-size: 3.5rem; }
    .ventaja-card { margin-bottom: .5rem; }
    .form-card { padding: 1.75rem 1.25rem; }
    .contacto-titulo { font-size: 1.7rem; }
    .ubicacion-titulo { font-size: 1.7rem; }
    .footer-logo img { height: 150px; }
    #footer { padding: 40px 0 20px; }
    .whatsapp-float { bottom: 20px; right: 20px; }
    .scroll-top { bottom: 84px; right: 22px; }
}

@media (max-width: 575.98px) {
    .hero-titulo { 
        font-size: 1.5rem; 
        text-align: left;
        line-height: 4.5rem;
        margin-top: 1rem;
        margin-bottom: 0rem;
    }
    .masterplan-placeholder { height: 240px; }
    .masterplan-card-titulo {margin-top: 2.5rem; margin-bottom: 0rem;}
    .contacto-titulo{ margin-bottom:0rem; }
}
