/* ============================================================
   INSTITUTO AMERICAN JILIU · CAMPUS VIRTUAL — Hoja de estilos
   ============================================================ */
:root {
    --primario: #4f46e5;
    --primario-osc: #4338ca;
    --violeta: #7c3aed;
    --cielo: #0ea5e9;
    --naranja: #f97316;
    --verde: #16a34a;
    --rojo: #dc2626;
    --ambar: #d97706;
    --celeste: #06b6d4;
    --rosa: #db2777;
    --fondo: #eef2f9;
    --superficie: #ffffff;
    --sombra: 0 10px 30px rgba(79, 70, 229, .10);
    --sombra-suave: 0 4px 14px rgba(15, 23, 42, .06);
    --radio: 16px;
    --texto: #1e293b;
    --texto-suave: #64748b;
    --borde: #e2e8f0;
    --gris: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", "Roboto", system-ui, -apple-system, Arial, sans-serif;
    color: var(--texto);
    background: var(--fondo);
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ------------------------ TABLAS GLOBALES ------------------------ */
.table-wrap { overflow-x: auto; }
table.tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.tabla th {
    text-align: left;
    padding: 12px 14px;
    background: #f8fafc;
    color: var(--texto-suave);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--borde);
    white-space: nowrap;
}
.tabla td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--borde);
    vertical-align: middle;
}
.tabla tbody tr { transition: background .15s; }
.tabla tbody tr:hover { background: #f8faff; }
.tabla .titulo-celda {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.tabla .titulo-celda small { display: block; font-weight: 400; color: var(--texto-suave); }

/* ------------------------ INSIGNIAS Y CHIPS ------------------------ */
.badge, .chip {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.chip-rol { padding: 5px 14px; }
.chip-admin { background: #ede9fe; color: #6d28d9; }
.chip-director { background: #fef3c7; color: #92400e; }
.chip-profesor { background: #dcfce7; color: #15803d; }
.chip-estudiante { background: #e0f2fe; color: #0369a1; }

.badge-rojo { background: #fee2e2; color: #b91c1c; }
.badge-azul { background: #dbeafe; color: #1d4ed8; }
.badge-verde { background: #dcfce7; color: #15803d; }
.badge-naranja { background: #ffedd5; color: #c2410c; }
.badge-morado { background: #f3e8ff; color: #7e22ce; }
.badge-celeste { background: #cffafe; color: #0e7490; }
.badge-rosa { background: #fce7f3; color: #be185d; }
.badge-ambar { background: #fef3c7; color: #b45309; }
.badge-gris { background: #f1f5f9; color: #475569; }

/* ------------------------ PANEL: SIDEBAR ------------------------ */
.panel { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 264px;
    background: linear-gradient(180deg, #101430 0%, #141a3d 60%, #1b2147 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform .3s ease;
}
.sidebar-barra {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--naranja), var(--rosa), var(--violeta));
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.logo-textos { line-height: 1.25; }
.logo-textos strong {
    display: block;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
}
.logo-textos span { font-size: .72rem; color: #94a3b8; }

.sidebar-menu { flex: 1; padding: 14px 12px; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.menu-grupo {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    padding: 12px 10px 6px;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: #a5b4cb;
    font-weight: 500;
    font-size: .92rem;
    transition: .18s;
}
.menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu-item.activo {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 6px 16px rgba(99,102,241,.35);
}
.menu-icono { display: flex; align-items: center; }
.menu-item.cerrar { margin-top: 6px; color: #fca5a5; }
.menu-item.cerrar:hover { background: rgba(220,38,38,.15); color: #fecaca; }

.sidebar-pie { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.tarjeta-docente {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    margin-bottom: 8px;
}
.tarjeta-docente strong { display: block; color: #fff; font-size: .88rem; }
.tarjeta-docente span { color: #94a3b8; font-size: .74rem; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--naranja), var(--rosa));
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

/* ------------------------ PANEL: CONTENIDO ------------------------ */
.contenido {
    flex: 1;
    margin-left: 264px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: var(--superficie);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--borde);
    position: sticky;
    top: 0;
    z-index: 40;
}
.titulo-pagina { font-size: 1.25rem; font-weight: 700; }
.topbar-derecha { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.usuario-top { display: flex; align-items: center; gap: 10px; }
.avatar-top { width: 36px; height: 36px; font-size: .8rem; }
.usuario-top-nombre { font-weight: 600; font-size: .9rem; color: var(--texto); }
.btn-mostrar-ocultar {
    display: none;
    background: var(--fondo);
    border: 1px solid var(--borde);
    border-radius: 10px;
    padding: 7px 10px;
    color: var(--texto);
}

.contenido-main { flex: 1; padding: 26px 28px 10px; }
.pie-pagina {
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .8rem;
    color: var(--texto-suave);
    flex-wrap: wrap;
}

/* ------------------------ TARJETAS ------------------------ */
.tarjeta {
    background: var(--superficie);
    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
    padding: 22px;
    border: 1px solid rgba(226,232,240,.6);
}
.tarjeta-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.enlace-ver { font-size: .82rem; color: var(--primario); font-weight: 600; white-space: nowrap; }

.grid { display: grid; gap: 18px; }
.grid-cards { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-principal { grid-template-columns: 2fr 1fr; }

/* Tarjetas de estadística (dashboard) */
.card-est {
    background: var(--superficie);
    border-radius: var(--radio);
    padding: 20px;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(226,232,240,.6);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform .18s, box-shadow .18s;
}
.card-est:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card-est-icono {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.card-est strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.card-est span { color: var(--texto-suave); font-size: .85rem; }
.icono-violeta { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.icono-azul   { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.icono-verde  { background: linear-gradient(135deg, #16a34a, #4ade80); }
.icono-naranja{ background: linear-gradient(135deg, #f97316, #fb923c); }
.icono-rosa   { background: linear-gradient(135deg, #db2777, #f472b6); }
.icono-cielo  { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

/* ------------------------ FORMULARIOS ------------------------ */
.formulario { display: grid; gap: 16px; }
.grupo-campo { display: grid; gap: 6px; }
.grupo-campo label { font-weight: 600; font-size: .85rem; }
.grupo-campo .requerido { color: var(--rojo); }
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="date"], input[type="datetime-local"],
select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--borde);
    border-radius: 12px;
    font-size: .92rem;
    font-family: inherit;
    color: var(--texto);
    background: #fff;
    transition: border .15s, box-shadow .15s;
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primario);
    box-shadow: 0 0 0 3px rgba(79,70,229,.14);
}
textarea { resize: vertical; min-height: 90px; }
input[type="file"] {
    padding: 10px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    width: 100%;
    font-size: .9rem;
}
.claves-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fila-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fila-campos-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ------------------------ BOTONES ------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 13px;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, box-shadow .22s ease, filter .22s ease, background .22s ease, color .22s ease;
    will-change: transform;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.28), transparent 55%);
    opacity: .45;
    pointer-events: none;
    transition: opacity .22s ease;
}
.btn:hover::after { opacity: .75; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); }
.btn:focus-visible { outline: 3px solid rgba(79,70,229,.4); outline-offset: 2px; }

.btn-primario {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 55%, #9333ea 100%);
    background-size: 160% 160%;
    color: #fff;
    box-shadow: 0 8px 20px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primario:hover {
    background-position: 100% 100%;
    box-shadow: 0 12px 26px rgba(124,58,237,.45), inset 0 1px 0 rgba(255,255,255,.22);
    filter: brightness(1.04);
}
.btn-secundario { background: #eef2ff; color: var(--primario); border: 1px solid #e0e7ff; }
.btn-secundario:hover { background: #e0e7ff; box-shadow: 0 6px 14px rgba(79,70,229,.18); }
.btn-verde {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    background-size: 160% 160%;
    color: #fff;
    box-shadow: 0 8px 18px rgba(22,163,74,.30), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-verde:hover { background-position: 100% 100%; box-shadow: 0 12px 24px rgba(22,163,74,.4); }
.btn-naranja {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    background-size: 160% 160%;
    color: #fff;
    box-shadow: 0 8px 18px rgba(249,115,22,.30), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-naranja:hover { background-position: 100% 100%; box-shadow: 0 12px 24px rgba(249,115,22,.42); }
.btn-rojo { background: linear-gradient(135deg, #fecaca, #fee2e2); color: #b91c1c; border: 1px solid #fecaca; }
.btn-rojo:hover { background: linear-gradient(135deg, #fca5a5, #fecaca); box-shadow: 0 6px 14px rgba(220,38,38,.18); }
.btn-texto { background: transparent; color: var(--primario); }
.btn-texto:hover { background: #eef2ff; box-shadow: none; }
.btn-bloque { width: 100%; }
.btn-pequeno { padding: 8px 14px; font-size: .82rem; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.acciones-derecha { justify-content: flex-end; }

/* ------------------------ ALERTAS / FLASH ------------------------ */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: .92rem;
    animation: aparecer .3s ease;
}
.alert-exito { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-advertencia { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.btn-cerrar-alert { background: none; border: none; font-size: 1.2rem; color: inherit; line-height: 1; }
@keyframes aparecer { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ------------------------ ARCHIVOS / MATERIALES ------------------------ */
.lista-archivos { display: grid; gap: 14px; }
.item-archivo {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--superficie);
    border: 1px solid rgba(226,232,240,.6);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--sombra-suave);
    transition: transform .15s, box-shadow .15s;
}
.item-archivo:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.icono-archivo {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-weight: 700;
    font-size: .78rem;
}
.icono-pdf { background: linear-gradient(135deg, #dc2626, #f87171); }
.icono-word { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.icono-excel { background: linear-gradient(135deg, #16a34a, #4ade80); }
.icono-powerpoint { background: linear-gradient(135deg, #ea580c, #fb923c); }
.icono-imagen { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.icono-audio { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.icono-video { background: linear-gradient(135deg, #db2777, #f472b6); }
.icono-comprimido { background: linear-gradient(135deg, #b45309, #f59e0b); }
.icono-texto { background: linear-gradient(135deg, #475569, #94a3b8); }

.info-archivo { flex: 1; min-width: 0; }
.info-archivo h3 { font-size: .98rem; font-weight: 600; margin-bottom: 4px; }
.info-archivo p { font-size: .82rem; color: var(--texto-suave); }
.meta-archivo { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.acciones-archivo { display: flex; gap: 8px; flex-wrap: wrap; }

/* Reproductor multimedia */
.reproductor { margin-top: 12px; }
.reproductor video, .reproductor audio { width: 100%; border-radius: 12px; background: #0f172a; }
.reproductor img { border-radius: 12px; max-height: 420px; object-fit: contain; background: #f1f5f9; padding: 8px; }
/* ===================== PÁGINA DE LOGIN · OSCURO + AMARILLO ===================== */
.login-fondo {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #06070c;
    color: #e8eaf0;
}

/* ---------- Panel izquierdo ---------- */
.login-izq {
    flex: 1.18;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(880px 460px at 8% -12%, rgba(250,204,21,.17), transparent 60%),
        radial-gradient(760px 520px at 108% 112%, rgba(245,158,11,.14), transparent 60%),
        linear-gradient(150deg, #0a0c14 0%, #0f121d 55%, #151828 100%);
    padding: 44px 52px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(250,204,21,.16);
}
.login-izq::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(circle at 32% 42%, #000 0%, transparent 74%);
    mask-image: radial-gradient(circle at 32% 42%, #000 0%, transparent 74%);
    pointer-events: none;
}
.login-izq > * { position: relative; z-index: 1; }

.login-izq .marca { display: flex; align-items: center; gap: 14px; }
.login-izq .marca .logo-img {
    width: 54px; height: 54px; border-radius: 0; background: transparent;
    box-shadow: none;
}
.login-izq .marca strong { font-size: 1.02rem; letter-spacing: .5px; display: block; line-height: 1.25; color: #f8fafc; }
.login-izq .marca span {
    font-size: .7rem; text-transform: uppercase; letter-spacing: 3.4px;
    color: #facc15; font-weight: 800;
}

.login-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 620px;
    padding: 34px 0;
    perspective: 900px;
}

.login-plantilla {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    padding: 7px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    border: 1px solid rgba(250,204,21,.38);
    background: rgba(250,204,21,.09);
    color: #fde68a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}
.login-plantilla::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 10px #facc15;
    animation: puntoVivo 2s ease-in-out infinite;
}
@keyframes puntoVivo { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ----- Título 3D ----- */
.titulo-3d {
    position: relative;
    display: block;
    font-size: clamp(2.1rem, 4.3vw, 3.5rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #fde68a;
    margin-bottom: 26px;
    text-shadow:
        0 1px 0 #fbbf24,
        0 2px 0 #f59e0b,
        0 3px 0 #d97706,
        0 4px 0 #b45309,
        0 5px 0 #92400e,
        0 6px 0 #78350f,
        0 7px 0 #451a03,
        0 8px 1px rgba(0,0,0,.6),
        0 0 26px rgba(250,204,21,.35),
        0 22px 40px rgba(0,0,0,.65);
    animation: respirar3d 7s ease-in-out infinite;
    transform-style: preserve-3d;
}
.titulo-3d::after {
    content: attr(data-texto);
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    background-image: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.9) 50%, transparent 66%);
    background-size: 260% 100%;
    background-position: 210% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    animation: brillo3d 6.5s linear infinite;
    pointer-events: none;
}
@keyframes respirar3d {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50%      { transform: translateY(-8px) rotateX(6deg); }
}
@keyframes brillo3d {
    0%   { background-position: 210% 0; }
    55%  { background-position: -70% 0; }
    100% { background-position: -70% 0; }
}

/* ----- Distintivo "Campus Virtual" ----- */
.emblema-3d {
    display: inline-flex;
    align-self: flex-start;
    padding: 11px 28px;
    margin-bottom: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #fde047 0%, #facc15 45%, #f59e0b 100%);
    color: #1d1400;
    font-weight: 900;
    font-size: .95rem;
    letter-spacing: 5.5px;
    text-transform: uppercase;
    transform: skewX(-9deg);
    box-shadow:
        0 4px 0 #92400e,
        0 16px 32px rgba(245,158,11,.35),
        inset 0 1px 0 rgba(255,255,255,.75);
}
.emblema-3d span { display: inline-block; transform: skewX(9deg); }

.login-lema { color: #b6bdd0; font-size: 1rem; line-height: 1.6; margin-bottom: 26px; max-width: 540px; }

/* ----- Accesos por rol ----- */
.accesos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin-bottom: 14px;
}
.acceso {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(250,204,21,.2);
    backdrop-filter: blur(6px);
    transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.acceso:hover {
    border-color: rgba(250,204,21,.65);
    background: rgba(250,204,21,.09);
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(0,0,0,.4);
}
.acceso-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(250,204,21,.22), rgba(245,158,11,.14));
    color: #facc15;
    border: 1px solid rgba(250,204,21,.3);
}
.acceso strong { display: block; font-size: .88rem; color: #f8fafc; margin-bottom: 1px; }
.acceso span { font-size: .74rem; color: #98a1b5; }

.login-foot { margin-top: 24px; font-size: .78rem; color: #6f7789; letter-spacing: .3px; }

/* ---------- Panel derecho ---------- */
.login-der {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background:
        radial-gradient(720px 480px at 82% -8%, rgba(250,204,21,.12), transparent 62%),
        linear-gradient(160deg, #06070c 0%, #0a0c14 100%);
}
.login-tarjeta {
    width: 100%;
    max-width: 432px;
    padding: 36px 34px 30px;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
    border: 1px solid rgba(250,204,21,.3);
    box-shadow:
        0 34px 70px rgba(0,0,0,.65),
        inset 0 1px 0 rgba(255,255,255,.07),
        0 0 70px rgba(250,204,21,.08);
    backdrop-filter: blur(12px);
}
.login-tarjeta-cab { text-align: center; margin-bottom: 26px; }
.login-escudo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fde047 0%, #facc15 50%, #f59e0b 100%);
    color: #241a00;
    box-shadow: 0 14px 30px rgba(245,158,11,.42), inset 0 1px 0 rgba(255,255,255,.75);
}
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.login-logo img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.login-fondo {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.login-fondo img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.login-tarjeta h2 { font-size: 1.5rem; color: #f8fafc; letter-spacing: .4px; }
.login-tarjeta .sub { color: #98a1b5; margin-top: 7px; font-size: .9rem; line-height: 1.5; }

.login-campos { display: grid; gap: 15px; }
.campo-icono { position: relative; }
.campo-icono > svg {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: #facc15;
    opacity: .85;
    z-index: 1;
}
.campo-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-img {
    width: 132px;
    height: 50px;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,.13);
    cursor: pointer;
}
.campo-captcha input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.campo-captcha .ojito {
    position: static;
    transform: none;
    flex: 0 0 auto;
}
.campo-captcha .ojito:active { transform: scale(.92); }
.login-tarjeta input[type="text"],
.login-tarjeta input[type="password"] {
    width: 100%;
    padding: 14px 46px;
    border-radius: 13px;
    border: 1.5px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.05);
    color: #f1f5f9;
    font-size: .95rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-tarjeta input::placeholder { color: #8b94a8; letter-spacing: .3px; }
.login-tarjeta input:focus {
    outline: none;
    border-color: rgba(250,204,21,.75);
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 4px rgba(250,204,21,.16), 0 8px 22px rgba(0,0,0,.35);
}
.login-tarjeta .ojito {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8b94a8;
    display: flex;
    padding: 7px;
    border-radius: 10px;
}
.login-tarjeta .ojito:hover {
    color: #facc15;
    background: rgba(250,204,21,.14);
    transform: translateY(-50%) scale(1.1);
}

.btn-entrar {
    width: 100%;
    margin-top: 8px;
    padding: 15px 18px;
    border: none;
    border-radius: 13px;
    font-size: .99rem;
    font-weight: 800;
    letter-spacing: .7px;
    color: #20160a;
    background: linear-gradient(135deg, #fde047 0%, #facc15 45%, #f59e0b 100%);
    box-shadow: 0 16px 32px rgba(245,158,11,.36), inset 0 1px 0 rgba(255,255,255,.8);
    transition: transform .16s ease, box-shadow .22s ease, filter .2s ease;
}
.btn-entrar:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 20px 38px rgba(245,158,11,.46), inset 0 1px 0 rgba(255,255,255,.8);
}
.btn-entrar:active { transform: translateY(0) scale(.985); }
.btn-entrar.cargando { pointer-events: none; opacity: .88; }

.login-tarjeta .alert-error {
    background: rgba(220,38,38,.16);
    border: 1px solid rgba(248,113,113,.45);
    color: #fecaca;
}

.login-roles {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255,255,255,.13);
    text-align: center;
}
.login-roles-titulo {
    display: block;
    font-size: .68rem;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: #7c8396;
    margin-bottom: 11px;
}
.login-roles-lista { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rol-chip {
    font-size: .74rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(250,204,21,.1);
    border: 1px solid rgba(250,204,21,.34);
    transition: background .18s ease, border-color .18s ease;
}
.rol-chip:hover { background: rgba(250,204,21,.2); border-color: rgba(250,204,21,.6); }

.login-pie { margin-top: 18px; text-align: center; font-size: .8rem; color: #7c8396; line-height: 1.5; }


/* ===================== BARRA DE PROGRESO ===================== */
.barra-progreso { height: 10px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.barra-progreso > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primario), var(--violeta), var(--naranja)); }

/* ===================== MODAL ===================== */
.modal-fondo {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}
.modal-fondo.abierto { display: flex; }
.modal-caja {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    animation: aparecer .25s ease;
}
.modal-caja h3 { margin-bottom: 16px; font-size: 1.1rem; }
.modal-caja .acciones { margin-top: 18px; }

/* ===================== ESTADÍSTICAS ===================== */
.barra-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.barra-h .etiqueta { width: 150px; font-size: .85rem; font-weight: 600; color: var(--texto-suave); text-align: right; }
.barra-h .pista { flex: 1; height: 14px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.barra-h .pista > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primario), var(--violeta)); }
.barra-h .valor { width: 60px; font-weight: 700; font-size: .85rem; }

/* ===================== LANDING-INSTALADOR ===================== */
.instalador { min-height: 100vh; padding: 40px 20px; background:#0f172a; display:flex; align-items:flex-start; justify-content:center; }
.instalador-caja { width: 100%; max-width: 520px; }

/* ===================== UTILIDADES ===================== */
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 22px; }
.mt-4 { margin-top: 30px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 22px; }
.texto-suave { color: var(--texto-suave); }
.texto-centro { text-align: center; }
.texto-pequeno { font-size: .82rem; }
.negrita { font-weight: 700; }
.vacia { text-align: center; padding: 46px 20px; color: var(--texto-suave); }
.vacia svg { opacity: .35; margin-bottom: 12px; }
.vacia strong { display: block; color: var(--texto); margin-bottom: 4px; font-size: 1.02rem; }
.pill { border-radius: 999px; background:#eef2ff; color:var(--primario); padding: 3px 10px; font-size:.74rem; font-weight:600; }
.usuario-fila { display:flex; align-items:center; gap: 12px; }
.usuario-fila .avatar { width: 40px; height: 40px; font-size: .8rem; }
.usuario-fila strong { display:block; }
.usuario-fila small { color: var(--texto-suave); font-size:.76rem; }
.reloj-entrega { font-size: .78rem; color: var(--texto-suave); display: flex; align-items:center; gap:5px; }
.atrasada { color: var(--rojo); font-weight: 600; }

/* Listas de actividad */
.lista-actividad { display: grid; gap: 10px; }
.item-actividad {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--borde);
}
.item-actividad .avatar { width: 34px; height: 34px; font-size: .75rem; }
.item-actividad .info { flex: 1; min-width: 0; }
.item-actividad .info strong { display: block; font-size: .88rem; }
.item-actividad .info span { font-size: .78rem; color: var(--texto-suave); }

/* Tarjetas de tarea */
.tarjeta-tarea { border-left: 4px solid var(--primario); }
.tarjeta-tarea.pendiente { border-left-color: var(--naranja); }
.tarjeta-tarea.entregada { border-left-color: var(--verde); }

/* Horario y asistencia */
.asistencia-select {
    padding: 8px 12px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
    color: var(--texto);
    min-width: 150px;
}
.asistencia-resumen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}
.asistencia-conteos { display: flex; flex-wrap: wrap; gap: 8px; }

/* Serie de activación (instalador) */
.serie-bloque {
    background: linear-gradient(160deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.serie-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.serie-cab h3 { font-size: .95rem; margin: 0; color: #78350f; }
.serie-cab p { font-size: .78rem; color: #a16207; margin-top: 2px; }
.serie-icono {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    background: linear-gradient(135deg, #fde047, #f59e0b); color: #241a00;
    box-shadow: 0 8px 18px rgba(245,158,11,.35), inset 0 1px 0 rgba(255,255,255,.7);
}
.serie-casillas { display: flex; align-items: center; justify-content: center; gap: 10px; }
.serie-casilla {
    width: 100%; max-width: 112px; text-align: center;
    font-size: 1.25rem; font-weight: 800; letter-spacing: 6px; text-transform: uppercase;
    padding: 12px 6px 12px 12px;
    border: 2px solid #f59e0b; border-radius: 12px;
    background: #fff; color: #78350f; outline: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.serie-casilla:focus {
    border-color: var(--primario);
    box-shadow: 0 0 0 4px rgba(250,204,21,.28);
    transform: translateY(-1px);
}
.serie-guion { font-weight: 800; color: #b45309; font-size: 1.1rem; }

@media (max-width: 560px) {
    .serie-casillas { gap: 6px; }
    .serie-casilla { font-size: 1rem; letter-spacing: 4px; padding: 10px 4px 10px 8px; }
    .serie-guion { display: none; }
}

/* Seguridades de archivo .no-ph */
/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .grid-principal { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 264px; }
    .sidebar.abierta { transform: none; box-shadow: 0 0 0 100vmax rgba(15,23,42,.5); }
    .contenido { margin-left: 0; }
    .btn-mostrar-ocultar { display: inline-flex; }
    .login-fondo { flex-direction: column; }
    .login-izq { padding: 30px 24px; border-right: none; border-bottom: 1px solid rgba(250,204,21,.16); }
    .login-hero { padding: 26px 0; }
    .titulo-3d { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .emblema-3d { font-size: .82rem; letter-spacing: 4px; padding: 10px 22px; }
    .login-der { padding: 34px 22px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .claves-columnas, .fila-campos, .fila-campos-3 { grid-template-columns: 1fr; }
    .usuario-top-nombre { display: none; }
}
@media (max-width: 560px) {
    .grid-cards { grid-template-columns: 1fr; }
    .contenido-main { padding: 18px 14px 6px; }
    .topbar { padding: 12px 14px; }
    .card-est { padding: 16px; }
    .acciones-archivo { width: 100%; }
    .item-archivo { flex-wrap: wrap; }
    .accesos { grid-template-columns: 1fr; }
    .login-izq { padding: 24px 18px; }
    .login-der { padding: 26px 16px; }
    .login-tarjeta { padding: 28px 20px 24px; border-radius: 20px; }
    .titulo-3d { font-size: 1.75rem; text-shadow: 0 1px 0 #fbbf24, 0 2px 0 #f59e0b, 0 3px 0 #d97706, 0 4px 0 #b45309, 0 5px 0 #92400e, 0 6px 0 #78350f, 0 7px 1px rgba(0,0,0,.6), 0 14px 26px rgba(0,0,0,.6); }
}

/* ===================== SCROLLBARS PERSONALIZADOS ===================== */
/* Vertical (menú lateral) */
.sidebar-menu::-webkit-scrollbar { width: 8px; }
.sidebar-menu::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(99,102,241,.06), rgba(124,58,237,.06));
    border-radius: 999px;
    margin: 8px 0;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 999px;
    border: 2px solid #141a3d;
    min-height: 46px;
    transition: background .2s;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #818cf8, #a78bfa); }
.sidebar-menu { scrollbar-width: thin; scrollbar-color: rgba(139,92,246,.9) rgba(255,255,255,.04); }

/* Scrollbar global (contenido, tablas, modales) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c7d2fe, #a5b4fc);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a5b4fc, #818cf8); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

/* Firefox */
body { scrollbar-width: thin; scrollbar-color: #a5b4fc #eef2f9; }
.table-wrap, .modal-caja { scrollbar-width: thin; scrollbar-color: #b8c0ff #f1f5f9; }

/* Pulido general */
.tarjeta { transition: box-shadow .25s ease, transform .25s ease; }
.tarjeta:hover { box-shadow: 0 12px 34px rgba(79,70,229,.13); }
.menu-item { transition: background .2s ease, color .2s ease, transform .15s ease; }
.menu-item:hover { transform: translateX(3px); }
.menu-item.activo:hover { transform: none; }
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], select, textarea { transition: border-color .18s, box-shadow .18s, background .18s; }
.menu-item.cerrar:hover { transform: none; }
/* Botón ojito (mostrar/ocultar contraseña) */
.ojito {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s, background .2s, transform .15s;
}
.ojito:hover { color: var(--primario); background: #eef2ff; transform: translateY(-50%) scale(1.12); }
.ojito:active { transform: translateY(-50%) scale(.94); }

/* ===================== IMPORTACIÓN SIAGIE ===================== */

/* Botón elegante de importación */
.btn-importar {
    font-size: .98rem;
    padding: 14px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 45%, #c026d3 100%);
    background-size: 190% 190%;
    color: #fff;
    letter-spacing: .4px;
    box-shadow: 0 12px 28px rgba(124,58,237,.40), inset 0 1px 0 rgba(255,255,255,.28);
    text-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.btn-importar:hover {
    background-position: 100% 100%;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(124,58,237,.5), inset 0 1px 0 rgba(255,255,255,.28);
    filter: brightness(1.07);
}
.btn-importar:active { transform: translateY(0) scale(.97); }
.btn-importar .brillo {
    position: absolute;
    top: 0; left: -140%; bottom: 0;
    width: 55%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
    transform: skewX(-20deg);
    animation: barrido 2.6s ease-in-out infinite;
    pointer-events: none;
}
.btn-importar.cargando { pointer-events: none; opacity: .92; }
@keyframes barrido { 0% { left: -140%; } 55%, 100% { left: 150%; } }

/* Overlay de progreso */
.importa-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16,20,48,.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.importa-overlay.visible { display: flex; animation: aparecer .25s ease; }
.importa-caja {
    width: min(430px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 34px 30px 28px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(16,20,48,.45);
    animation: subir .3s ease;
}
.importa-icono {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    box-shadow: 0 12px 26px rgba(124,58,237,.4);
    animation: latido 1.4s ease-in-out infinite;
}
@keyframes latido { 0%,100% { transform: scale(1); } 45% { transform: scale(1.07); } }
.importa-caja h3 { margin: 0 0 18px; font-size: 1.05rem; color: #1e1b4b; }
.importa-pista {
    height: 13px;
    border-radius: 999px;
    background: #eef2f9;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(30,27,75,.12);
}
.importa-barra {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #8b5cf6, #6366f1);
    background-size: 300% 100%;
    animation: flujo 1.6s linear infinite;
    transition: width .3s ease;
}
@keyframes flujo { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }
.importa-pista.indeterminada .importa-barra {
    width: 42% !important;
    animation: flujo 1.2s linear infinite, indeterminada 1.2s ease-in-out infinite;
}
@keyframes indeterminada { 0% { margin-left: -42%; } 100% { margin-left: 100%; } }
.importa-pct { margin: 14px 0 4px; font-size: 1.6rem; font-weight: 800; color: #4f46e5; letter-spacing: .5px; }
.importa-estado { margin: 0; font-size: .9rem; color: #475569; font-weight: 500; }
.importa-nota { margin: 14px 0 0; font-size: .74rem; color: #94a3b8; }

/* Estados de éxito y error */
.importa-caja.exito .importa-icono { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 12px 26px rgba(22,163,74,.4); animation: pop-e 1.5s ease-in-out infinite; }
@keyframes pop-e { 0%,100% { transform: scale(1); } 45% { transform: scale(1.06); } }
.importa-caja.exito .importa-pista { background: #dcfce7; }
.importa-caja.exito .importa-barra { background: linear-gradient(90deg, #16a34a, #22c55e); background-size: 100% 100%; animation: none; }
.importa-caja.exito .importa-pct { color: #16a34a; }
.importa-caja.exito h3 { color: #14653b; }
.importa-caja.exito .importa-nota { display: none; }
.importa-caja.error .importa-icono { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 12px 26px rgba(220,38,38,.4); animation: none; }
.importa-caja.error .importa-pista { background: #fee2e2; }
.importa-caja.error .importa-barra { background: linear-gradient(90deg, #dc2626, #f87171); background-size: 100% 100%; animation: none; width: 100%; }
.importa-caja.error .importa-pct { display: none; }
.importa-caja.error h3 { color: #991b1b; }
.importa-caja.error .importa-nota { display: none; }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===================== LISTA DE ARCHIVOS XML (SIAGIE) ===================== */
.fuente-scan { margin-top: 8px; }
.fuente-titulo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}
.fuente-titulo .pill { margin-left: 2px; }
.lista-xml {
    border: 1px solid var(--borde);
    border-radius: 12px;
    overflow: hidden;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7d2fe transparent;
}
.radio-archivo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eef2f7;
    transition: background .18s;
}
.radio-archivo:last-child { border-bottom: none; }
.radio-archivo:hover { background: #f5f7ff; }
.radio-archivo input[type="radio"] { accent-color: #16a34a; width: 16px; height: 16px; }
.radio-archivo.seleccionado {
    background: #f0fdf4;
    box-shadow: inset 3px 0 0 #16a34a;
    border-bottom-color: #dcfce7;
}
.ra-icono {
    color: #16a34a;
    display: inline-flex;
    flex-shrink: 0;
}
.ra-nombre {
    display: flex;
    flex-direction: column;
    font-size: .85rem;
    font-weight: 600;
    color: #334155;
    word-break: break-all;
}
.ra-nombre small { font-size: .72rem; color: #94a3b8; font-weight: 500; }

/* Botón verde "Seleccionar archivo" */
.archivo-subir {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.btn-archivo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 13px;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .15px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    background-size: 160% 160%;
    box-shadow: 0 8px 18px rgba(22,163,74,.32), inset 0 1px 0 rgba(255,255,255,.28);
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, box-shadow .22s ease, background-position .3s ease;
    overflow: hidden;
    position: relative;
}
.btn-archivo:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(22,163,74,.42), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-archivo:active { transform: translateY(0) scale(.96); }
.archivo-nombre {
    font-size: .8rem;
    color: #64748b;
    font-weight: 500;
    word-break: break-all;
}
.opcion-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    font-weight: 500;
    color: #334155;
    padding: 10px 12px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fafbff;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}
.opcion-check:hover { background: #f5f7ff; border-color: #e0e7ff; }
.opcion-check input[type="checkbox"] { accent-color: var(--primario); margin-top: 2px; width: 16px; height: 16px; }
.opcion-check strong { color: #1e1b4b; }
.alert-aviso {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ===================== CAMPOS DE ARCHIVO ELEGANTES (global) ===================== */
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1.5px dashed #c7d2fe;
    border-radius: 12px;
    background: #f8faff;
    color: #475569;
    font-size: .84rem;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
input[type="file"]:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 6px 14px rgba(22,163,74,.12);
}
input[type="file"]:focus-visible { outline: 3px solid rgba(22,163,74,.30); outline-offset: 1px; }
input[type="file"]::file-selector-button {
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    margin-right: 14px;
    font-family: inherit;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .2px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    background-size: 160% 160%;
    box-shadow: 0 5px 12px rgba(22,163,74,.30), inset 0 1px 0 rgba(255,255,255,.28);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-position .3s ease, filter .2s ease;
}
input[type="file"]::file-selector-button:hover {
    background-position: 100% 100%;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(22,163,74,.42);
    filter: brightness(1.05);
}
input[type="file"]::file-selector-button:active { transform: translateY(0) scale(.96); }
.archivo-nombre-elegido {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    color: #64748b;
    font-weight: 500;
}

/* ============================================================
   PROGRAMAS · MALLA CURRICULAR
   ============================================================ */
.programa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.programa-card {
    position: relative; overflow: hidden; border-radius: var(--radio); padding: 20px;
    background: linear-gradient(150deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid var(--borde); box-shadow: var(--sombra-suave);
    transition: transform .18s ease, box-shadow .18s ease;
}
.programa-card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.programa-card::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 6px;
    background: linear-gradient(180deg, var(--primario), var(--violeta));
}
.programa-card .pc-icono {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px;
    color: #fff; background: linear-gradient(135deg, var(--primario), var(--violeta));
    box-shadow: 0 8px 18px rgba(79,70,229,.32);
}
.programa-card h3 { font-size: 1.02rem; line-height: 1.3; margin-bottom: 6px; color: var(--texto); }
.programa-card p { font-size: .84rem; color: var(--texto-suave); margin-bottom: 12px; }
.programa-card .pc-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.malla-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.malla-tab {
    padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--borde); background: #fff;
    font-weight: 600; font-size: .86rem; color: var(--texto-suave); cursor: pointer;
    transition: all .16s ease;
}
.malla-tab:hover { border-color: #c7d2fe; color: var(--primario); }
.malla-tab.activo {
    background: linear-gradient(135deg, var(--primario), var(--violeta)); color: #fff; border-color: transparent;
    box-shadow: 0 8px 18px rgba(79,70,229,.28);
}
.malla-panel { display: none; animation: aparecer .3s ease; }
.malla-panel.activo { display: block; }
.malla-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--borde);
}
.malla-panel-head h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }

.curso-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.curso-card {
    border: 1px solid var(--borde); border-radius: 14px; padding: 16px; background: #fff;
    box-shadow: var(--sombra-suave); display: flex; flex-direction: column; gap: 10px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.curso-card:hover { transform: translateY(-2px); box-shadow: var(--sombra); border-color: #c7d2fe; }
.curso-card .cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.curso-card .cc-nombre { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.curso-card .cc-icono {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    color: var(--primario); background: #eef2ff;
}
.curso-card .cc-pie { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.nota-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px;
    font-weight: 700; font-size: .82rem; color: #fff;
}
.nota-chip.nota-alta { background: linear-gradient(135deg,#16a34a,#22c55e); }
.nota-chip.nota-media { background: linear-gradient(135deg,#2563eb,#3b82f6); }
.nota-chip.nota-baja { background: linear-gradient(135deg,#f59e0b,#f97316); }
.nota-chip.nota-muybaja { background: linear-gradient(135deg,#dc2626,#ef4444); }
.nota-chip.nota-sin { background: #e2e8f0; color: #64748b; }

.programa-detalle { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }

/* Barra de progreso del ciclo */
.ciclo-progreso { display: flex; align-items: center; gap: 10px; }
.ciclo-progreso .barra-progreso { flex: 1; }

/* ============================================================
   EVALUACIONES EN LÍNEA
   ============================================================ */
.eval-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.eval-borrador { background: #f1f5f9; color: #475569; }
.eval-publicada { background: #dcfce7; color: #15803d; }
.eval-cerrada { background: #fee2e2; color: #b91c1c; }

.eval-card {
    border: 1px solid var(--borde); border-radius: 14px; padding: 16px; background: #fff; box-shadow: var(--sombra-suave);
    display: flex; flex-direction: column; gap: 10px;
}
.eval-card .ec-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.eval-card .ec-titulo { font-weight: 700; font-size: .98rem; }

.quiz-builder .pregunta-bloque {
    border: 1px solid var(--borde); border-radius: 14px; padding: 16px; margin-bottom: 14px; background: #fbfcff;
    position: relative; animation: aparecer .25s ease;
}
.quiz-builder .pregunta-bloque .pb-num {
    position: absolute; top: -12px; left: 14px; background: linear-gradient(135deg,var(--primario),var(--violeta));
    color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.quiz-builder .pb-quitar { position: absolute; top: 10px; right: 10px; }
.alt-fila { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.alt-letra {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    font-weight: 800; font-size: .82rem; background: #eef2ff; color: var(--primario); text-transform: uppercase;
}
.alt-fila.correcta .alt-letra { background: linear-gradient(135deg,#16a34a,#22c55e); color: #fff; }
.alt-fila .alt-input { flex: 1; }
.alt-fila .alt-radio { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--texto-suave); white-space: nowrap; }

/* Tomar evaluación (estudiante) */
.quiz-cabecera {
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 55%, #7c3aed 100%);
    color: #fff; border-radius: var(--radio); padding: 22px 24px; margin-bottom: 18px; position: relative; overflow: hidden;
}
.quiz-cabecera::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,.10);
}
.quiz-cabecera h2 { font-size: 1.15rem; margin-bottom: 4px; }
.quiz-cabecera p { opacity: .85; font-size: .88rem; }
.quiz-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .82rem; }
.quiz-meta span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); padding: 5px 12px; border-radius: 999px; }
.quiz-tiempo { font-weight: 800; }
.quiz-tiempo.alerta { color: #fecaca; animation: parpadeo 1s infinite; }
@keyframes parpadeo { 50% { opacity: .4; } }

.pregunta-quiz {
    border: 1px solid var(--borde); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: #fff; box-shadow: var(--sombra-suave);
}
.pregunta-quiz .pq-cab { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.pregunta-quiz .pq-num {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg,var(--primario),var(--violeta)); color: #fff; font-weight: 700; font-size: .82rem;
}
.pregunta-quiz .pq-texto { font-weight: 600; padding-top: 4px; }
.alternativa {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--borde);
    border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: all .15s ease; background: #fff;
}
.alternativa:hover { border-color: #c7d2fe; background: #f8faff; }
.alternativa input { position: absolute; opacity: 0; }
.alternativa .al-letra {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
    background: #eef2ff; color: var(--primario); font-weight: 800; font-size: .8rem; text-transform: uppercase; transition: all .15s ease;
}
.alternativa .al-texto { font-size: .9rem; }
.alternativa.sel { border-color: var(--primario); background: #eef2ff; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.alternativa.sel .al-letra { background: linear-gradient(135deg,var(--primario),var(--violeta)); color: #fff; }

.quiz-resultado {
    text-align: center; border-radius: var(--radio); padding: 30px 24px; color: #fff; margin-bottom: 18px;
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
}
.quiz-resultado .nota-grande { font-size: 4rem; font-weight: 900; line-height: 1; text-shadow: 0 6px 20px rgba(0,0,0,.25); }
.quiz-resultado .nota-grande small { font-size: 1.4rem; opacity: .7; }
.quiz-resultado.excelente { background: linear-gradient(135deg, #14532d, #16a34a); }
.quiz-resultado.bajo { background: linear-gradient(135deg, #7f1d1d, #dc2626); }

.distribucion { display: flex; gap: 6px; align-items: flex-end; height: 120px; margin: 14px 0; }
.distribucion .barra { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.distribucion .barra i {
    display: block; width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--primario), var(--violeta));
    min-height: 3px; transition: height .5s ease;
}
.distribucion .barra span { font-size: .68rem; color: var(--texto-suave); font-weight: 700; }
.distribucion .barra b { font-size: .68rem; }

/* ============================================================
   BOLETA DE INFORMACIÓN
   ============================================================ */
.boleta {
    background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 34px 38px;
    box-shadow: var(--sombra); max-width: 900px; margin: 0 auto;
}
.boleta-cab { display: flex; align-items: center; gap: 18px; border-bottom: 3px solid var(--primario); padding-bottom: 16px; margin-bottom: 18px; }
.boleta-cab img { height: 74px; width: auto; }
.boleta-cab .institucion { flex: 1; }
.boleta-cab .institucion h2 { font-size: 1.15rem; color: var(--primario); line-height: 1.2; }
.boleta-cab .institucion span { font-size: .84rem; color: var(--texto-suave); }
.boleta-cab .titulo-boleta {
    text-align: center; border: 2px solid var(--primario); border-radius: 12px; padding: 8px 18px; color: var(--primario);
}
.boleta-cab .titulo-boleta strong { display: block; font-size: .95rem; letter-spacing: .5px; }
.boleta-cab .titulo-boleta small { font-size: .72rem; color: var(--texto-suave); }
.boleta-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-bottom: 18px; font-size: .88rem; }
.boleta-datos div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--borde); padding: 5px 0; }
.boleta-datos div span:first-child { color: var(--texto-suave); }
.boleta-datos div span:last-child { font-weight: 600; }
.boleta-tabla { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.boleta-tabla th, .boleta-tabla td { border: 1px solid #cbd5e1; padding: 9px 12px; font-size: .86rem; }
.boleta-tabla th { background: #eef2ff; color: var(--primario-osc); text-align: left; font-weight: 700; }
.boleta-tabla td.centro { text-align: center; }
.boleta-tabla tr:nth-child(even) td { background: #f8faff; }
.boleta-resumen {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    border: 2px dashed var(--borde); border-radius: 14px; padding: 16px 22px; background: #fbfcff;
}
.boleta-resumen .prom-final { font-size: 2.4rem; font-weight: 900; color: var(--primario); line-height: 1; }
.boleta-resumen .prom-final small { font-size: 1rem; color: var(--texto-suave); font-weight: 600; }
.boleta-leyenda { font-size: .76rem; color: var(--texto-suave); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.boleta-leyenda b { font-weight: 700; }
.boleta-firmas { display: flex; justify-content: space-around; gap: 30px; margin-top: 46px; }
.boleta-firmas div { text-align: center; border-top: 1.5px solid #475569; padding-top: 6px; width: 200px; font-size: .8rem; color: var(--texto-suave); }

@media print {
    .sidebar, .topbar, .pie-pagina, .no-imprimir { display: none !important; }
    .contenido, .contenido-main { padding: 0 !important; margin: 0 !important; }
    body { background: #fff; }
    .boleta { box-shadow: none; border: none; max-width: 100%; padding: 0; }
    @page { margin: 14mm; }
}

/* ============================================================
   RESPONSIVE NUEVOS COMPONENTES
   ============================================================ */
@media (max-width: 900px) {
    .programa-detalle { grid-template-columns: 1fr; }
    .boleta { padding: 22px 18px; }
    .boleta-datos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .malla-tab { padding: 7px 13px; font-size: .8rem; }
    .boleta-cab { flex-direction: column; text-align: center; }
    .boleta-firmas { flex-direction: column; gap: 40px; align-items: center; }
}

/* ============================================================
   ADMIN · ESTUDIANTES (diseño elegante)
   ============================================================ */
.tarjeta-filtros,
.tarjeta-form,
.tarjeta-lista { overflow: hidden; }

.tarjeta-encabezado {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    margin: -22px -22px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.encabezado-icono {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primario), var(--violeta));
    box-shadow: 0 8px 18px rgba(79, 70, 229, .30);
}
.encabezado-texto { flex: 1; min-width: 0; }
.encabezado-texto h2 { font-size: 1.05rem; color: #1e1b4b; }
.encabezado-texto p { font-size: .8rem; color: var(--texto-suave); margin-top: 2px; }
.pill-count { margin-left: auto; flex-shrink: 0; }

.filtros-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.filtros-bar .grupo-campo { flex: 1 1 165px; min-width: 0; }
.filtros-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; align-items: center; }

.form-pie {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 6px;
    border-top: 1px dashed var(--borde);
}

.opciones-col { width: 158px; }
.acciones-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 132px;
    margin: 0 auto;
}
.acciones-vertical form { margin: 0; }
.btn-accion {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--texto);
    background: var(--superficie);
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    text-align: left;
}
.btn-accion svg { flex-shrink: 0; }
.btn-accion:hover { transform: translateX(3px); box-shadow: 0 5px 12px rgba(15, 23, 42, .09); }
.btn-accion:active { transform: translateX(1px) scale(.98); }

.btn-accion-editar  { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
.btn-accion-editar:hover  { background: #eef2ff; color: var(--primario); border-color: #dbe3ff; }
.btn-accion-clave   { background: #f5f3ff; color: #6d28d9; border-color: #ede9fe; }
.btn-accion-clave:hover   { background: #ede9fe; border-color: #ddd6fe; }
.btn-accion-activar { background: #f0fdf4; color: #15803d; border-color: #dcfce7; }
.btn-accion-activar:hover { background: #dcfce7; border-color: #bbf7d0; }
.btn-accion-desactivar { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.btn-accion-desactivar:hover { background: #fee2e2; border-color: #fecaca; }
.btn-accion-eliminar { background: #ffffff; color: #dc2626; border-color: #fecaca; }
.btn-accion-eliminar:hover { background: #fef2f2; border-color: #fca5a5; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-verde { background: #16a34a; }
.dot-rojo  { background: #dc2626; }

/* ===== Registro: botón abrir ventana ===== */
.btn-bloque { justify-content: center; }

/* ===== Botón de opciones desplegable por fila ===== */
.opciones-col { width: 150px; position: relative; }
.opciones-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 600;
    font-family: inherit;
    color: #334155;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
    user-select: none;
}
.opciones-trigger:hover { background: #eef2ff; color: var(--primario); border-color: #dbe3ff; box-shadow: 0 5px 12px rgba(15, 23, 42, .08); }
.opciones-caret { display: inline-flex; transition: transform .2s ease; }
.acciones-drop.abierto .opciones-caret { transform: rotate(180deg); }
.acciones-panel {
    display: none;
    position: absolute;
    z-index: 30;
    top: 105%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
    animation: aparecerPanel .16s ease;
}
.acciones-panel form { margin: 0; }
.acciones-drop.abierto .acciones-panel { display: flex; }
@keyframes aparecerPanel {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-caja-ancha { max-width: 560px; }

/* ===== Importación de estudiantes ===== */
.aviso-block {
    display: block;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: .85rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.aviso-block h4 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 4px;
    font-size: .88rem;
    color: #1e3a8a;
}
.aviso-block p { margin: 0; color: #1d4ed8; }
.aviso-block strong { color: #1e3a8a; }
.grid-importar { grid-template-columns: 400px 1fr; align-items: start; }
.pasos-import { display: grid; gap: 10px; margin-bottom: 18px; }
.paso {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 12px;
}
.paso-num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primario), var(--violeta));
    box-shadow: 0 4px 10px rgba(79, 70, 229, .28);
}
.paso strong { display: block; font-size: .86rem; color: #1e1b4b; }
.paso small { font-size: .78rem; color: var(--texto-suave); }
.requisitos-import { margin-top: 18px; border-top: 1px dashed var(--borde); padding-top: 14px; }
.requisitos-import h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: #1e1b4b;
    margin: 0 0 8px;
}
.requisitos-import ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    line-height: 1.5;
    color: var(--texto-suave);
    font-size: .8rem;
}
.requisitos-import li::marker { color: var(--primario); }
.tarjeta-resultado { overflow: visible; }

@media (max-width: 900px) {
    .grid-importar { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .filtros-acciones { margin-left: 0; width: 100%; }
    .filtros-acciones .btn { flex: 1; }
}
