/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #1e5e20;
    --active-link: #2e7d32;
    --text-color: #ffffff;
    --footer-bg: #1a1a1a;
    --logo-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* --- HEADER Y NAVEGACIÓN --- */
header {
    background: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    padding: 15px 20px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links li a.active, .nav-links li a:hover {
    color: #2b7a0b;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 60vh;
    background: url('img/hero-bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 10px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}

/* --- GRAN SECCIÓN UNIFICADA (El fondo que querías) --- */
.gran-seccion-unificada {
    position: relative;
    /* Cambiá el nombre de la imagen aquí si es necesario */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                      url('img/fondo-unificado.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.gran-seccion-unificada h2 {
    color: var(--active-link) !important;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* --- TARJETAS Y LISTAS --- */
.card-info, .list-check {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.list-check { list-style: none; }

.list-check li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    text-align: left;
}

.list-check li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--active-link);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- GRID DE LOGOS --- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.logo-grid a {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--logo-border);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: 0.3s ease;
    border-radius: 8px;
}

.logo-grid a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.logo-grid img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

/* --- FOOTER --- */
footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer h2, footer h3 {
    color: white !important;
    text-align: left;
    margin-bottom: 20px;
}

.email-link {
    color: #76ff03;
    text-decoration: underline;
    font-size: 1.1rem;
    font-weight: 600;
}

.email-link:hover {
    color: #ffffff;

}

.copyright {
    margin-top: 40px;
    opacity: 0.8;
    font-size: 0.8rem;
    text-align: center;
    color: #cccccc;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Aquí deberías agregar tu lógica de menú hamburguesa */
    .footer-content { flex-direction: column; text-align: center; }
    footer h2 { text-align: center; }
    footer h3 { text-align: center; }
}

/* Ocultar menú hamburguesa en escritorio */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 10px;
    min-height: 48px;
}

/* H1 en Rojo como el logo */
.hero h1 {
    color: #e31b23; /* El rojo característico del logo */
    font-size: 3.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

/* Media Query para activar el menú en celulares */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Solo aparece en pantallas chicas */
    }
    .nav-links {
        display: none; /* Se oculta por defecto para que el JS lo abra */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
    }    
        .nav-links li {
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }
    }
    .nav-links.active {
        display: flex; /* Clase que pondrá el JavaScript */
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    
    }
    .copyright {
    text-align: center;
    }

.gran-seccion-unificada .cta-subtext {
    color: #ffffff !important; /* Blanco para que resalte */
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.footer-nav ul li a {
    color: #ffffff !important;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    padding: 10px 0;
}

.footer-nav ul li a:hover {
    color: #2b7a0b; /* Que cambie a verde al pasar el mouse */
    margin-bottom: 20px;
}

.card-info ul li {
    margin-bottom: 15px; /* Espacio entre pasos */
    font-size: 1.1rem;
}

/* Estilo para páginas sin imagen de fondo */
.legal-section.no-bg {
    background: #1a202c; /* Un gris muy oscuro, igual al footer */
    padding: 60px 0;
    min-height: 80vh;
}

.legal-title {
    color: #e31b23;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.legal-box {
    background-color: rgba(255, 255, 255, 0.05) !important; /* Fondo sutil para la caja */
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left !important;
    padding: 40px;
}

.legal-item h3 {
    color: var(--active-link);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.legal-item p {
    color: #e0e0e0;
    margin-bottom: 25px;
}

/* --- MEJORAS PARA LA SECCIÓN SUCURSALES --- */
.sucursales-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.info-sucursales {
    flex: 1;
    min-width: 300px;
}

.mapa-container {
    flex: 1;
    min-width: 300px;
}

.sucursal-item {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sucursal-item:last-child {
    border-bottom: none;
}

.sucursal-item strong {
    color: #76ff03;
}

.sticky-map {
    position: sticky;
    top: 100px;
}

@media (max-width: 992px) {
    .sucursales-wrapper {
        flex-direction: column;
    }
    .sticky-map {
        position: static;
    }
}