/**
 * Estilos Frontend - FCA Inscripción de Proyectos
 *
 * Estilos específicos para el formulario de inscripción y panel docente,
 * heredando del núcleo fca-posgrado-core.
 */

.fca-student-info {
    background: var(--fca-core-surface-alt);
    border: 1px solid var(--fca-core-border);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--fca-core-text);
}

.fca-step {
    display: none;
}

.fca-step-active {
    display: block;
    animation: fca-core-fade-in 0.3s ease;
}

/* =========================================
   ESTADOS DE TARJETAS DE PROYECTO
   ========================================= */
.fca-proyecto-card {
    border-top: 4px solid var(--fca-core-border);
}

.fca-proyecto-card.status-approved {
    border-top-color: var(--fca-core-success);
}

.fca-proyecto-card.status-pending {
    border-top-color: var(--fca-core-warning);
}

.fca-proyecto-card.status-observed,
.fca-proyecto-card.status-disapproved {
    border-top-color: var(--fca-core-error);
}

.fca-proyecto-card.status-review {
    border-top-color: var(--fca-core-info);
}

/* =========================================
   ELEMENTOS DE ARCHIVO Y NOTAS
   ========================================= */
.fca-file-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--fca-core-primary);
    border-radius: 6px;
    text-decoration: none;
    color: var(--fca-core-primary);
    font-weight: 700;
    font-size: 13px;
    background: transparent;
    transition: all 0.2s ease;
}

.fca-file-card:hover {
    border-color: var(--fca-core-primary) !important;
    background-color: var(--fca-core-primary) !important;
    color: #ffffff !important;
}

.fca-archivos {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.fca-nota-display {
    background: rgba(22, 163, 74, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--fca-core-success);
    font-size: 16px;
    text-align: center;
}

.fca-acceso-denegado {
    text-align: center;
    padding: 60px 20px;
}

.fca-acceso-denegado a {
    display: inline-block;
    margin-top: 16px;
    color: var(--fca-core-accent);
    font-weight: 700;
    text-decoration: none;
}

.fca-instrucciones-caja {
    background: var(--fca-core-surface);
    border: 1px solid var(--fca-core-border);
    border-left: 5px solid var(--fca-core-primary);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fca-instrucciones-caja-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fca-core-primary);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.fca-instrucciones-caja p,
.fca-instrucciones-caja li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fca-core-text);
    margin-bottom: 12px;
}

.fca-instrucciones-caja ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.fca-instrucciones-caja strong.fca-alerta-texto {
    color: var(--fca-core-primary);
}

.fca-submit-wrapper {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--fca-core-border);
}

.fca-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: var(--fca-core-text);
    flex: 1;
    line-height: 1.5;
    text-align: left;
}

.fca-checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--fca-core-primary);
    flex-shrink: 0;
}

.fca-submit-wrapper button.fca-core-btn {
    width: auto;
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
}

.fca-file-name {
    font-size: 0.9em;
    color: var(--fca-core-success);
    margin-top: 8px;
    word-break: break-all;
    font-weight: 500;
}

.fca-success-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.fca-success-icon {
    width: 72px;
    height: 72px;
    background-color: rgba(22, 163, 74, 0.1);
    border: 2px solid var(--fca-core-success);
    color: var(--fca-core-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    animation: fcaScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fcaScaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.fca-panel-layout {
    display: flex;
    gap: 30px;
}

.fca-panel-main {
    flex: 1;
}

.fca-panel-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .fca-panel-layout {
        flex-direction: column;
    }

    .fca-panel-sidebar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fca-submit-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .fca-checkbox-group {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .fca-archivos {
        flex-direction: column;
    }

    .fca-proyecto-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================================
   CARGA DE ARCHIVOS
   ========================================= */
.fca-file-upload-wrapper {
    border: 2px dashed var(--fca-core-border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: var(--fca-core-surface-alt);
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
}

.fca-file-upload-wrapper:hover {
    border-color: var(--fca-core-accent);
    background-color: rgba(166, 137, 74, 0.05);
}

.fca-file-upload-wrapper input[type="file"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
}

.fca-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--fca-core-primary);
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.fca-file-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.fca-file-desc {
    font-size: 13px;
    color: var(--fca-core-text-muted);
    margin-top: 8px;
    display: block;
}

/* =========================================
   OVERRIDE CARD HEADERS (GOLD BORDER)
   ========================================= */
#fca-inscripcion-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0;
    padding: 0;
    height: auto !important;
}

#fca-inscripcion-container .fca-step {
    height: auto !important;
}

#fca-inscripcion-container .fca-core-card {
    height: auto !important;
}

#fca-inscripcion-container .fca-core-card-header {
    border-bottom: 4px solid var(--fca-core-accent);
}

/* ==========================================================================
   ALINEACIÓN DE ALTURA DEL SIDEBAR (MARGIN SUPERIOR)
   ========================================================================== */
.fca-inscripcion-sidebar-card {
    margin-top: 10px;
}


#fca-panel-docente.fca-core-container-wide {
    max-width: 1600px;
}

/* ==========================================================================
   AJUSTES ESTÉTICOS PARA LA FIRMA DIGITAL EN EL MODAL
   ========================================================================== */
#fca-preview-firma-img {
    box-shadow: none !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    background: transparent;
    max-height: 120px;
    object-fit: contain;
}

#fca-modal-firma .fca-core-preview-box {
    background: var(--fca-core-surface-alt);
    border: 2px dashed var(--fca-core-border);
    padding: 16px;
    min-height: 140px;
}