:root {
    --azul-thera: #0d47a1;
    --azul-hover: #0a3980;
    --verde-thera: #4caf50;
    --verde-hover: #3d8b40;
    --texto-oscuro: #2c3e50;
    --texto-mutado: #64748b;
    --blanco: #ffffff;
    --gris-fondo: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    color: var(--texto-oscuro);
    background-color: var(--blanco);
    line-height: 1.6;
}

/* ==========================================================================
   HEADER Y NAVBAR
   ========================================================================== */
header {
    background-color: var(--blanco);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--azul-thera);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--azul-thera);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 10px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--blanco);
    background-color: var(--azul-thera);
}

/* Responsividad Menú */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 20px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* ==========================================================================
   BANNER HERO
   ========================================================================== */
.servicios-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-image: url('../img/nosotros/banner.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.servicios-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.servicios-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #ffffff;
    padding: 10px;
}

.servicios-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: rgba(41, 221, 71, 0.616);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    font-weight: 600;
}

.servicios-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.servicios-hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
    .nosotros-hero {
        min-height: 50vh;
        padding: 40px;
    }
    
    .nosotros-hero-content h1 {
        font-size: 3.5rem;
    }
    
    .nosotros-hero-content p {
        font-size: 1.15rem;
    }
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #f8fafc;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.servicio-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 25px 30px 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 168, 150, 0.1);
}

.servicio-icon {
    width: 75px;
    height: 75px;
    background-color: rgba(0, 168, 150, 0.08);
    color: #24378a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 22px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.servicio-card:hover .servicio-icon {
    background-color: #5fb158;
    color: #ffffff;
}

.servicio-card h3 {
    font-size: 1.35rem;
    color: #211e3b;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.servicio-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-servicio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1dce35;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.btn-servicio i {
    font-size: 0.85rem;
}

.servicio-card:hover .btn-servicio {
    gap: 12px;
}

@media (max-width: 768px) {
    .servicios-container {
        padding: 40px 16px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .servicio-card {
        padding: 30px 20px;
    }

    .servicio-card:active {
        transform: scale(0.98);
        background-color: #f8fafc;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
    background-color: #092c63; 
    color: #e2e8f0;
    padding: 70px 0 0 0;
    border-top: 5px solid #4caf50;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 40px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: #4caf50;
    border-radius: 2px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 20px 0;
}

.footer-logo {
    max-height: 65px;
    width: auto;
    background: #ffffff; 
    padding: 5px 10px;
    border-radius: 6px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: #4caf50;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 10px;
    color: #4caf50;
    transition: transform 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-info {
    list-style: none;
}

.footer-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    color: #cbd5e1;
}

.footer-info li i {
    color: #4caf50;
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.footer-info a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-info a:hover {
    color: #ffffff;
}

.footer-bottom {
    background-color: #061f47;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsividad Footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-socials { justify-content: center; }
    .footer-info li { justify-content: center; text-align: center; }
    .footer-bottom-container { flex-direction: column; text-align: center; gap: 10px; }
}

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.wsp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.wsp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

@media (max-width: 576px) {
    .wsp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}
.stat-item strong {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--verde-thera);
    line-height: 1;
    margin-bottom: 8px;
}