/* VARIABLES */
:root {
    --primary: #2d4635;
    --accent: #a38b5d;
    --bg-cream: #faf8f5;
    --text: #2b2b2b;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* CAPA SUPERPUESTA - EFECTO CINE */
.video-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(45, 70, 53, 0.98); /* Verde bosque 98% opaco */
    backdrop-filter: blur(15px); /* Desenfoque elegante de fondo */
    z-index: 99999; 
    align-items: center;
    justify-content: center;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    animation: modalAppear 0.4s ease-out;
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: -60px; right: 0;
    color: var(--accent); /* Tu color dorado/beige */
    font-size: 50px;
    cursor: pointer;
}

.video-responsive-box {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    background: #000;
}

.video-responsive-box video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 50px; background: rgba(255, 255, 255, 0.98);
    z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.logo { font-weight: 700; letter-spacing: 3px; color: var(--primary); font-size: 1.2rem; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.nav-cta { color: var(--accent) !important; border-bottom: 2px solid var(--accent); }

/* HERO (CORREGIDO) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary); 
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(45,70,53,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    margin-top: 50px; /* Bajar contenido general para no pegar al nav */
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Espacio uniforme entre elementos */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.1;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    max-width: 800px;
    margin: 0;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px; /* CAMBIO: Más espacio para que no tapen el texto superior */
}

html {
    scroll-behavior: smooth;
}

.eyebrow { text-transform: uppercase; letter-spacing: 5px; font-size: 0.8rem; color: #ffffff; }
.serif-italic { font-style: italic; font-weight: 400; }

/* SECCIONES GENERALES */
.section-main-title { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.section-main-title.centered { text-align: center; }
.section-subtitle.centered { text-align: center; color: var(--accent); margin-bottom: 60px; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.img-frame { box-shadow: 15px 15px 0 var(--accent); overflow: hidden; }
.img-fluid { width: 100%; display: block; }
.stats-grid { display: flex; gap: 40px; margin-top: 40px; border-top: 1px solid #ddd; padding-top: 30px; }
.stat-item strong { display: block; font-size: 2rem; color: var(--accent); }

/* VISIONES Y ALTERNATIVAS (CORREGIDO) */
.section-proposals { background-color: #f2ede4; }
.proposals-featured { display: flex; flex-direction: column; gap: 80px; }
.proposal-large { display: grid; grid-template-columns: 1fr 1fr; background: white; box-shadow: 0 30px 60px rgba(0,0,0,0.03); }
.proposal-large.reverse { direction: rtl; }
.proposal-large.reverse .proposal-content { direction: ltr; }
.proposal-content { padding: 60px; }
.proposal-tag { color: var(--accent); text-transform: uppercase; font-weight: 700; font-size: 0.8rem; margin-bottom: 20px; display: block; }
.proposal-image-box { height: 500px; background-size: cover; background-position: center; }

.other-options {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid rgba(163, 139, 93, 0.2);
    text-align: center; /* Centrado del div de alternativas */
    width: 100%;
}

.other-options p {
    font-size: 1.1rem;
    color: #666;
}

.other-options span {
    color: var(--primary);
    font-weight: 600;
}


/* INFRAESTRUCTURA PREMIUM */
.card-grid.technical { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.tech-card { background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); overflow: hidden; }
.tech-card:hover { transform: translateY(-10px); }
.card-img-small { height: 250px; background-size: cover; background-position: center; }
.tech-header { background-color: #f9f6f0; padding: 20px 30px; margin: -30px -30px 25px -30px; border-left: 4px solid var(--accent); }
.tech-header h3 { font-size: 1.4rem; color: var(--primary); margin: 0; }
.tech-card .card-content { padding: 30px; }
.cta-container { display: flex; justify-content: center; margin-top: 60px; }

/* BOTONES */
.btn-primary { background: var(--accent); color: white; padding: 18px 40px; text-decoration: none; font-weight: 700; transition: var(--transition); text-transform: uppercase; display: inline-block; border: none; }
.btn-secondary { border: 2px solid white; color: white; padding: 18px 40px; text-decoration: none; font-weight: 700; transition: var(--transition); text-transform: uppercase; display: inline-block; }
.btn-primary:hover { background: var(--primary); transform: translateY(-3px); }

/* 11. SECCIÓN UBICACIÓN */
.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* El mapa tiene un poco más de peso visual */
    gap: 50px;
    align-items: center;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.custom-list {
    list-style-position: inside; /* Esto hace que el punto NO sobresalga */
    list-style-type: none;       /* Quitamos el punto negro feo de siempre */
    margin-top: 25px;
}

.custom-list li {
    position: relative;
    padding-left: 25px;         /* Espacio para nuestro nuevo punto */
    margin-bottom: 12px;
    color: #555;                /* Color del texto */
}

/* Este es el "truco" para el punto beige/dorado */
.custom-list li::before {
    content: "●";               /* Ponemos un círculo */
    position: absolute;
    left: 0;                    /* Lo pegamos a la izquierda del texto */
    color: var(--accent);       /* Usamos tu color beige/dorado */
    font-size: 0.8rem;

}
.location-map {
    line-height: 0; /* Elimina espacio extra debajo del iframe */
    filter: grayscale(0.3) contrast(1.1); /* Toque estético para que no desentone con el verde */
    transition: var(--transition);
}

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

.location-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    border-left: 3px solid var(--accent);
    padding-left: 25px;
}

.info-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* --- AJUSTES RESPONSIVE TOTALES --- */

@media (max-width: 1024px) {
    .container { padding: 60px 20px; }
    .intro-grid { gap: 40px; }
    .section-main-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* Navbar: Evita que el logo y los links se choquen */
    .navbar { padding: 0 20px; flex-direction: column; height: auto; padding-top: 15px; }
    .nav-links { gap: 15px; flex-wrap: wrap; justify-content: center; margin-top: 10px; padding-bottom: 10px; }
    
    /* Hero: Reduce el texto para que no se corte */
    .hero-content h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 15px; padding: 0 10px; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-btns { flex-direction: column; width: 100%; gap: 10px; }
    .hero-btns a, .hero-btns button { width: 100%; }

    /* Grillas: De 2 columnas a 1 sola columna */
    .intro-grid, .proposal-large { grid-template-columns: 1fr !important; }
    .proposal-large.reverse { direction: ltr; } /* Quita el modo espejo en móvil */
    .proposal-image-box { height: 300px; }
    .proposal-content { padding: 40px 20px; }

    /* Ficha Técnica: Tarjetas en vertical */
    .card-grid.technical { grid-template-columns: 1fr; }
    
    /* Estadísticas */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    
    /* Mapa y Contacto */
    .location-grid { grid-template-columns: 1fr; }
    #contact-form { width: 100%; }
}

@media (max-width: 480px) {
    .section-main-title { font-size: 1.8rem; }
.location-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* El mapa ahora debe ocupar todo el ancho y tener una altura fija cómoda */
    .map-container {
        width: 100%;
        height: 350px; /* Reducimos un poco la altura en móvil para que no sea infinita */
        order: 2; /* Ponemos el mapa debajo del texto */
    }

    .location-info {
        order: 1; /* El texto queda arriba */
        padding: 0 10px;
    }

    /* Ajuste para que el texto no desborde */
    .location-info h3 {
        font-size: 1.8rem;
    }

    .location-info p {
        font-size: 1rem;
    }
    .whatsapp-btn { width: 50px; height: 50px; bottom: 15px; right: 15px; }
}

/* CONTACTO */
.contact-box { background: var(--primary); color: white; padding: 80px 40px; text-align: center; }
#contact-form { max-width: 600px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 20px; }
#contact-form input, #contact-form textarea { padding: 18px; border: none; font-family: 'Montserrat', sans-serif; }

/* FOOTER (CORREGIDO) */
footer {
    padding: 60px 20px;
    background-color: #f4f1ec;
    text-align: center; /* Centrado absoluto del texto de copyright */
}

footer p {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* BOTÓN DE WHATSAPP FLOTANTE */
.whatsapp-btn {
    position: fixed;
    bottom: 30px; /* Distancia del borde inferior */
    right: 30px;  /* Distancia del borde derecho */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999; /* Para que esté por encima de todo menos del video modal */
    transition: var(--transition);
}

.whatsapp-btn img {
    width: 35px;
    height: 35px;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background-color: #20ba5a;
}

/* Opcional: Desaparecer cuando el modal del video está abierto */
body.modal-open .whatsapp-btn {
    display: none;
}

/* CONFIGURACIÓN MÓVIL (MENU HAMBURGUESA) */
@media (max-width: 900px) {
    /* Navbar: Logo a la izquierda, hamburguesa a la derecha */
    .navbar {
        display: flex;
        flex-direction: row !important; /* Forzamos que sea fila, no columna */
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
        height: 80px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	z-index: 10001;

    }

    .menu-toggle {
        display: block; /* Aparece en móvil */
        z-index: 10001;
    }

    /* El Menú Desplegable (Cae desde arriba) */
    .nav-links {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        position: absolute;
        top: 80px; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 10px 0;
	margin: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 10000;
	border-top: 1px solid rgba(0,0,0,0,0.05);
    }

    .nav-links.active {
        display: flex; /* Se muestra al cliquear */
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* Estética de las barras */
    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0; /* Quitamos el 'auto' para que no se centre */
        background-color: var(--primary);
        transition: 0.3s;
    }
}