/* ========================================
   INSCRIPCIÓN A EXÁMENES
   Diseño institucional profesional
   ======================================== */

/* Modal de Inscripciones */
.examenes-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.examenes-modal {
    background: white;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid #ccc;
}

.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #666;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 10;
}

.modal-close-btn:hover {
    color: #000;
}

.modal-icon-header {
    background: var(--primary-color);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #4a0101;
}

.modal-icon-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
}

.modal-icon-circle i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.modal-content-body {
    padding: 1.5rem;
}

.modal-content-body h2 {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-fechas {
    margin-bottom: 1.25rem;
}

.modal-fecha-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
    background: #fafafa;
}

.modal-fecha-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 0.125rem;
}

.modal-fecha-item strong {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.8rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-fecha-item p {
    margin: 0;
    color: #333;
    font-size: 0.875rem;
}

.modal-warning {
    background: #fffbf0;
    border: 1px solid #d4a017;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.625rem;
}

.modal-warning i {
    color: #7a6000;
    font-size: 1rem;
}

.modal-warning p {
    margin: 0;
    color: #7a6000;
    font-size: 0.8125rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.btn-large {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
}

.btn-link {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.375rem;
}

.btn-link:hover {
    color: var(--primary-color);
}

/* Sección Principal */
.examenes-section {
    padding: 3.5rem 0;
    background: #f5f5f5;
}

/* Fechas */
.examenes-fechas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem auto;
    max-width: 650px;
}

.fecha-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: white;
    padding: 1rem;
    border: 1px solid #d0d0d0;
}

.fecha-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.125rem;
}

.fecha-item strong {
    display: block;
    color: var(--text-color);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fecha-item p {
    margin: 0;
    color: #333;
    font-size: 0.875rem;
}

/* Proceso */
.examenes-proceso {
    margin-top: 2.5rem;
}

.proceso-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.proceso-header h3 {
    font-size: 1.375rem;
    margin-bottom: 0.625rem;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proceso-header strong {
    color: var(--primary-color);
}

.proceso-warning {
    display: inline-block;
    background: #fffbf0;
    color: #7a6000;
    padding: 0.5rem 1rem;
    border: 1px solid #d4a017;
    font-size: 0.8125rem;
    margin-top: 0.625rem;
}

.proceso-warning i {
    margin-right: 0.375rem;
}

/* Pasos - Diseño Tabla/Lista */
.pasos-container {
    display: grid;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #ccc;
}

.paso-card {
    position: relative;
    background: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #ddd;
}

.paso-card:last-child {
    border-bottom: none;
}

.paso-card.disabled {
    background: #fafafa;
}

.paso-card.completed {
    background: #f0f8f0;
    border-left: 4px solid #28a745;
}

.paso-numero {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Georgia', serif;
}

.paso-card.disabled .paso-numero {
    background: #999;
}

.paso-card.completed .paso-numero {
    background: #28a745;
}

.paso-content {
    margin-left: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.paso-icon {
    display: none; /* Eliminar íconos decorativos */
}

.paso-content h4 {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.paso-content p {
    margin: 0;
    color: #555;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.paso-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #555;
    font-style: italic;
}

.paso-status i.fa-circle {
    color: #d4a017;
    font-size: 0.4375rem;
}

.paso-status i.fa-check-circle {
    color: #28a745;
    font-size: 0.9375rem;
}

.paso-status i.fa-lock {
    color: #999;
    font-size: 0.8125rem;
}

.paso-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    padding: 0.5rem 1.125rem;
}

.paso-checkmark {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    color: #28a745;
    opacity: 0;
    transition: opacity 0.15s;
}

.paso-card.completed .paso-checkmark {
    opacity: 1;
}

/* Progreso */
.progreso-general {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    padding: 1rem;
    border: 1px solid #ccc;
}

.progreso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
}

.progreso-header strong {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-reset {
    background: white;
    border: 1px solid #999;
    color: #666;
    padding: 0.3125rem 0.75rem;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reset:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fafafa;
}

.progreso-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    overflow: hidden;
    border: 1px solid #ccc;
}

.progreso-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.25s;
}

/* Info Boxes */
.examenes-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.info-box {
    display: flex;
    gap: 0.875rem;
    background: white;
    padding: 1rem;
    border: 1px solid #d0d0d0;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.125rem;
}

.info-box h4 {
    margin: 0 0 0.375rem 0;
    font-size: 0.9375rem;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-box p {
    margin: 0;
    color: #555;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.info-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .examenes-modal {
        max-height: 95vh;
    }

    .modal-icon-header {
        padding: 1.25rem;
    }

    .modal-icon-circle {
        width: 50px;
        height: 50px;
    }

    .modal-icon-circle i {
        font-size: 1.5rem;
    }

    .modal-content-body {
        padding: 1.25rem;
    }

    .modal-content-body h2 {
        font-size: 1.125rem;
    }

    .paso-content {
        margin-left: 50px;
    }

    .paso-numero {
        width: 42px;
        font-size: 1.25rem;
    }

    .paso-checkmark {
        top: 1rem;
        right: 0.75rem;
        font-size: 1.5rem;
    }

    .examenes-fechas {
        grid-template-columns: 1fr;
    }

    .progreso-header {
        flex-direction: column;
        gap: 0.625rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .examenes-section {
        padding: 2.5rem 0;
    }

    .paso-card {
        padding: 1rem 1.25rem;
    }

    .paso-content {
        margin-left: 42px;
    }

    .paso-numero {
        width: 36px;
        font-size: 1.125rem;
    }

    .proceso-header h3 {
        font-size: 1.125rem;
    }

    .paso-content h4 {
        font-size: 0.9375rem;
    }
}
