﻿/* ============================================================
   BecasSocioeconomicas — Módulo Becas
   Archivo: wwwroot/css/becas.css
   ============================================================ */

/* ── Reset base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f0f2f5;
    font-family: 'Nunito', sans-serif;
}

/* ── Contenedor principal ── */
.u-wrap {
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Card exterior ── */
.card-outer {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

/* ── Header ── */
.u-header {
    background: #1565C0;
    padding: 1.4rem 2rem;
}

.header-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.header-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    margin-top: 3px;
}

/* ── Cuerpo ── */
.u-body {
    padding: 1.75rem 2rem 2rem;
}

/* ── Bloque de datos del alumno ── */
.alumno-info {
    background: #F5F7FA;
    border: 1px solid #ECEFF1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alumno-exp {
    font-size: 12px;
    color: #90A4AE;
}

    .alumno-exp strong {
        color: #1565C0;
    }

.alumno-nombre {
    font-size: 14px;
    font-weight: 700;
    color: #1A237E;
}

/* ── Instrucción ── */
.u-instruction {
    font-size: 14px;
    color: #455A64;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

    .u-instruction strong {
        color: #1565C0;
    }

/* ── Grid de tarjetas ── */
.beca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Tarjeta de beca ── */
.beca-card {
    background: #fff;
    border: 1.5px solid #CFD8DC;
    border-radius: 10px;
    padding: 1.25rem 1rem 1.1rem;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(.34, 1.56, .64, 1), border-color 0.16s, background 0.16s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    user-select: none;
}

    .beca-card:hover {
        transform: scale(1.05);
        border-color: #1565C0;
    }

    .beca-card.selected {
        border: 2px solid #1565C0;
        background: #E3F2FD;
    }

/* ── Indicador checkbox ── */
.chk-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1.5px solid #B0BEC5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.16s, border-color 0.16s;
}

.beca-card.selected .chk-dot {
    background: #1565C0;
    border-color: #1565C0;
}

.chk-dot svg {
    display: none;
}

.beca-card.selected .chk-dot svg {
    display: block;
}

/* ── Caja de ícono ── */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #E8EEF7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.16s;
}

.beca-card.selected .icon-box {
    background: #BBDEFB;
}

/* ── Textos de la tarjeta ── */
.beca-name {
    font-size: 16px;
    font-weight: 700;
    color: #1A237E;
    line-height: 1.3;
}

.beca-desc {
    font-size: 11px;
    color: #78909C;
    line-height: 1.5;
}

/* ── Mensaje de error ── */
.error-msg {
    color: #E53935;
    font-size: 12px;
    margin-top: 0.75rem;
}

/* ── Divisor ── */
.divider {
    border: none;
    border-top: 1px solid #ECEFF1;
    margin: 1.5rem 0;
}

/* ── Botón continuar ── */
.btn-continuar {
    width: 100%;
    padding: 11px;
    background: #1565C0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    font-family: 'Nunito', sans-serif;
    transition: background 0.15s, transform 0.12s;
}

    .btn-continuar:hover:not(:disabled) {
        background: #0D47A1;
        transform: translateY(-1px);
    }

    .btn-continuar:disabled {
        background: #CFD8DC;
        color: #90A4AE;
        cursor: default;
        transform: none;
    }

/* ── Footer ── */
.u-footer {
    background: #F5F7FA;
    border-top: 1px solid #ECEFF1;
    padding: 0.65rem 2rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F9A825;
    flex-shrink: 0;
}

.footer-txt {
    font-size: 11px;
    color: #90A4AE;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .beca-grid {
        grid-template-columns: 1fr;
    }

    .u-header {
        padding: 1.1rem 1.25rem;
    }

    .u-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .u-footer {
        padding: 0.65rem 1.25rem;
    }
}

/* ── Sin becas disponibles ── */
.sin-becas {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2rem;
    background: #F5F7FA;
    border: 1px dashed #CFD8DC;
    border-radius: 10px;
    color: #90A4AE;
    font-size: 13px;
    text-align: center;
}

/* ── Aviso de solicitud en borrador ── */
.borrador-aviso {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 2rem 1.5rem;
    background: #FFFDE7;
    border: 1.5px solid #F9A825;
    border-radius: 10px;
    text-align: center;
}

.borrador-titulo {
    font-size: 15px;
    font-weight: 700;
    color: #1A237E;
}

.borrador-fecha {
    font-size: 13px;
    color: #455A64;
}

    .borrador-fecha strong {
        color: #1565C0;
    }

/* ── Cuestionario ── */
.cuestionario-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Nunito', sans-serif;
}

/* Título de cada pregunta */
.preg-titulo {
    background: #E8F5E9;
    border-left: 4px solid #1565C0;
    padding: 0.6rem 1rem;
    font-size: 13px;
    font-weight: 600;
    color: #1A237E;
    margin-bottom: 0.75rem;
    border-radius: 0 6px 6px 0;
}

/* Contenedor de cada pregunta */
.preg-bloque {
    margin-bottom: 1.25rem;
}

/* Opción de radio button */
.preg-opcion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #455A64;
    transition: background 0.14s;
}

    .preg-opcion:hover {
        background: #E3F2FD;
    }

    /* Radio button estilizado */
    .preg-opcion input[type="radio"] {
        accent-color: #1565C0;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

/* Campo de texto libre */
.preg-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #CFD8DC;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    color: #455A64;
    transition: border-color 0.16s;
    box-sizing: border-box;
}

    .preg-input:focus {
        outline: none;
        border-color: #1565C0;
    }

/* Textarea para exposición de motivos */
.preg-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #CFD8DC;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    color: #455A64;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.16s;
    box-sizing: border-box;
}

    .preg-textarea:focus {
        outline: none;
        border-color: #1565C0;
    }

/* Select estilizado */
.preg-select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #CFD8DC;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    color: #455A64;
    background: #fff;
    transition: border-color 0.16s;
    box-sizing: border-box;
}

    .preg-select:focus {
        outline: none;
        border-color: #1565C0;
    }

/* Sección de ingresos */
.ingresos-header {
    background: #1565C0;
    color: #fff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Fila de monto e ingreso calculado */
.ingresos-fila {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.ingresos-campo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

    .ingresos-campo label {
        font-size: 12px;
        color: #90A4AE;
        font-weight: 600;
    }

/* Input numérico de monto */
.preg-input-monto {
    padding: 8px 12px;
    border: 1.5px solid #CFD8DC;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    color: #455A64;
    width: 100%;
    box-sizing: border-box;
}

    .preg-input-monto:focus {
        outline: none;
        border-color: #1565C0;
    }

/* Ingreso mensual calculado (solo lectura) */
.ingreso-calculado {
    padding: 8px 12px;
    border: 1.5px solid #ECEFF1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1565C0;
    background: #E3F2FD;
    width: 100%;
    box-sizing: border-box;
}

/* Área de subida de archivo */
.archivo-area {
    border: 2px dashed #CFD8DC;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.16s, background 0.16s;
    margin-top: 0.5rem;
}

    .archivo-area:hover {
        border-color: #1565C0;
        background: #E3F2FD;
    }

    .archivo-area i {
        color: #90A4AE;
        margin-bottom: 8px;
    }

.archivo-nombre {
    font-size: 12px;
    color: #1565C0;
    font-weight: 600;
    margin-top: 6px;
}

/* Declaración bajo protesta */
.declaracion-bloque {
    background: #F5F7FA;
    border: 1px solid #ECEFF1;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .declaracion-bloque input[type="checkbox"] {
        accent-color: #1565C0;
        width: 16px;
        height: 16px;
        margin-top: 2px;
        flex-shrink: 0;
        cursor: pointer;
    }

    .declaracion-bloque label {
        font-size: 13px;
        color: #455A64;
        line-height: 1.6;
        cursor: pointer;
    }

/* Botones del cuestionario */
.botones-cuestionario {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-guardar {
    flex: 1;
    padding: 11px;
    background: #fff;
    color: #1565C0;
    border: 2px solid #1565C0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background 0.15s, color 0.15s;
}

    .btn-guardar:hover {
        background: #E3F2FD;
    }

.btn-finalizar {
    flex: 1;
    padding: 11px;
    background: #1565C0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background 0.15s, transform 0.12s;
}

    .btn-finalizar:hover {
        background: #0D47A1;
        transform: translateY(-1px);
    }

/* Contador de caracteres para exposición de motivos */
.char-contador {
    font-size: 11px;
    color: #90A4AE;
    text-align: right;
    margin-top: 4px;
}

    .char-contador.error {
        color: #E53935;
    }

/* Error de validación por pregunta */
.preg-error {
    font-size: 11px;
    color: #E53935;
    margin-top: 4px;
    display: none;
}

    .preg-error.visible {
        display: block;
    }


/* ── Acordeón de datos personales ── */
.acordeon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F5F7FA;
    border: 1.5px solid #CFD8DC;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: background 0.16s, border-color 0.16s;
    user-select: none;
}

    .acordeon-header:hover {
        background: #E3F2FD;
        border-color: #1565C0;
    }

.acordeon-titulo {
    font-size: 13px;
    font-weight: 700;
    color: #1A237E;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acordeon-icono {
    font-size: 12px;
    color: #90A4AE;
    transition: transform 0.2s;
}

    .acordeon-icono.abierto {
        transform: rotate(180deg);
    }

.acordeon-cuerpo {
    display: none;
    background: #FAFAFA;
    border: 1.5px solid #ECEFF1;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

    .acordeon-cuerpo.visible {
        display: block;
    }

/* Sección dentro del acordeón */
.datos-seccion-titulo {
    background: #1565C0;
    color: #fff;
    text-align: center;
    padding: 0.4rem 1rem;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

/* Fila de campos dentro del acordeón */
.datos-fila {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.datos-fila-1 {
    grid-template-columns: 1fr;
}

.datos-fila-2 {
    grid-template-columns: 1fr 1fr;
}

.datos-fila-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Campo individual */
.datos-campo {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .datos-campo label {
        font-size: 11px;
        color: #90A4AE;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

/* Campo de solo lectura */
.datos-readonly {
    padding: 7px 10px;
    background: #F5F7FA;
    border: 1px solid #ECEFF1;
    border-radius: 6px;
    font-size: 13px;
    color: #455A64;
    font-family: 'Nunito', sans-serif;
}

/* Campo editable (amarillo) */
.datos-editable {
    padding: 7px 10px;
    background: #FFFDE7;
    border: 1.5px solid #F9A825;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    font-family: 'Nunito', sans-serif;
    transition: border-color 0.16s;
    width: 100%;
    box-sizing: border-box;
}

    .datos-editable:focus {
        outline: none;
        border-color: #F57F17;
        background: #FFF9C4;
    }

/* Nota de campos editables */
.nota-editables {
    font-size: 11px;
    color: #F57F17;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.75rem;
}

/* Responsive acordeón */
@media (max-width: 480px) {
    .datos-fila-2 {
        grid-template-columns: 1fr;
    }

    .datos-fila-3 {
        grid-template-columns: 1fr;
    }
}

/* ── Bloque de instrucciones ── */
.instrucciones-bloque {
    background: #E3F2FD;
    border: 1px solid #90CAF9;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.instrucciones-titulo {
    font-size: 13px;
    font-weight: 700;
    color: #1565C0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.6rem;
}

.instrucciones-lista {
    padding-left: 1.25rem;
    margin: 0;
}

    .instrucciones-lista li {
        font-size: 12px;
        color: #455A64;
        line-height: 1.7;
    }

        .instrucciones-lista li strong {
            color: #1565C0;
        }


/* ── Botón descargar comprobante previo ── */
.btn-descargar-archivo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: #1A237E;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    transition: background 0.15s;
    margin-bottom: 10px;
    box-sizing: border-box;
}

    .btn-descargar-archivo:hover {
        background: #0D47A1;
        color: #fff;
    }

/* ── Solicitud enviada ── */
.enviada-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 2rem 1.5rem;
    background: #F5F7FA;
    border: 1.5px solid #ECEFF1;
    border-radius: 10px;
    text-align: center;
}

.enviada-titulo {
    font-size: 18px;
    font-weight: 700;
    color: #1A237E;
}

.enviada-fecha {
    font-size: 13px;
    color: #455A64;
    line-height: 1.6;
}

    .enviada-fecha strong {
        color: #1565C0;
    }

.enviada-becas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.enviada-becas-label {
    font-size: 12px;
    color: #90A4AE;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.enviada-beca-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 700;
}

.convocatoria-titulo {
    text-align: center;
    padding: 8px 16px;
    background-color: #E3F2FD; /* azul muy claro, institucional */
    border-bottom: 1px solid #BBDEFB;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1565C0;
    letter-spacing: 0.02em;
}


/* ── Link de términos y condiciones ── */
.footer-link {
    font-size: 11px;
    color: #1565C0;
    font-weight: 600;
    text-decoration: underline;
    margin-left: auto;
}

    .footer-link:hover {
        color: #0D47A1;
    }

/* ── Confirmación — beca tag con folio ── */
.confirmacion-beca-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #E3F2FD;
    border: 1px solid #90CAF9;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1565C0;
}

.confirmacion-folio {
    font-size: 12px;
    color: #455A64;
    border-left: 1px solid #90CAF9;
    padding-left: 10px;
    margin-left: 4px;
}

    .confirmacion-folio strong {
        color: #1A237E;
    }

/* ── Ciclo de convocatoria en cuestionario ── */
.convocatoria-ciclo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #455A64;
    background: #E3F2FD;
    border: 1px solid #90CAF9;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 1rem;
    font-weight: 500;
}

    .convocatoria-ciclo strong {
        color: #1565C0;
    }

.beca-renovacion {
    display: inline-block;
    background: #F9A825;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}