:root {
    --azul: #0b3c6f;
    --azul-oscuro: #072a4f;
    --dorado: #e0a526;
    --fondo: #f4f6fa;
    --texto-suave: #5b6675;
}

body {
    background: var(--fondo);
    color: #1f2a37;
}

/* Campos numéricos sin flechas de incremento (en columnas angostas tapaban el valor) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.barra-principal {
    background: var(--azul);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

/* Pie de página con el mismo azul institucional de la barra superior */
.pie {
    background: var(--azul);
    color: #fff;
}
.pie small {
    color: rgba(255, 255, 255, .8);
}

.barra-principal .nav-link.active {
    color: var(--dorado) !important;
    font-weight: 600;
}

.logo-marca {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dorado);
    color: var(--azul-oscuro);
    font-size: 1.35rem;
}

.portada {
    background: linear-gradient(135deg, var(--azul) 0%, #134f8a 60%, #1c62a8 100%);
    color: #fff;
    padding: 3.5rem 0 4.5rem;
}

.portada .form-control {
    border: none;
    padding: .9rem 1.1rem;
}

.accesos {
    margin-top: -2.5rem;
}

.tarjeta-acceso {
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(11, 60, 111, .10);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

.tarjeta-acceso:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(11, 60, 111, .16);
}

.icono-circulo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(11, 60, 111, .08);
    color: var(--azul);
}

.tarjeta {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(16, 24, 40, .06);
}

.titulo-seccion {
    color: var(--azul);
    font-weight: 700;
}

.encabezado-pagina {
    background: #fff;
    border-bottom: 1px solid #e3e8ef;
    padding: 1.6rem 0;
}

.encabezado-pagina h1 {
    font-size: 1.6rem;
    color: var(--azul);
    font-weight: 700;
    margin: 0;
}

.paso {
    display: flex;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px dashed #dde3ea;
}

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

.paso-numero {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--azul);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.aviso-referencial {
    border-left: 5px solid var(--dorado);
    background: #fff8e6;
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

.opcion-guia {
    display: block;
    width: 100%;
    text-align: left;
    border: 2px solid #dbe3ee;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    background: #fff;
    font-weight: 500;
    transition: border-color .12s ease, background .12s ease;
}

.opcion-guia:hover,
.opcion-guia:focus {
    border-color: var(--azul);
    background: #eef4fb;
}

.badge-cumple {
    background: #198754;
}

.badge-observado {
    background: #dc3545;
}

.badge-no_verificable {
    background: #6c757d;
}

.estado-general {
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    color: #fff;
}

.estado-CUMPLE {
    background: #198754;
}

.estado-OBSERVADO {
    background: #c0392b;
}

.estado-NO_VERIFICABLE {
    background: #56606b;
}

.sustento {
    font-size: .82rem;
    color: var(--texto-suave);
}

main {
       padding-bottom: 3rem;
   }
}

.panel-lateral .list-group-item.active {
    background: var(--azul);
    border-color: var(--azul);
}

.cifra {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul);
}

.tabla-compacta td,
.tabla-compacta th {
    vertical-align: middle;
}

code.regex {
    font-size: .78rem;
    word-break: break-all;
}

@media print {
    .barra-principal, .pie, .no-imprimir {
        display: none !important;
    }

    body {
        background: #fff;
    }
}

/* ---------- Plano del campus (RF-09) ---------- */
.plano-campus {
    height: 520px;
    border-radius: 12px;
    background: #eef2e6;
    z-index: 0;
}

@media (max-width: 576px) {
    .plano-campus {
        height: 380px;
    }
}

.marcador-secuencia span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.popup-punto {
    min-width: 200px;
}

.canal-item {
    word-break: break-word;
}

.estado-flujo .badge {
    font-size: .8rem;
}

/* Menú principal: con siete opciones se evita que los textos se partan en dos líneas */
@media (min-width: 1200px) {
    .barra-principal .nav-link {
        white-space: nowrap;
        font-size: .92rem;
        padding-left: .45rem !important;
        padding-right: .45rem !important;
    }
}

@media (min-width: 1200px) {
    .barra-principal .navbar-nav > .nav-item > .nav-link > .bi {
        display: none;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .barra-principal .navbar-brand br,
    .barra-principal .navbar-brand small {
        display: none;
    }
}

/* Línea de tiempo del seguimiento de expediente (RF-10) */
.linea-tiempo {
    list-style: none;
    margin: 0;
    padding: 0;
}
.linea-tiempo li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .55rem 0;
    border-top: 1px solid #e9ecef;
}
.linea-tiempo .punto {
    width: .85rem;
    height: .85rem;
    border-radius: 50%;
    margin-top: .3rem;
    flex-shrink: 0;
}
.linea-tiempo li.actual strong {
    color: var(--azul);
}
.linea-tiempo li.pendiente .punto {
    border: 2px solid #ced4da;
    background: transparent;
}
