/* ================= VARIABLES GLOBALES (Verde Aqua y Gris Pizarra) ================= */
:root {
    --primary: #B91C1C; /* Verde Aqua Original - Fresco y profesional */
    --primary-dark: #991B1B; 
    --accent: #991B1B; /* Tono de apoyo */
    --dark: #0f172a; /* Azul noche muy oscuro (casi negro), más elegante que el negro puro */
    --light: #ffffff; 
    --surface: #f8fafc; /* Un gris hiper claro y limpio para separar secciones */
    --white: #ffffff;
    --gray: #475569; /* Gris Pizarra (Slate) - Muy legible, ad hoc y moderno */
    --border: #e2e8f0;
    --radius: 6px; /* Balance: Líneas rectas con una caída sutil */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--light); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.section-subtitle { font-size: 1.1rem; color: var(--gray); margin-bottom: 50px; }

/* ================= HEADER TRANSPARENTE & FIJO ================= */
header { position: fixed; top: 0; left: 0; width: 100%; background: transparent; z-index: 1000; padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; transition: all 0.4s ease; }
header.scrolled { background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 5%; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { max-height: 90px; width: auto; object-fit: contain; transition: 0.3s; filter: brightness(0) invert(1); }
header.scrolled .logo img { max-height: 70px; } 

.nav-links { display: flex; gap: 35px; list-style: none; align-items: center; margin-top: -15px; transition: 0.3s; /* Sube el menú un poco */ }
header.scrolled .nav-links { margin-top: 0; /* Regresa al centro al bajar */ }

/* EFECTO HOVER EN EL MENÚ */
.nav-links a { 
    display: inline-block; /* Requerido para que el efecto de crecer funcione */
    text-decoration: none; color: var(--white); font-weight: 600; 
    transition: all 0.3s ease; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); 
}
.nav-links a:hover, .nav-links a.active { 
    color: var(--primary); 
    transform: scale(1.1); /* Crece un poquito */
    text-shadow: 0 4px 10px rgba(0,0,0,0.8); /* Sombra interactiva */
}
.menu-toggle { display: none; font-size: 1.8rem; color: var(--white); cursor: pointer; }

/* ================= HERO SECTION ================= */
.hero-section { position: relative; width: 100%; height: 100vh; min-height: 600px; display: flex; align-items: center; padding-left: 8%; background-image: url('fachada_wharton.webp'); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0) 100%); z-index: 1; }

/* Separación del texto con el logo (margin-top: 60px) */
.hero-content { position: relative; z-index: 2; max-width: 700px; color: var(--white); animation: fadeUp 1s ease forwards; opacity: 0; margin-top: 60px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-seo-tag { display: inline-block; background: var(--primary); color: var(--white); padding: 6px 12px; border-radius: var(--radius); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.hero-content h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; font-weight: 300; text-shadow: 0 2px 4px rgba(0,0,0,0.5); line-height: 1.8; }
.btn { padding: 15px 35px; border-radius: var(--radius); font-weight: 600; text-decoration: none; display: inline-block; transition: 0.3s; cursor: pointer; text-align: center; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;}
.btn-primary { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-primary:hover { background: transparent; border-color: var(--white); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); transform: translateY(-3px); }

/* ================= TRUST BADGES ================= */
.trust-badges-section { background: var(--surface); padding: 30px 0; overflow: hidden; border-bottom: 1px solid var(--border); }
.marquee-wrapper { display: flex; width: 200%; animation: scrollMarquee 20s linear infinite; align-items: center; }
.marquee-wrapper:hover { animation-play-state: paused; }
.trust-logo { display: flex; align-items: center; gap: 10px; padding: 0 40px; font-size: 1.2rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; filter: grayscale(100%); transition: 0.3s; cursor: default; }
.trust-logo:hover { filter: grayscale(0%); color: var(--primary); }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================= QUICK STATS ================= */
.stats-section { background: var(--primary); color: white; padding: 80px 20px; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.stat-box h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 5px; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.stat-box p { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #e2e8f0;}

/* ================= FEATURED PROJECTS TEASER ================= */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.project-item { position: relative; border-radius: var(--radius); overflow: hidden; height: 400px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.project-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s ease; }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: 0.4s; padding: 20px; text-align: center; }
@media (hover: hover) { .project-item:hover img { transform: scale(1.05); } .project-item:hover .project-overlay { opacity: 1; } }
.project-overlay h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 15px; }

/* ================= TESTIMONIALS ================= */
.testimonials { position: relative; overflow: hidden; padding: 120px 20px; color: var(--white); margin-top: 80px;}
.test-bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.test-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: kenburns 24s infinite; }
.test-bg.bg1 { background-image: url('casa_test1.webp'); animation-delay: 0s; }
.test-bg.bg2 { background-image: url('casa_test2.webp'); animation-delay: 8s; }
.test-bg.bg3 { background-image: url('casa_test3.webp'); animation-delay: 16s; }
@keyframes kenburns { 0% { opacity: 0; transform: scale(1); } 10% { opacity: 1; } 25% { opacity: 1; } 35% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1); } }
.test-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); z-index: 1; }
.test-content-wrap { position: relative; z-index: 2; }
.test-card { background: rgba(255,255,255,0.05); padding: 40px; border-radius: var(--radius); text-align: left; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.test-card p { font-style: italic; font-size: 1.1rem; margin-bottom: 20px; line-height: 1.8; }
.test-card h5 { color: var(--primary); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* ================= FOOTER ================= */
footer { background: var(--dark); color: #94a3b8; padding: 80px 20px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 20px; }
.footer-col h4 { color: white; font-size: 1.2rem; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: white; }
.social-icons a { color: #B91C1C; font-size: 1.5rem; margin-right: 15px; transition: 0.3s; }
.social-icons a:hover { color: var(--primary); }

/* WHATSAPP FLOTANTE */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); }

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    header.scrolled { padding: 15px 5%; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--dark); flex-direction: column; padding: 20px 0; display: none; margin-top: 0; }
    .nav-links.active { display: flex; }
    .nav-links a { text-shadow: none; }
    .hero-section { min-height: 80vh; padding-left: 5%; background-position: right center; }
    .hero-overlay { background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.3) 100%); }
    .hero-content { margin-top: 40px; }
    .hero-content h1 { font-size: 2.5rem; }
    .btn { width: 100%; margin-bottom: 10px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .project-overlay { opacity: 1; background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.1) 100%); justify-content: flex-end; padding-bottom: 30px; }
    
    /* --- ARREGLOS PARA LANDING RESIDENCIAL --- */
    
    /* 1. Arreglo del Hero */
    .landing-hero, .commercial-hero { background-attachment: scroll !important; background-position: center center !important; padding-top: 150px !important; }
    
    /* 2. Galería 2x2 */
    #galeria-movil { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 15px !important; }
    #galeria-movil img { width: 100% !important; height: auto !important; object-fit: cover !important; display: block !important; border-radius: 8px; }
    
    /* 3. Tarjetas del Método Aries (Una sobre otra) */
    #metodo-movil { display: flex !important; flex-direction: column !important; width: 100% !important; gap: 20px !important; }
    #metodo-movil .process-card { width: 100% !important; max-width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }
}