/* VARIABLES CONTROLADOR FORESTAL */
:root {
    --brand-green: #1B4332; /* Verde bosque profundo */
    --brand-light: #2D6A4F; /* Verde hoja */
    --brand-earth: #9C6644; /* Tono tierra / madera */
    --bg-light: #F8F9FA; /* Gris muy claro, casi blanco */
    --bg-white: #FFFFFF;
    --text-dark: #212529;
    --text-muted: #495057;
    --font-main: 'Merriweather', serif; /* Tipografía clásica y con autoridad */
    --font-ui: 'Open Sans', sans-serif; /* Para menús, UI y legibilidad moderna */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-ui); background-color: var(--bg-light); color: var(--text-dark); line-height: 1.8; padding-top: 90px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-main); color: var(--brand-green); line-height: 1.3; }

/* CABECERA Y NAVEGACIÓN */
header { background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 15px rgba(0,0,0,0.08); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; width: 100%; z-index: 1000; border-bottom: 3px solid var(--brand-green); }
.logo { font-family: var(--font-main); font-size: 1.6rem; font-weight: 900; color: var(--brand-green); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: var(--brand-earth); font-weight: 400; font-size: 1rem; display: block; letter-spacing: 2px; }

nav { display: flex; align-items: center; gap: 30px; font-family: var(--font-ui); }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: var(--text-dark); text-decoration: none; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-light); }

.lang-selector { background: var(--bg-light); color: var(--brand-green); border: 2px solid var(--brand-green); padding: 8px 15px; font-weight: 700; cursor: pointer; border-radius: 4px; outline: none; }

/* HERO CON IMAGEN DE FONDO */
/* =========================================
   HERO CON VÍDEO DE FONDO
========================================= */
.hero { 
    position: relative; 
    height: calc(100vh - 90px); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    overflow: hidden; 
    background-color: var(--brand-green); 
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover; /* Clave para que se adapte perfectamente */
    opacity: 0.6; /* Un poco de opacidad para que el texto destaque */
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to bottom, rgba(27, 67, 50, 0.5), rgba(27, 67, 50, 0.95)); 
    z-index: 1; 
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(27, 67, 50, 0.6), rgba(27, 67, 50, 0.9)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 1000px; padding: 0 5%; color: var(--bg-white); }
.hero-content h1 { font-size: 4.5rem; margin-bottom: 25px; color: var(--bg-white); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); text-transform: uppercase; }
.hero-content p { font-size: 1.4rem; font-weight: 400; margin-bottom: 40px; color: #E9ECEF; }
.btn-primary { display: inline-block; background: var(--brand-earth); color: var(--bg-white); font-family: var(--font-ui); padding: 18px 45px; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; border-radius: 4px; transition: 0.3s; border: 2px solid transparent; }
.btn-primary:hover { background: transparent; border-color: var(--brand-earth); color: var(--brand-earth); background: rgba(255,255,255,0.1); }

/* SECCIONES Y TEXTO MASIVO */
section { padding: 100px 5%; max-width: 1300px; margin: 0 auto; }
.section-title { font-size: 3.5rem; text-align: center; margin-bottom: 60px; color: var(--brand-green); font-weight: 900; text-transform: uppercase; }
.section-title span { color: var(--brand-earth); }

.rich-text-box { background: var(--bg-white); padding: 70px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border-top: 6px solid var(--brand-green); margin-bottom: 50px; }
.rich-text-box h2 { font-size: 2.5rem; color: var(--brand-green); margin-bottom: 30px; }
.rich-text-box p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 25px; text-align: justify; line-height: 2; }

/* SERVICIOS (REGLA: SOLO TÍTULOS) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { position: relative; height: 380px; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: flex-end; border-bottom: 5px solid var(--brand-earth); }
.service-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.service-card:hover img { transform: scale(1.1); }
.service-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(27,67,50,0.95) 0%, rgba(27,67,50,0.2) 100%); }
.service-card h3 { position: relative; z-index: 2; width: 100%; padding: 35px; color: var(--bg-white); font-size: 1.6rem; text-align: center; margin: 0; font-family: var(--font-main); text-transform: uppercase; font-weight: 900; }

/* TESTIMONIOS (REGLA: 100% ANÓNIMOS) */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.testimonial-card { background: var(--bg-white); padding: 50px; border-radius: 8px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-left: 6px solid var(--brand-earth); }
.testimonial-card::before { content: '"'; font-size: 8rem; color: var(--bg-light); position: absolute; top: -20px; left: 20px; font-family: var(--font-main); line-height: 1; z-index: 0; }
.testimonial-card p { font-size: 1.25rem; font-style: italic; color: var(--text-dark); position: relative; z-index: 1; margin: 0; line-height: 1.9; }

/* FAQ (REGLA: EXACTAMENTE 2, H3 + P) */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--bg-white); padding: 50px; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 4px solid var(--brand-green); }
.faq-item h3 { font-size: 1.6rem; color: var(--brand-green); margin-bottom: 20px; font-family: var(--font-main); line-height: 1.4; }
.faq-item p { font-size: 1.15rem; color: var(--text-muted); margin: 0; line-height: 1.9; }

/* CONTACTO */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { background: var(--brand-green); color: var(--bg-white); padding: 60px; border-radius: 8px; border-bottom: 6px solid var(--brand-earth); }
.contact-info h2 { color: var(--bg-white); font-size: 2.5rem; margin-bottom: 30px; border-bottom: 2px solid var(--brand-light); padding-bottom: 15px; }
.contact-info p { font-size: 1.2rem; margin-bottom: 20px; opacity: 0.95; line-height: 1.8; }
.contact-info strong { display: block; color: var(--brand-earth); font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; margin-top: 30px; }
.contact-form { background: var(--bg-white); padding: 60px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
.contact-form input, .contact-form textarea { width: 100%; padding: 18px; margin-bottom: 20px; border: 1px solid #CED4DA; border-radius: 4px; font-size: 1.1rem; font-family: var(--font-ui); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-green); outline: none; }
.contact-form button { width: 100%; cursor: pointer; }

/* PÁGINAS LEGALES */
.legal-wrapper { background: var(--bg-white); padding: 80px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.legal-wrapper h1 { color: var(--brand-green); font-size: 3rem; margin-bottom: 40px; text-transform: uppercase; text-align: center; border-bottom: 2px solid var(--bg-light); padding-bottom: 20px; }
.legal-wrapper h2 { font-size: 1.8rem; color: var(--brand-earth); margin: 50px 0 25px; }
.legal-wrapper p, .legal-wrapper li { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.9; text-align: justify; }
.legal-wrapper ul { padding-left: 40px; margin-bottom: 30px; }

/* FOOTER */
footer { background: var(--brand-green); color: var(--bg-white); padding: 80px 5% 40px; text-align: center; margin-top: 50px; border-top: 5px solid var(--brand-earth); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 50px; }
.footer-links a { color: #E9ECEF; text-decoration: none; font-size: 1rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; transition: 0.3s; }
.footer-links a:hover { color: var(--brand-earth); }
.footer-logo { display: flex; justify-content: center; margin-bottom: 40px; }
.footer-logo img { height: 150px; background: #e9ecef00; padding: 10px; border-radius: 4px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    header { flex-direction: column; padding: 15px; }
    nav { margin-top: 20px; flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    body { padding-top: 170px; }
    .contact-layout { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .legal-wrapper { padding: 40px 20px; }
}