/* ============================================================
   app.css — Sistema Adjudicación PUN · UGEL Chanchamayo
   ============================================================ */

/* Variables CSS institucionales */
:root {
    --color-primary:        #1A3A6B;
    --color-primary-light:  #2557A7;
    --color-primary-dark:   #0F2347;
    --color-accent:         #C8102E;
    --color-accent-gold:    #F5A623;
    --color-success:        #0F7B55;
    --color-warning:        #D97706;
    --color-danger:         #DC2626;
    --color-info:           #0284C7;
    --color-bg-page:        #F0F4F8;
    --color-bg-card:        #FFFFFF;
    --color-sidebar:        #0F1F3D;
    --color-text-primary:   #1E293B;
    --color-text-secondary: #64748B;
    --color-border:         #E2E8F0;
}

/* Tipografía base */
body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--color-text-primary);
}

h1, h2, h3, .titulo-institucional {
    font-family: 'Source Serif 4', serif;
}

.codigo-plaza, .dni-display, .numero-acta {
    font-family: 'IBM Plex Mono', monospace;
}

/* ── Animaciones de tabla ─────────────────────────────────── */
.tabla-fila {
    opacity: 0;
    animation: fadeSlideIn 0.35s ease forwards;
}
.tabla-fila:nth-child(1)  { animation-delay: 0.04s; }
.tabla-fila:nth-child(2)  { animation-delay: 0.08s; }
.tabla-fila:nth-child(3)  { animation-delay: 0.12s; }
.tabla-fila:nth-child(4)  { animation-delay: 0.16s; }
.tabla-fila:nth-child(5)  { animation-delay: 0.20s; }
.tabla-fila:nth-child(6)  { animation-delay: 0.24s; }
.tabla-fila:nth-child(7)  { animation-delay: 0.28s; }
.tabla-fila:nth-child(8)  { animation-delay: 0.32s; }
.tabla-fila:nth-child(9)  { animation-delay: 0.36s; }
.tabla-fila:nth-child(10) { animation-delay: 0.40s; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Animaciones de cards ─────────────────────────────────── */
.hero-card {
    opacity: 0;
    animation: riseUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-card:nth-child(1) { animation-delay: 0.1s; }
.hero-card:nth-child(2) { animation-delay: 0.2s; }
.hero-card:nth-child(3) { animation-delay: 0.3s; }
.hero-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes riseUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge EN VIVO ────────────────────────────────────────── */
.badge-live {
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ── Barra de progreso ────────────────────────────────────── */
.barra-progreso-fill {
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Número vivo (contador) ───────────────────────────────── */
.numero-vivo {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Sidebar admin ────────────────────────────────────────── */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94A3B8;
    transition: all 0.15s ease;
    text-decoration: none;
}
.sidebar-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}
.sidebar-link.active {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}

/* ── Formulario multi-paso ────────────────────────────────── */
.paso-indicador {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--color-border);
    color: var(--color-text-secondary);
    background: #fff;
    transition: all 0.2s;
}
.paso-indicador.activo {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.paso-indicador.completado {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

/* ── Drop zone upload ─────────────────────────────────────── */
.drop-zone-active {
    border-color: var(--color-primary) !important;
    background-color: rgba(26, 58, 107, 0.04) !important;
}

/* ── Print styles (para impresión de actas) ───────────────── */
@media print {
    .no-print { display: none !important; }
    body { font-size: 11pt; }
}
