/* Estilos para el nuevo logo de imagen */
.header-logo-img {
    height: 50px; /* Controla la altura del logo. Puedes subir a 60px o bajar a 40px según veas tu imagen */
    width: auto;  /* Mantiene la proporción original de la imagen */
    display: block;
}

/* Ajuste móvil para que el logo no quite espacio al botón de menú en pantallas muy pequeñas */
@media (max-width: 768px) {
    .header-logo-img {
        height: 40px; 
    }
}

/* CSS Variables, Reset, Fonts */
:root {
    --primary-color: #1a4231; /* Verde oscuro inspirado en el logo */
    --secondary-color: #f9faf8; /* Fondo claro */
    --accent-color: #2c5e43;
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text-dark); line-height: 1.6; background-color: #ffffff; }

/* Navigation */
header { position: fixed; top: 0; width: 100%; background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; }

.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Representación CSS del logo */
.logo-icon {
    font-family: var(--font-heading); font-size: 38px; color: var(--primary-color);
    font-weight: bold; line-height: 1; letter-spacing: -2px;
}
.logo-text { font-family: var(--font-heading); font-size: 18px; color: var(--primary-color); font-weight: bold; line-height: 1.2; text-transform: uppercase;}
.logo-text span { display: block; font-size: 11px; font-weight: normal; letter-spacing: 2px; text-align: center; border-top: 1px solid var(--primary-color); margin-top: 3px; padding-top: 3px;}

nav ul { list-style: none; display: flex; gap: 20px; align-items: center; }
nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
nav a:hover { color: var(--primary-color); }
.btn-nav { background: var(--primary-color); color: #fff !important; padding: 10px 20px; border-radius: 4px; font-weight: bold; }
.btn-nav:hover { background: var(--accent-color); }

/* Mobile menu toggle */
.menu-toggle { display: none; font-size: 28px; cursor: pointer; color: var(--primary-color); }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 66, 49, 0.8), rgba(26, 66, 49, 0.7)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; padding: 0 20px; margin-top: 70px;
}
.hero h1 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 20px; max-width: 900px; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; margin-bottom: 30px; font-weight: 300; max-width: 700px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.btn-main { background: #ffffff; color: var(--primary-color); padding: 15px 35px; font-size: 1.1rem; text-decoration: none; font-weight: bold; border-radius: 4px; transition: all 0.3s; }
.btn-main:hover { background: #e0e0e0; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }

/* Sections General */
section { padding: 80px 5%; }
.section-title { text-align: center; font-family: var(--font-heading); color: var(--primary-color); font-size: 2.5rem; margin-bottom: 50px; }

/* Laboral Section (Focus) */
.laboral-section { background: var(--primary-color); color: white; }
.laboral-section .section-title { color: white; font-size: 2.2rem;}
.laboral-section .section-subtitle { text-align: center; font-size: 1.1rem; margin-top: -35px; margin-bottom: 50px; opacity: 0.9;}
.laboral-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.laboral-card { background: rgba(255,255,255,0.08); padding: 35px 25px; border-radius: 8px; border-left: 4px solid #fff; transition: transform 0.3s; }
.laboral-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.12); }
.laboral-icon { font-size: 2rem; margin-bottom: 15px; }
.laboral-card h3 { font-size: 1.3rem; margin-bottom: 15px; font-family: var(--font-heading); }
.laboral-card p { font-size: 0.95rem; opacity: 0.9; }

/* Otras Areas Section */
.areas-section { background: var(--secondary-color); }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.area-card { border: 1px solid #e0e0e0; padding: 40px 20px; text-align: center; border-radius: 8px; transition: all 0.3s; background: #fff; }
.area-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-5px); }
.area-icon { font-size: 35px; margin-bottom: 15px; color: var(--primary-color); }
.area-card h3 { font-family: var(--font-heading); color: var(--primary-color); margin-bottom: 10px; }
.area-card p { font-size: 0.9rem; color: #666; }

/* Quiénes Somos Section */
.about-container { display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-text h2 { font-family: var(--font-heading); color: var(--primary-color); font-size: 2.5rem; margin-bottom: 25px; }
.about-text p { margin-bottom: 20px; font-size: 1.05rem; color: #444; text-align: justify; }
.about-image { flex: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.about-image img { width: 100%; height: auto; display: block; }

.badge { display: inline-block; background: var(--secondary-color); border-left: 3px solid var(--primary-color); padding: 10px 15px; margin-top: 10px; font-weight: bold; color: var(--primary-color); border-radius: 0 4px 4px 0;}

/* Testimonios Section */
.testimonios-section { background: var(--primary-color); color: white; padding-top: 60px; padding-bottom: 80px;}
.testimonios-section .section-title { color: white; margin-bottom: 60px; }
.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonio-card { background: white; color: var(--text-dark); padding: 40px 30px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); position: relative; }
.testimonio-card::before { content: "”"; font-size: 80px; color: var(--primary-color); opacity: 0.1; position: absolute; top: -10px; left: 20px; font-family: var(--font-heading); }
.testimonio-text { font-style: italic; margin-bottom: 25px; font-size: 1.05rem; position: relative; z-index: 1; }
.testimonio-author { font-weight: bold; color: var(--primary-color); font-family: var(--font-heading); border-top: 1px solid #eee; padding-top: 15px; }
.testimonio-location { font-size: 0.85rem; color: #777; font-weight: normal; font-family: var(--font-main); }

/* Contacto Section */
.contact-container { display: flex; gap: 60px; }
.contact-info, .contact-form-container { flex: 1; }
.contact-form-container { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.contact-form-container h3 { font-family: var(--font-heading); color: var(--primary-color); margin-bottom: 20px; font-size: 1.5rem; }

form { display: flex; flex-direction: column; gap: 20px; }
form input, form textarea { padding: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 1rem; width: 100%; transition: border-color 0.3s;}
form input:focus, form textarea:focus { outline: none; border-color: var(--primary-color); }
form textarea { resize: vertical; height: 160px; }
.btn-submit { background: var(--primary-color); color: white; border: none; padding: 15px; font-size: 1.1rem; font-weight: bold; cursor: pointer; border-radius: 4px; transition: background 0.3s; }
.btn-submit:hover { background: var(--accent-color); }

.contact-info { display: flex; flex-direction: column; justify-content: space-between; }
.info-block { margin-bottom: 30px; }
.info-block h3 { font-family: var(--font-heading); color: var(--primary-color); margin-bottom: 15px; font-size: 1.5rem; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.info-icon { font-size: 1.2rem; color: var(--primary-color); margin-top: 3px; }

.map-container { width: 100%; height: 280px; background: #ddd; border-radius: 8px; overflow: hidden; margin-top: auto; }

/* Footer */
footer { background: #112a20; color: rgba(255,255,255,0.7); text-align: center; padding: 40px 20px 20px; font-size: 0.9rem; }
.footer-logo { font-family: var(--font-heading); font-size: 24px; color: white; margin-bottom: 10px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding-top: 20px; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .about-container { gap: 40px; }
}
@media (max-width: 850px) {
    .about-container, .contact-container { flex-direction: column; }
    .about-image { order: -1; } /* Image on top for mobile */
    .contact-info { order: 2; margin-top: 30px;}
    .contact-form-container { order: 1; padding: 30px 20px;}
}
@media (max-width: 768px) {
    .menu-toggle { 
        display: block !important; 
        position: relative;
        z-index: 1001;
    }
    nav { position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; box-shadow: 0 5px 10px rgba(0,0,0,0.1); display: none; }
    nav.active { display: block; }
    nav ul { flex-direction: column; padding: 20px 0; gap: 0; }
    nav ul li { width: 100%; text-align: center; border-bottom: 1px solid #f0f0f0; }
    nav ul li:last-child { border-bottom: none; padding-top: 15px; }
    nav a { display: block; padding: 15px; }
    .btn-nav { display: inline-block; width: 90%; margin: 0 auto; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    section { padding: 60px 5%; }
    .section-title { font-size: 2rem; margin-bottom: 35px; }
    header {
        padding: 15px 25px !important;
        justify-content: flex-end !important; 
    }

    .logo-container {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }


}

header { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: #ffffff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 12%; /* Aumentamos el porcentaje para que no se vean tan aislados a los bordes */
}

/* --- UPGRADE PREMIUM --- */
.about-text h2 {
    font-size: 3rem; 
    letter-spacing: -1px; /* Junta un poco las letras del título para darle un look de revista */
    margin-top: 15px;
}

.about-text p {
    font-size: 1.15rem; /* Letra un poco más grande y fácil de leer */
    color: #4a4a4a;
    line-height: 1.8;
}

.badge {
    background: var(--primary-color);
    color: var(--text-light);
    border-left: none;
    padding: 8px 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 2px;
}

.coverage-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    font-size: 0.95rem;
    color: #333;
}

/* --- ESTILOS DE LA NOTIFICACIÓN FLOTANTE (TOAST) --- */
#toast-notificacion {
    position: fixed;
    top: 30px;
    right: -400px; /* Se esconde fuera de la pantalla por defecto */
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    border-left: 4px solid #00b894; /* El borde verde estilo éxito */
    display: flex;
    align-items: center;
    padding: 15px 20px;
    width: 320px;
    z-index: 9999;
    transition: right 0.4s ease-in-out;
}

/* Esta clase es la que el JS añade para que aparezca */
#toast-notificacion.mostrar {
    right: 30px; 
}

.toast-icono {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.toast-contenido {
    display: flex;
    flex-direction: column;
}

.toast-contenido strong {
    color: #333333;
    font-size: 15px;
    margin-bottom: 5px;
}

.toast-contenido span {
    color: #777777;
    font-size: 13px;
    line-height: 1.3;
}


/* =========================================
   AJUSTES EXCLUSIVOS PARA CELULARES
   ========================================= */
@media (max-width: 768px) {
    /* 1. Poner 2 tarjetas por fila en lugar de 1 */
    .laboral-grid, .areas-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Reduce el espacio entre tarjetas */
        padding: 0 10px;
    }

    /* Opcional: Si quieres los testimonios en 1 sola fila pero más pequeños, 
       los dejamos fuera del repeat(2, 1fr) para que el texto largo no se apriete, 
       pero reducimos drásticamente su tamaño */
    .testimonios-grid {
        gap: 15px;
        padding: 0 15px;
    }

    /* 2. Reducir los "colchones" (padding) de todas las tarjetas */
    .laboral-card, .area-card, .testimonio-card {
        padding: 15px 12px;
    }

    /* 3. Achicar los íconos */
    .laboral-icon, .area-icon {
        font-size: 26px;
        margin-bottom: 8px;
    }

    /* 4. Achicar los títulos para que quepan en 2 columnas */
    .laboral-card h3, .area-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    /* 5. Reducir el tamaño de las letras de los textos y testimonios */
    .laboral-card p, .area-card p, .testimonio-text, .testimonio-card p {
        font-size: 12px;
        line-height: 1.4;
    }

    /* 6. Achicar la fuente de los nombres de los clientes */
    .testimonio-author, .author {
        font-size: 12px;
        margin-top: 10px;
    }
}