/* 1. IMPORTS (Deben ir PRIMERO que todo) */
@import 'components/header.css';
@import 'components/hero.css';
@import 'components/modalidades.css';
@import "components/carreras.css";
@import "components/general.css";
/* @import "components/footer.css"; <-- Eliminar si no existe o está vacío */

/* 2. VARIABLES GLOBALES */
:root {
    /* AZULES UNAJ */
    --unaj-950: #002068;
    --unaj-900: #0018a0;
    --unaj-800: #0047CC;
    --unaj-700: #1430ac;
    --unaj-600: #2563EB;
    --unaj-500: #3B82F6;
    --unaj-400: #60A5FA;
    --unaj-300: #93C5FD;
    --unaj-200: #BFDBFE;
    --unaj-100: #DBEAFE;
    --unaj-50: #e0eeff;


    /* NARANJAS */
    --orange-700: #EA580C;
    --orange-600: #F97316;
    --orange-500: #FB923C;
    --orange-400: #FDBA74;
    --orange-300: #FED7AA;
    --orange-200: #FFEDD5;
    --orange-100: #FFF7ED;

    /* NEUTROS */
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;

    /* EXTRAS */
    --green: #10B981;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10B981;
    --green-100: #D1FAE5;
    --red: #EF4444;
    --yellow-500: #F59E0B;
    --yellow-50: #FFFBEB;

    /* UI */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.2s ease-in-out;
    --transition-slow: all 0.3s ease-in-out;

    /* Compatibilidad */
    --unaj-blue: var(--unaj-950);
    --unaj-orange: var(--orange-600);
    /* ALTURA DEL HEADER (para compensar en hero y scroll) */
    --header-height: 80px;
    --topbar-height: 40px;  /* si usas topbar */
}

/* 3. RESET Y BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.6;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* CORRECCIÓN DE ICONOS (IMPORTANTE) */
img, svg {
    display: block;
    max-width: 100%;
}

svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

svg.fill-current {
    fill: currentColor;
}

/* 4. CLASES UTILITARIAS */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.section {
    padding: 4rem 0;
}

.section-soft-bg {
    background-color: var(--gray-200);
}

.section-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 5. BOTONES GLOBALES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-slow);
    font-size: 1rem;
}

.btn-primary {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--unaj-900),
        var(--unaj-700)
    );
    color: #fff;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 14px 32px rgba(0, 32, 104, 0.45);
    transition: all 0.35s ease;
    overflow: hidden;
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 -2px 0 var(--unaj-900);
    opacity: 0.65;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        var(--unaj-800),
        var(--unaj-600)
    );
    box-shadow:
        0 20px 45px rgba(0, 32, 104, 0.55);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--unaj-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background-color: var(--gray-100);
}

/* 6. POPUPS */
#welcome-popup-container, #popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#welcome-popup-container.active, #popup-container.active {
    pointer-events: auto;
    opacity: 1;
}

.welcome-popup-overlay, .popup-overlay {
    position: absolute;
    inset: 0;

    -webkit-backdrop-filter: blur(8px); /* Safari */
    backdrop-filter: blur(8px); 
    border-top: 2px;
            /* Otros navegadores */
}

.welcome-popup-modal, .popup-modal {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.3s;
}

#welcome-popup-container.active .welcome-popup-modal, #popup-container.active .popup-modal {
    transform: scale(1);
}

.welcome-popup-close-btn, .popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos específicos popup bienvenida */
.welcome-popup-modal {
    width: 90%;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.welcome-popup-close-btn {
    background: var(--red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    border: none;
}

.welcome-popup-content {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.welcome-popup-image-full {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Estilos popup aviso */
.popup-modal {
    padding: 2.5rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--unaj-100);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--unaj-700);
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 7. ESTILOS LEGACY (Convocatoria, etc.) */
.convocatoria-hero {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border-top: 5px solid var(--unaj-700);
    text-align: center;
    margin-bottom: 1rem;
}

.documentos-grid, .areas-cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.documento-card, .area-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    text-align: center;
}

/* Estilo para botón grande de convocatoria */
.convocatoria-cta-btn {
    font-size: 1.2rem !important;
    padding: 1rem 3rem !important;
    background: var(--unaj-700);
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 12px;
}

/* Section ////////////////////////////////////////////////////////Comunicado */
/* .section-comunicado {
    background-color: #f7f9fa;
    
    border-top: 4px solid var(--unaj-900);
    padding: 2rem 0;
} */

.section-divider {
    width: 800px;
    height: 4px;
    margin: 16px auto 32px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #0d2ea5,
        #4f8cff,
        #0d2ea5
    );
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    animation: shine 2.5s infinite;
}

@keyframes shine {
    0% { left: -40%; }
    100% { left: 120%; }
}



.comunicado-content {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--unaj-600);
}

.comunicado-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--unaj-900);
}

/* ═══════════════════════════════════════════════════════════
   6. COMUNICADO (SECCIÓN DE AVISO HORIZONTAL) - CORREGIDO
   ═══════════════════════════════════════════════════════════ */
   .section-comunicado {
 /*  background-color: #d1fae5;  Verde claro visible (var(--green-100)) */
    border-bottom: 4px solid #0059ff3d;
    
    padding: 3rem 0; /* Espacio vertical */
    margin-top: -10px; /* Pegarlo un poco al Hero si es necesario */
    position: relative;
    z-index: 5;
}

.comunicado-content {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border-top: 6px solid var(--unaj-700);
    /* Animación de entrada */
    animation: fade-in 0.8s ease-out;
}

.comunicado-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background-color: var(--unaj-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--unaj-700);
}

.comunicado-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--unaj-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.comunicado-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .evaluacion-card {
        flex-direction: column;
        text-align: center;
    }
}


    /* ═══════════════════════════════════════════════════════════
   7. ESTILOS DE CONVOCATORIA DOCENTE (CORREGIDO AL 100%)
   ═══════════════════════════════════════════════════════════ */

/* --- HERO DE CONVOCATORIA --- */
.convocatoria-hero {
    
    background-color: var(--white);

    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border-top: 6px solid var(--unaj-700);
    text-align: center;
    max-width: 900px;
    margin: 4rem auto 0rem auto;
}

.convocatoria-hero .section-title {
    font-size: 2.5rem;
    color: var(--unaj-900);
    margin-bottom: 1rem;
}

.convocatoria-hero .nota-box {
    background-color: var(--orange-50);
    border-left: 4px solid var(--orange-500);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: left;
    color: var(--orange-700);
    font-weight: 500;
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* --- GRILLAS DE ÁREAS Y DOCUMENTOS --- */
.areas-cursos-grid, 
.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* --- TARJETAS DE ÁREAS --- */
.area-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--orange-500);
    transition: transform 0.2s;
}
.area-card:hover { transform: translateY(-5px); }

.area-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 0.8rem;
}
.area-title svg { color: var(--orange-500); }

.curso-list { list-style: none; padding: 0; }
.curso-list li {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.5rem; color: var(--gray-700); font-size: 1rem;
}
.curso-list li svg { color: var(--green-500); width: 18px; }

/* --- TARJETAS DE DOCUMENTOS --- */
.documento-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--gray-100);
    display: flex; flex-direction: column; justify-content: space-between;
    transition: all 0.3s;
}
.documento-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--unaj-200);
}

.documento-card-icon {
    width: 64px; height: 64px;
    background: var(--unaj-50); color: var(--unaj-700);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.documento-card-title {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem;
    min-height: 3rem; /* Alinea los botones */
}

/* --- RESULTADOS DE EVALUACIÓN (Lista vertical) --- */
.evaluacion-grid {
    display: flex; flex-direction: column; gap: 1rem;
    max-width: 800px; margin: 2rem auto 0;
}

.evaluacion-card {
    background: var(--white);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 2rem;
    border-left: 5px solid var(--gray-300); /* Default pendiente */
    transition: transform 0.2s;
}
.evaluacion-card:hover { transform: translateX(5px); }

.evaluacion-content { flex-grow: 1; text-align: left; }
.evaluacion-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }

/* Estados dinámicos (Colores) */
.status-published { color: var(--green-600); font-weight: 600; font-size: 0.9rem; }
.status-pending { color: var(--orange-600); font-weight: 600; font-size: 0.9rem; }

/* Botones dentro de evaluación */
.evaluacion-card .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; white-space: nowrap; }
.evaluacion-card .btn-secondary { color: var(--gray-500); border-color: var(--gray-300); }

/* --- CTA FINAL (Inscripción) --- */
.inscripcion-cta {
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}
.inscripcion-cta .section-title { color: white; margin-bottom: 0.5rem; }
.inscripcion-cta .section-subtitle { color: var(--green-100); font-size: 1.2rem; margin-bottom: 2rem; }

.convocatoria-cta-btn {
    background: var(--white);
    color: var(--green-700);
    font-size: 1.3rem !important;
    padding: 1rem 3rem !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.convocatoria-cta-btn:hover {
    background: var(--green-100);
    transform: scale(1.05);
}

/* Responsive Convocatoria */
@media (max-width: 768px) {
    .evaluacion-card { flex-direction: column; text-align: center; gap: 1rem; }
    .evaluacion-content { text-align: center; }
    .area-card { padding: 1.5rem; }
}


.simulacro-card {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    border-top: 4px solid var(--unaj-800);
}
.score-box {
    background-color: var(--unaj-50);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border-left: 5px solid var(--unaj-700);
}

/* Estilos de la tabla de resultados */
.results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 1rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.results-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.results-table tr td:first-child {
    font-weight: 700;
    color: var(--gray-800);
    width: 120px;
}

/* Estilos del puntaje */


.score-box p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--unaj-900);
    margin: 0;
}

.score-box h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--unaj-700);
    margin: 0;
}

/* Estilos de los botones de resultados */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.results-actions .btn {
    background-color: var(--gray-200);
    /* color: var(--gray-100); */
    border: none;
}

.results-actions .btn-secondary {
    /* CORREGIDO: Se mantiene una sola definición para btn-secondary de resultados */
    background-color: var(--unaj-700);
    color: var(--white);
}




/* /////////////////////////////77 */

/* NUEVA SECCIÓN SPLIT (COMUNICADO) */
.split-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

/* Lado Izquierdo (Tarjeta) */
.split-card-content {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.split-badge {
    display: inline-block;
    background: var(--unaj-50);
    color: var(--unaj-blue);
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.split-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.split-desc {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Lado Derecho (Imagen) */
.split-image-wrapper {
    width: 80%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.split-image {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    /* Efecto flotante suave */
    animation: float 6s ease-in-out infinite;
}

.blob-decoration {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--unaj-100) 0%, transparent 70%);
    z-index: 1;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* RESPONSIV////////////////////// estadosssssssssssssssT */
/* Estado: En Proceso (Contenedor principal) */
.timeline-item.en-proceso {
    border-left: 4px solid #10B981; /* Borde Verde */
    background-color: #f0fdf4; /* Fondo muy suave */
}

.timeline-item.en-proceso .timeline-icon {
    color: #10B981;
    background-color: #d1fae5;
}

/* Etiqueta (Badge) En Proceso */
.timeline-status.en-proceso {
    text-align: center;
    background-color: #10B981;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;

    animation: pulse 2s infinite; /* Opcional: animación de latido */
}

/* Animación opcional para resaltar */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}