/* Variables con tu paleta de colores */
:root {
    --primary-dark: #1D1A73;     /* Azul oscuro principal */
    --primary-medium: #366B87;   /* Azul medio */
    --accent-color: #86A9FF;     /* Azul claro/acento */
    --success-color: #33D33E;    /* Verde éxito */
    --teal-color: #43D9CA;       /* Verde azulado/teal */
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #6e84a3;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    --gradient-accent: linear-gradient(135deg, var(--teal-color), var(--accent-color));
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.92), 
        rgba(255, 255, 255, 0.92)),
        url('images/fondo-textura-claro.jpg') fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER SUPERIOR CON REDES SOCIALES ===== */
.header-top {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--primary-dark);
}

.social-header {
    display: flex;
    gap: 15px;
}

.social-header-link {
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-header-link:hover {
    background: #43D9CA;
    transform: translateY(-2px);
}

/* ===== HEADER SCROLL ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1D1A73;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled {
    padding: 5px 0;
}

.main-header.scrolled .header-top {
    display: none;
}

.main-header.scrolled .logo-container {
    transform: scale(0.8);
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.main-header.scrolled .header-content {
    align-items: center;
}

.main-header.scrolled .main-nav {
    margin-top: 0;
}

/* Ajustar el contenido principal para compensar el header fijo */
body {
    padding-top: 120px; /* Ajusta según la altura de tu header */
}

/* Header con nuevos colores */
.main-header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
    padding: 3px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo Container actualizado */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    height: 100px; /* Más grande que antes */
    width: auto;
    border-radius: 50%; /* Forma ovalada/circular */
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.logo:hover {
    border-color: var(--teal-color);
    box-shadow: 0 6px 20px rgba(67, 217, 202, 0.3);
}

/* Ajustar el header para el logo más grande */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Ajustes responsive para el logo más grande */
@media (max-width: 768px) {
    .logo {
        height: 65px; /* Un poco más pequeño en móviles */
    }
}

@media (max-width: 480px) {
    .logo {
        height: 55px; /* Aún más pequeño en móviles muy pequeños */
    }
}

/* Header reorganizado */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Navegación principal mejorada */
.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: white !important;
    text-decoration: none;
    padding: 6px 12px;
    display: block;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Dropdown menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 15px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        margin: 10px 0;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
}

/* Botones con la nueva paleta */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    padding: 10px 20px;
    border: 2px solid var(--primary-dark);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Cards y elementos interactivos */
.menu-card, .card, .team-card {
    transition: all 0.3s ease;
    border: none;
}

.menu-card:hover, .card:hover, .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.menu-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: block;
    color: var(--text-color);
    margin-bottom: 30px;
    border-left: 4px solid var(--teal-color);
}

.menu-card:hover {
    border-left-color: var(--success-color);
    color: var(--primary-dark);
}

.menu-icon {
    font-size: 2.5rem;
    color: var(--primary-medium);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.menu-card:hover .menu-icon {
    color: var(--teal-color);
    transform: scale(1.1);
}

/* Contenido */
.content-section, .menu-principal {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(134, 169, 255, 0.1);
}

.section-header h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* Tablas y formularios */
th {
    background: var(--gradient-primary);
    color: var(--white);
}

tr:hover {
    background-color: rgba(134, 169, 255, 0.1);
}

.certification-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 40px;
    border-left: 4px solid var(--teal-color);
}

/* Footer */
.main-footer {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Efectos de hover mejorados */
.card:hover {
    box-shadow: 0 10px 25px rgba(51, 211, 62, 0.15);
}

.team-card:hover {
    box-shadow: 0 10px 25px rgba(67, 217, 202, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .exam-info, .points-system, .two-column {
        flex-direction: column;
    }
    
    body {
        background-attachment: scroll;
        background-position: top center;
    }
    
    .main-header h1 {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Utilidades de color */
.text-primary { color: var(--primary-dark); }
.text-success { color: var(--success-color); }
.text-teal { color: var(--teal-color); }
.text-accent { color: var(--accent-color); }

.bg-primary { background-color: var(--primary-dark); }
.bg-success { background-color: var(--success-color); }
.bg-teal { background-color: var(--teal-color); }
.bg-accent { background-color: var(--accent-color); }

/* ===== CORRECCIONES DE CONTRASTE ===== */

/* Sección de Contacto - MEJORADA CON MEJOR CONTRASTE */
.contact-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--white);
    padding: 80px 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.03"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95; /* Aumentado de 0.9 para mejor contraste */
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Añadido para mejor legibilidad */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.15); /* Aumentado de 0.1 para mejor contraste */
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Aumentado de 0.2 */
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2); /* Aumentado de 0.15 */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--teal-color);
}

.contact-icon {
    font-size: 2rem;
    color: var(--teal-color);
    background: rgba(255, 255, 255, 0.2); /* Aumentado de 0.1 */
    padding: 15px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--teal-color);
    color: var(--white);
    transform: scale(1.1);
}

.contact-text h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Añadido para mejor legibilidad */
}

.contact-text p {
    margin-bottom: 6px;
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    opacity: 0.95; /* Aumentado de 0.9 */
    color: var(--white);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); /* Añadido para mejor legibilidad */
}

.contact-hours {
    font-size: 0.9rem;
    opacity: 0.9; /* Aumentado de 0.8 */
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
    display: block;
    margin-top: 8px;
    color: var(--white);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); /* Añadido para mejor legibilidad */
}

/* Mapa Mejorado */
.contact-map {
    background: rgba(255, 255, 255, 0.1); /* Aumentado de 0.05 */
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Aumentado de 0.1 */
    height: fit-content;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.map-header h3 {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Añadido para mejor legibilidad */
}

.map-directions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.map-directions:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.map-container {
    background: rgba(255, 255, 255, 0.15); /* Aumentado de 0.1 */
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Aumentado de 0.2 */
}

/* Responsive */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-map {
        order: -1;
    }
    
    .map-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-card {
        padding: 25px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contact-grid {
        gap: 20px;
    }
    
    .map-container {
        padding: 15px;
    }
}

/*Estilos redes sociales*/

/* Sección de Redes Sociales */
.social-section {
    background: var(--primary-dark);
    padding: 25px 0;
    text-align: center;
}

.social-content h3 {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Añadido para mejor legibilidad */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15); /* Aumentado de 0.1 */
    min-width: 80px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25); /* Aumentado de 0.2 */
    transform: translateY(-3px);
    color: var(--teal-color);
}

.social-link i {
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.social-link span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); /* Añadido para mejor legibilidad */
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
    .social-icons {
        gap: 15px;
    }
    
    .social-link {
        padding: 12px 15px;
        min-width: 80px;
    }
    
    .social-link i {
        font-size: 1.7rem;
    }
    
    .social-link span {
        font-size: 0.8rem;
    }
}

/*Estilos carrusel*/

/* Carrusel de Anuncios - ANCHO COMPLETO */
.announcement-carousel {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 400px;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: none; /* ← AGREGAR ESTA LÍNEA */
    justify-content: center;
    align-items: center;
    color: var(--white);
    position: relative;
}

.carousel-slide.active {
    display: flex; /* ← AGREGAR ESTA LÍNEA */
}

/* Centrar contenido del carrusel */
.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.slide-content h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    text-align: center;
    width: 100%;
}

.slide-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    word-break: break-word;
    
}

.announcement-badge {
    background: #ff6b00;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}


/* Controles del carrusel - CORREGIDOS */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.7); /* Aumentado de 0.5 para mejor contraste */
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-slide h3 {
        font-size: 1.8rem;
    }
    
    .carousel-slide p {
        font-size: 1.1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-slide h3 {
        font-size: 1.5rem;
    }
    
    .carousel-slide p {
        font-size: 1rem;
    }
    
    .announcement-badge {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* ===== NUEVOS ESTILOS PARA LAS MEJORAS DINÁMICAS ===== */

/* Animaciones globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Sección de Estadísticas */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal-color);
    margin-bottom: 10px;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

/* Sección de Noticias */
.news-section {
    padding: 80px 0;
    background: white;
}

.news-slider {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.news-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.news-card {
    min-width: 350px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(29, 26, 115, 0.15);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--teal-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--teal-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.news-slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-nav-btn {
    background: var(--primary-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: var(--teal-color);
    transform: scale(1.1);
}

/* Responsive para nuevas secciones */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card {
        min-width: 300px;
    }
}

/* ===== CORRECCIÓN ESPECÍFICA PARA EL BOTÓN "REGISTRARSE AHORA" ===== */

/* Contenedor de fechas - más espacio alrededor */
.dates-box {
    margin-bottom: 30px;
    padding: 25px;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--teal-color);
}

/* Espaciado interno mejorado */
.dates-box h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dates-box ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.dates-box li {
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Botón con más espacio y mejor diseño */
.dates-box .btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dates-box .btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Layout de la sección de examen */
.exam-info {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.exam-image {
    flex: 1;
}

.exam-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.exam-details {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .exam-info {
        flex-direction: column;
    }
    
    .dates-box {
        padding: 20px;
    }
    
    .dates-box .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* ===== ESTILOS MEJORADOS PARA INSTITUCIONES ===== */

/* Grid de instituciones */
.institution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Tarjetas de instituciones mejoradas */
.institution-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--teal-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.institution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(29, 26, 115, 0.15);
    border-top-color: var(--success-color);
}

/* Logotipos de instituciones */
.institution-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.institution-card:hover .institution-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(67, 217, 202, 0.3);
}

/* Texto de las tarjetas */
.institution-card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.institution-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
    font-family: 'Open Sans', sans-serif;
}

/* Botones mejorados */
.institution-card .btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    padding: 12px 30px;
    border: 2px solid var(--primary-dark);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}

.institution-card .btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 26, 115, 0.3);
}

.institution-card .btn-secondary::after {
    content: '↗';
    font-weight: bold;
    transition: transform 0.3s ease;
}

.institution-card .btn-secondary:hover::after {
    transform: translate(2px, -2px);
}

/* Encabezado de sección mejorado */
.institutions-header {
    text-align: center;
    margin-bottom: 50px;
}

.institutions-header .section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 15px;
    font-family: 'Open Sans', sans-serif;
}

/* Estado de certificación */
.certification-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(67, 217, 202, 0.3);
}

/* Efectos de carga progresiva */
.institution-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.institution-card:nth-child(1) { animation-delay: 0.1s; }
.institution-card:nth-child(2) { animation-delay: 0.2s; }
.institution-card:nth-child(3) { animation-delay: 0.3s; }
.institution-card:nth-child(4) { animation-delay: 0.4s; }
.institution-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .institution-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .institution-card {
        padding: 25px 20px;
    }
    
    .institution-logo {
        width: 100px;
        height: 100px;
    }
    
    .institution-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .institution-grid {
        grid-template-columns: 1fr;
    }
    
    .institution-card {
        padding: 20px 15px;
    }
    
    .institution-logo {
        width: 80px;
        height: 80px;
    }
}

/* Estados vacíos o de carga */
.institution-grid:empty::before {
    content: "Cargando instituciones...";
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
}


/* ESTILOS PARA BOTONES DEL CARRUSEL - SOLO PEGA ESTO */

/* Contenedor de múltiples botones */
.carousel-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
    justify-content: center;
}

/* Estilo principal del botón - UNA SOLA DEFINICIÓN */
.carousel-btn {
    display: inline-block;
    background: #1d1a73; /* Color primario */
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    text-align: center;
    min-width: 140px;
}

/* Variante con color secundario */
.carousel-btn.secondary {
    background: #366b87; /* Color teal */
}

/* Variante con borde (outline) */
.carousel-btn.outline {
    background: transparent;
    border: 2px solid #1d1a73;
    color: #1d1a73;
}

/* Hover para todos los botones */
.carousel-btn:hover {
    background: #366b87;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hover específico para botón outline */
.carousel-btn.outline:hover {
    background: #1d1a73;
    color: white;
    border-color: #1d1a73;
}

/* Estilos  ultimo cambio a la seccion Recertificacion.html 29 de enero 2029*/

/* Estilos para la página de Vigencia de Certificación */
.info-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-card h3 i {
    color: #3498db;
    margin-right: 10px;
}

.highlight-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.highlight-box h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.highlight-box ul, .process-steps ol {
    padding-left: 20px;
}

.highlight-box li, .process-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.process-steps {
    background: #e8f4fc;
    border: 1px solid #d1ecf1;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}

.process-steps h4 {
    color: #0c5460;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.note-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.note-box p {
    color: #856404;
    margin: 0;
}

/* Estilos para los tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 12px 30px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: white;
    color: #3498db;
    border-color: #ddd;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}


/* ===== MENÚ MÓVIL ===== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

@media (max-width: 768px) {
    /* ===== ESTILOS DEL MENÚ MÓVIL ===== */
    .menu-toggle {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 20px;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .nav-menu {
        display: none !important;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.show {
        display: flex !important;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        color: white !important;
        text-decoration: none;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Dropdown en móvil */
    .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding-left: 40px;
    }

    .dropdown-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* ===== TUS ESTILOS RESPONSIVE ORIGINALES ===== */
    .carousel-slides {
        height: 500px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card {
        min-width: 300px;
    }
}