/* =========================================
   1. VARIABLES & CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* Paleta de Colores "Aman Residences" */
    --aman-black: #1a1a1a;
    --aman-stone: #2c2c2c;
    --aman-beige: #e6e4dc; /* Beige cálido */
    --aman-gold: #bfa47d;  /* Dorado mate */
    --aman-white: #f9f9f9;
    
    /* Tipografías */
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Lato', sans-serif;
}

a{
    color: var(--aman-beige);
}
body {
    font-family: var(--font-sans);
    color: var(--aman-stone);
    background-color: var(--aman-white);
    overflow-x: hidden !important; /* Evita scroll horizontal accidental */
    line-height: 1.8;
}
section, 
header, 
.page-hero, 
.bg-beige, 
.master-plan-container {
    overflow-x: hidden;
    width: 100%;
    position: relative; /* Necesario para que el overflow funcione bien */
}

/* =========================================
   2. TIPOGRAFÍA
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 1px;
}

p {
    font-weight: 300;
    font-size: 1.1rem;
    color: #555;
}

/* Utilidades de Texto */
.ls-2 { letter-spacing: 2px; }
.text-gold { color: var(--aman-gold) !important; }

/* =========================================
   3. COMPONENTES UI (Botones, Navbar, Footer)
   ========================================= */

/* --- Navbar --- */
.navbar {
    transition: all 0.5s ease;
    padding: 1.5rem 0;
    background: transparent;
    backdrop-filter: blur(10px)!important;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95); /* Fondo oscuro al bajar */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: var(--font-serif);
    color: white !important;
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 20px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--aman-gold) !important;
}

/* --- Botones --- */
.btn-luxury-outline {
    border: 1px solid var(--aman-gold);
    color: var(--aman-gold);
    padding: 10px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.4s ease;
    border-radius: 0; /* Bordes rectos minimalistas */
    text-decoration: none;
    background: transparent;
}

.btn-luxury-outline:hover {
    background: var(--aman-gold);
    color: var(--aman-black);
}

/* --- Footer --- */
footer {
    background-color: var(--aman-black);
    color: #888;
    padding: 80px 0 30px 0;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

footer ul li a:hover {
    color: var(--aman-gold);
}

/* --- Utilidades de Sección --- */
.section-padding { padding: 120px 0; }
.bg-beige { background-color: var(--aman-beige); }

/* =========================================
   4. PÁGINA: HOME (Inicio)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4); 
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.concept-text {
    font-size: 2rem;
    line-height: 1.6;
    color: var(--aman-black);
    max-width: 900px;
    margin: 0 auto;
}

/* Swiper Slider Customization */
.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-slide {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.swiper-slide:hover .slide-img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute; bottom: 0; left: 0;
    width: 100%;
    padding: 100px 40px 40px 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    transform: translateY(500px);
    opacity: 0;
    transition: all 0.5s ease;
    backdrop-filter: blur(15px);
}

.swiper-slide:hover .slide-content {
    transform: translateY(0); opacity: 1;
}

.image-overlap-wrapper {
    position: relative;
    height: 100%; min-height: 600px;
}

.img-main {
    width: 85%; height: 500px;
    object-fit: cover;
    position: absolute; top: 0; left: 0;
}

.img-secondary {
    width: 50%; height: 350px;
    object-fit: cover;
    position: absolute; bottom: 50px; right: 0;
    border: 10px solid #f0ede6; /* Borde del color de fondo para corte */
    z-index: 2;
}

/* =========================================
   5. PÁGINA: EL SANTUARIO
   ========================================= */
.page-hero {
    height: 40vh;
    background-image: url('img/sierra.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax */
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-text {
    z-index: 2; text-align: center; color: white;
}

.quote-box {
    border-left: 3px solid var(--aman-gold);
    padding-left: 30px; margin: 40px 0;
    font-style: italic; font-size: 1.2rem;
    color: var(--aman-black);
}

/* Zig-Zag Amenities */
.amenity-img-wrapper {
    overflow: hidden;
    height: 500px; width: 100%;
}

.amenity-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    filter: contrast(1.1) brightness(0.9);
}

.amenity-row:hover .amenity-img { transform: scale(1.05); }

.amenity-text-col {
    padding: 50px;
    display: flex; flex-direction: column; justify-content: center;
}

/* Master Plan */
.master-plan-container {
    position: relative;
    background-color: var(--aman-stone);
    color: white;
    padding: 80px 0;
}

.map-wrapper {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
}

/* =========================================
   6. PÁGINA: RESIDENCIAS
   ========================================= */
.residences-header {
    padding: 180px 0 100px 0;
    background-color: var(--aman-stone);
    text-align: center;
}

/* Showcase de Modelos */
.model-section {
    padding: 0; overflow: hidden;
}

.model-img-col {
    position: relative;
    min-height: 600px; overflow: hidden;
}

.model-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.model-section:hover .model-img { transform: scale(1.03); }

.model-info-col {
    padding: 80px 60px;
    display: flex; flex-direction: column; justify-content: center;
    background-color: #fff;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.spec-item strong {
    display: block; font-family: var(--font-serif);
    font-size: 1.1rem; color: var(--aman-black);
}

.spec-item span {
    font-size: 0.9rem; color: #888;
    text-transform: uppercase; letter-spacing: 1px;
}

.price-tag {
    font-family: var(--font-serif);
    font-size: 1.5rem; color: var(--aman-gold);
    margin-bottom: 20px; display: block;
}

/* Materiales & Acabados */
.materials-section {
    padding: 100px 0;
    background-color: var(--aman-stone);
    color: white;
}

.material-card {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px; height: 100%;
    transition: 0.3s;
}

.material-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--aman-gold);
}

/* Modal Personalizado */
.modal-content {
    border-radius: 0; border: none;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.modal-header {
    background-color: var(--aman-black);
    color: white;
    border-bottom: 3px solid var(--aman-gold);
    border-radius: 0;
}

.modal-title {
    font-family: var(--font-serif); letter-spacing: 1px;
}

.form-control {
    border-radius: 0; padding: 12px;
    background-color: #f9f9f9; border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: none; border-color: var(--aman-gold);
}

.btn-submit-modal {
    background-color: var(--aman-black);
    color: var(--aman-gold);
    border: 1px solid var(--aman-black);
    padding: 12px; width: 100%;
    text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s;
}

.btn-submit-modal:hover {
    background-color: var(--aman-gold);
    color: var(--aman-black);
}

/* =========================================
   7. PÁGINA: DESTINO (Ubicación)
   ========================================= */
.dest-hero {
    height: 60vh;
    background-image: url('img/destino.webp');
    background-size: cover; background-position: center;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.dest-hero::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.7);
}

/* Distance Grid */
.distance-section {
    background-color: var(--aman-black);
    color: white;
    padding: 80px 0;
}

.distance-card {
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 30px;
    transition: 0.3s;
}

.distance-card:hover {
    border-left-color: var(--aman-gold);
    padding-left: 40px;
}

.dist-number {
    font-family: var(--font-serif);
    font-size: 2.5rem; color: var(--aman-gold);
}

.dist-label {
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.8rem; opacity: 0.7;
}

/* Pueblo Mágico Overlap */
.magic-town-section { padding: 100px 0; }

.img-overlap {
    position: relative; margin-top: 50px;
}

.img-back {
    width: 80%; margin-left: auto; display: block;
    filter: grayscale(30%);
}

.img-front {
    position: absolute; bottom: -50px; left: 0; width: 50%;
    border: 10px solid var(--aman-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mapa Estilizado */
.map-container {
    width: 100%; height: 500px;
    /* Filtro para invertir colores y hacerlo oscuro/elegante */
    filter: grayscale(100%) invert(92%) contrast(83%);
    transition: filter 0.5s;
}

.map-container:hover {
    filter: grayscale(0%);
}

/* Estilo base del Logo SVG */
.logo-svg {
    height: 45px; /* Altura elegante */
    width: auto;
    transition: all 0.5s ease; /* Para que el cambio de color sea suave */
    fill: currentColor; /* ESTO ES LA CLAVE: Toma el color del texto */
}

/* 1. Estado Inicial (Transparente sobre Video) */
.navbar {
    color: white !important; /* El logo será blanco */
}

/* 2. Estado Scrolled (Fondo Oscuro) */
.navbar.scrolled {
    color: var(--aman-gold) !important; /* El logo se vuelve dorado al bajar */
}
/* O si prefieres blanco en el scroll, cambialo a var(--aman-white) */

/* --- NUEVO: GALERÍA DENTRO DE MODELOS --- */
.model-gallery-container {
    width: 100%;
    height: 100%;
    min-height: 600px; /* Asegura altura en desktop */
    position: relative;
}

.model-gallery-slider {
    width: 100%;
    height: 100%;
    background-color: white;
}

/* Flechas minimalistas blancas */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    transform: scale(0.7); /* Más pequeñas y elegantes */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Botón de Disponibilidad (Estilo discreto pero visible) */
.btn-mapa {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--aman-stone); /* Gris oscuro */
    border-bottom: 1px solid var(--aman-gold); /* Subrayado dorado */
    text-decoration: none;
    padding-bottom: 3px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-mapa:hover {
    color: var(--aman-gold);
    padding-left: 5px; /* Pequeño movimiento al hover */
}

/* Corrección para eliminar espacios blancos en el slider */
.model-gallery-slider .swiper-slide {
    height: 100% !important; /* Fuerza a que el slide ocupe toda la altura de la columna */
    min-height: 100%;

}

.model-img-col {
    display: flex; /* Esto asegura que el swiper hijo se estire */
    flex-direction: column;
}

.model-img {
    height: 100% !important; /* La imagen se estira para cubrir todo */
    object-fit: cover; /* Evita que la imagen se deforme/aplaste */
}

@media only screen and (max-width: 600px) {
    .hero-title{
        font-size: 3rem;
    }
    p{
        font-size: 0.9rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .concept-text {
        font-size: 1.7rem;
        line-height: 1.3;
    }
    .logo-svg {
        height: 33px;
    }
    .section-padding{
        padding: 50px 0px;
    }
}