/* ==========================================================================
   1. PALETA BASE AZUL CLÍNICO CORPORATIVO Y ESTILOS GENERALES
   ========================================================================== */
:root {
    --primary: #3182ce;          /* Azul medio clínico */
    --primary-dark: #2b6cb0;     /* Azul oscuro para hover */
    --primary-light: #ebf8ff;    /* Fondo azul claro */
    --light-bg: #f8fafc;
    --text-color: #2d3748;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Previene el scroll horizontal y el espacio blanco a la derecha */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Control estricto del ancho de contenedores principales */
.max-width {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Previene que medios, imágenes o mapas rompan la pantalla */
img, iframe, svg, video {
    max-width: 100%;
}

/* ==========================================================================
   2. TOP BAR
   ========================================================================== */
#top-bar-cont {
    background-color: var(--primary-light);
    color: var(--text-color);
    font-size: 0.85em;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10000;
}

#top-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-nav a {
    margin-left: 15px;
    color: #4a5568;
    transition: color 0.3s;
}

.top-nav a:hover {
    color: var(--primary);
}

/* ==========================================================================
   3. MENÚ PRINCIPAL Y LOGO CON FILTRO EN AZUL
   ========================================================================== */
header {
    position: relative;
    z-index: 99999;
}

#menu-cont {
    background: #ffffff;
    border-bottom: 2px solid var(--primary-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 99999;
}

#menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo img {
    height: 48px;
    display: block;
    filter: brightness(0.3) sepia(1) hue-rotate(185deg) saturate(3.5);
}

.main-menu {
    position: relative;
    z-index: 100000;
}

.main-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-color);
    display: block;
    transition: color 0.2s;
}

.main-menu a.active, 
.main-menu a:hover {
    color: var(--primary);
}

/* Submenú Desplegable */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    flex-direction: column;
    min-width: 230px;
    border-radius: 0 0 8px 8px;
    z-index: 999999;
    padding: 8px 0;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary);
    pointer-events: none;
}

.dropdown a {
    padding: 10px 18px;
    font-size: 0.85em;
    border-bottom: 1px solid #f7fafc;
    white-space: nowrap;
    color: var(--text-color);
    display: block;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ==========================================================================
   4. BOTONES
   ========================================================================== */
.btn-primary {
    background-color: var(--primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* ==========================================================================
   5. HERO BANNER FULL WIDTH (SOLO IMÁGENES)
   ========================================================================== */
.hero-swiper {
    width: 70% !important;
    max-width: 70% !important;   /* Ocupa todo el ancho de pantalla */
    height: auto;
    margin: 0 auto;
    border-radius: 0;             /* Remueve bordes redondeados para borde a borde */
    box-shadow: none;
    position: relative;
    z-index: 1 !important;
    overflow: hidden;
}

.hero-swiper .swiper-slide {
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 720px;            /* Controla la altura máxima en pantallas grandes */
    object-fit: cover;            /* Garantiza que no se distorsione */
    display: block;
}

/* Ajustes opcionales para los botones de navegación sobre imágenes claras */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--primary);
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ==========================================================================
   6. FORMULARIO FLOTANTE
   ========================================================================== */
.appointment-container {
    max-width: 1000px;
    margin: -40px auto 40px;
    position: relative;
    z-index: 100;
    padding: 0 20px;
}

.appointment-card {
    background: #ffffff;
    color: var(--text-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.appointment-header {
    text-align: center;
    min-width: 180px;
}

.appointment-header i {
    font-size: 2.5em;
    color: var(--primary);
}

.appointment-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.appointment-form input {
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    color: var(--text-color);
    border-radius: 4px;
}

.appointment-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.cta-button {
    grid-column: span 2;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   7. MÉTRICAS Y DESTACADOS
   ========================================================================== */
.stats-section {
    background-color: var(--primary-light);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-box i {
    font-size: 2em;
    color: var(--primary);
}

.stat-box b {
    display: block;
    font-size: 1.8em;
    margin-top: 5px;
    color: var(--primary-dark);
}

/* ==========================================================================
   8. SERVICIOS Y TARJETAS
   ========================================================================== */
.services-section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.line-deco {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card i {
    font-size: 2.2em;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ==========================================================================
   9. COBERTURA Y MAPA (DEPARTAMENTOS Y MY MAPS)
   ========================================================================== */
.coverage-section {
    background: var(--light-bg);
    padding: 50px 0;
}

.row-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.coverage-info {
    flex: 1;
}

.municipios-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dep-group {
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.dep-group h4 {
    color: var(--primary-dark);
    font-size: 0.95em;
    margin-bottom: 4px;
}

.dep-group p {
    font-size: 0.85em;
    color: #4a5568;
    line-height: 1.4;
}

.google-mymaps-wrapper {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.map-header-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8em;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.google-mymaps-wrapper iframe {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: block;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-light);
    color: var(--text-color);
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.full-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 15px;
    filter: brightness(0.3) sepia(1) hue-rotate(185deg) saturate(3.5);
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border-color);
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 8px;
}

.copyright {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 15px;
    font-size: 0.85em;
    color: #718096;
}

/* ==========================================================================
   11. ADAPTACIÓN RESPONSIVE (TABLETS Y MÓVILES)
   ========================================================================== */

/* --- TABLETS Y PANTALLAS MEDIANAS (hasta 1100px) --- */
@media (max-width: 1100px) {
    .max-width {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    .hero-swiper {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0;
        height: 380px;
    }

    .google-mymaps-wrapper iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 380px;
    }

    .stats-grid,
    .services-grid,
    .agreements-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .row-flex, 
    .pqrs-container, 
    .contact-container, 
    .careers-container {
        gap: 25px;
    }
}

/* --- MÓVILES Y DISPOSITIVOS PEQUEÑOS (hasta 768px) --- */
@media (max-width: 768px) {
    #top-bar, 
    #menu, 
    .appointment-card, 
    .row-flex,
    .pqrs-container, 
    .contact-container, 
    .careers-container,
    .about-grid {
        flex-direction: column;
        gap: 15px;
    }

    .main-menu ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .main-menu a {
        padding: 10px;
    }

    .dropdown {
        position: static !important;
        box-shadow: none !important;
        background: var(--primary-light) !important;
        width: 100%;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        padding: 5px 0 !important;
        border: none !important;
        border-top: 2px solid var(--primary) !important;
    }

    .has-dropdown.open .dropdown {
        display: flex !important;
    }

    .appointment-form, 
    .stats-grid, 
    .services-grid, 
    .full-footer,
    .principles-grid, 
    .values-grid,
    .agreements-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
    }

    .appointment-container {
        margin-top: 20px;
    }

    .pqrs-form-card, 
    .contact-form-card, 
    .careers-form-card,
    .privacy-card {
        padding: 25px;
    }

    .contact-notice-box,
    .requirements-box {
        flex-direction: column;
        padding: 20px;
    }

    /* Ajuste de tamaño para el botón flotante de WhatsApp en celulares */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* ==========================================================================
   12. ESTILOS PÁGINA INTERNA: QUIÉNES SOMOS
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 0.95em;
    opacity: 0.9;
}

.about-section {
    padding: 60px 20px;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--primary-dark);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.line-deco-left {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.mv-section {
    background-color: var(--primary-light);
    padding: 60px 20px;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mv-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    margin: 0 auto 15px;
}

.mv-card h3 {
    color: var(--primary-dark);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.principles-section {
    padding: 60px 20px;
}

.principles-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.principle-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 22px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.principle-card:hover, .value-card:hover {
    transform: translateY(-4px);
}

.principle-card i, .value-card i {
    font-size: 1.8em;
    color: var(--primary);
    margin-bottom: 10px;
}

.principle-card h4, .value-card h4 {
    font-size: 1.05em;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.principle-card p, .value-card p {
    font-size: 0.88em;
    color: #4a5568;
    line-height: 1.4;
}

.values-section {
    background-color: var(--primary-light);
    padding: 60px 20px;
}

.value-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.quality-policy-section {
    padding: 60px 20px;
}

.quality-box {
    background: #ffffff;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.quality-box i {
    font-size: 2.8em;
    color: var(--primary);
}

.quality-box h3 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.quality-box p {
    font-size: 0.9em;
    color: #4a5568;
}

@media (max-width: 992px) {
    .principles-grid, .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid, .mv-grid, .principles-grid, .values-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .quality-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   13. ESTILOS PÁGINA PQRS
   ========================================================================== */
.alert-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-message.success {
    background-color: #def7ec;
    color: #03543f;
    border: 1px solid #84e1bc;
}

.alert-message.error {
    background-color: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

.pqrs-section {
    padding: 60px 20px;
}

.pqrs-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.pqrs-info-box {
    flex: 1;
}

.pqrs-info-box h2 {
    color: var(--primary-dark);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.pqrs-types {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.type-item {
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-left-width: 4px;
}

.type-item i {
    color: var(--primary);
    font-size: 1.3em;
    margin-top: 2px;
}

.type-item font, .type-item div {
    font-size: 0.88em;
    color: #4a5568;
    line-height: 1.4;
}

.pqrs-form-card, .contact-form-card, .careers-form-card {
    flex: 1.2;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.pqrs-form-card h3, .contact-form-card h3, .careers-form-card h3 {
    color: var(--primary-dark);
    font-size: 1.4em;
    margin-bottom: 5px;
}

.form-instruction, .form-sub {
    font-size: 0.85em;
    color: #718096;
    margin-bottom: 25px;
}

.pqrs-form, .contact-form, .careers-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-group label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #fafafa;
    font-size: 0.9em;
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 0.8em;
    font-weight: normal;
    color: #718096;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-submit {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 0.95em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   14. ESTILOS POLÍTICA DE PRIVACIDAD
   ========================================================================== */
.privacy-section {
    padding: 60px 20px;
}

.privacy-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.privacy-header h2 {
    color: var(--primary-dark);
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.company-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.85em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.privacy-body {
    margin-top: 30px;
}

.intro-p {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.legal-block p {
    font-size: 0.98em;
    color: #4a5568;
    line-height: 1.85;
    margin-bottom: 22px;
    text-align: justify;
}

.rights-wrapper {
    margin: 40px 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.rights-wrapper h3 {
    color: var(--primary-dark);
    font-size: 1.3em;
    margin-bottom: 8px;
}

.sub-text {
    font-size: 0.92em;
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.6;
}

.rights-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.right-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.right-icon {
    color: var(--primary);
    font-size: 1.2em;
    margin-top: 2px;
}

.right-item span {
    font-size: 0.95em;
    color: var(--text-color);
    line-height: 1.6;
}

.contact-notice-box {
    background: var(--primary-light);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 35px;
}

.contact-notice-box i {
    font-size: 2.2em;
    color: var(--primary);
    margin-top: 5px;
}

.contact-notice-box h4 {
    color: var(--primary-dark);
    font-size: 1.1em;
    margin-bottom: 8px;
}

.contact-notice-box p {
    font-size: 0.93em;
    color: #2d3748;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   15. ESTILOS PÁGINA DE CONTACTO Y TRABAJE CON NOSOTROS
   ========================================================================== */
.contact-section, .careers-section {
    padding: 60px 20px;
}

.contact-container, .careers-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-cards, .careers-info {
    flex: 1;
}

.contact-info-cards h2, .careers-info h2 {
    color: var(--primary-dark);
    font-size: 1.8em;
    margin-bottom: 8px;
}

.info-card-item, .benefit-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.info-card-item i, .benefit-item i {
    color: var(--primary);
    font-size: 1.4em;
    margin-top: 3px;
}

.info-card-item h4, .benefit-item h4 {
    color: var(--primary-dark);
    font-size: 0.98em;
    margin-bottom: 4px;
}

.info-card-item p, .info-card-item a, .benefit-item p {
    font-size: 0.88em;
    color: #4a5568;
    line-height: 1.4;
}

.benefits-grid {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-input {
    padding: 8px !important;
    background: #ffffff !important;
    border: 2px dashed var(--primary) !important;
    cursor: pointer;
}

.help-text {
    font-size: 0.75em;
    color: #718096;
    margin-top: 2px;
}

/* ==========================================================================
   16. ESTILOS PÁGINA DE CONVENIOS
   ========================================================================== */
.agreements-section {
    padding: 60px 20px;
}

.agreements-intro {
    max-width: 800px;
    margin: 15px auto 0;
    font-size: 0.95em;
    color: #4a5568;
}

.agreements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.agreement-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.agreement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.agreement-header {
    background: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 20px;
    text-align: center;
}

.ag-logo-wrapper {
    width: 140px;
    height: 85px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.agreement-card:hover .ag-logo-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ag-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.agreement-header h3 {
    color: var(--primary-dark);
    font-size: 1.2em;
    margin: 0;
}

.sub-title-ag {
    display: block;
    font-size: 0.8em;
    color: #718096;
    margin-top: 2px;
}

.agreement-body {
    padding: 25px 20px;
}

.coverage-label {
    display: block;
    font-size: 0.82em;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.coverage-label i {
    color: var(--primary);
    margin-right: 4px;
}

.departments-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.dept-badge {
    background: #f1f5f9;
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
    font-size: 0.8em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dept-badge i {
    color: var(--primary);
}

.agreement-body p {
    font-size: 0.88em;
    color: #4a5568;
    line-height: 1.5;
}

.requirements-box {
    background: #ffffff;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 30px;
    margin-top: 50px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.requirements-box i {
    font-size: 2.5em;
    color: var(--primary);
    margin-top: 5px;
}

.requirements-box h4 {
    color: var(--primary-dark);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.requirements-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-box li {
    font-size: 0.9em;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-box li i {
    font-size: 0.9em;
    color: var(--primary);
    margin: 0;
}

/* ==========================================================================
   17. ESTILOS PÁGINA DE NOTICIAS Y NOVEDADES
   ========================================================================== */
.news-section {
    padding: 60px 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.news-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.news-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    font-size: 0.8em;
    color: #718096;
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.news-meta i {
    color: var(--primary);
}

.news-content h3 {
    color: var(--primary-dark);
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 0.88em;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.news-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.news-link:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   18. BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   19. ESTILOS DETALLE DE LA NOTICIA
   ========================================================================== */
.news-detail-section {
    padding: 60px 20px;
}

.news-detail-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.news-detail-header {
    text-align: center;
    margin-bottom: 25px;
}

.news-detail-header h2 {
    color: var(--primary-dark);
    font-size: 2em;
    line-height: 1.3;
    margin: 15px 0 10px;
}

.news-detail-image {
    width: 100%;
    max-height: 600px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-detail-body {
    font-size: 1.05em;
    color: #2d3748;
    line-height: 1.85;
    text-align: justify;
    margin-bottom: 40px;
}

.news-detail-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    text-align: center;
}

@media (max-width: 768px) {
    .news-detail-card {
        padding: 25px 20px;
    }
    
    .news-detail-header h2 {
        font-size: 1.5em;
    }
}