/* ============================================================
   CAS · Base — Design System 2026
   Dark mode institucional · Navy abisal + Oro
   ============================================================ */

:root {
  /* Paleta abisal */
  --navy-950: #030814;
  --navy-900: #060e22;
  --navy-850: #0a142e;
  --navy-800: #0e1b3d;
  --navy-700: #16264f;
  --navy-600: #1f3468;

  /* Oro institucional */
  --gold-300: #f3dfa0;
  --gold-400: #e8c96a;
  --gold-500: #d4af37;
  --gold-600: #b8912a;
  --gold-glow: rgba(212, 175, 55, .35);

  /* Neutros fríos */
  --ink-100: #eef2fb;
  --ink-300: #b8c2d9;
  --ink-400: #8a96b5;
  --ink-500: #5f6b8c;

  /* Semánticos */
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  /* Glass */
  --glass-bg: rgba(16, 28, 62, .48);
  --glass-bg-strong: rgba(14, 24, 54, .78);
  --glass-border: rgba(148, 170, 220, .16);
  --glass-border-gold: rgba(212, 175, 55, .34);

  /* Tipografía */
  --font-title: 'Cinzel', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --nav-h: 76px;
  --max-w: 1200px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-deep: 0 24px 64px -18px rgba(0, 0, 0, .65);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--ink-100);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* El atributo hidden debe imponerse siempre: sin esta regla, cualquier
   display:flex/grid propio lo anula y el elemento queda visible pese a hidden */
[hidden] { display: none !important; }

/* Overlay de credenciales provisionales (CMS) — disponible en todas las páginas */
.cred-overlay {
  position: fixed; inset: 0; z-index: 9990;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(3, 8, 20, .78); backdrop-filter: blur(8px);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink-100); }
::selection { background: var(--gold-500); color: var(--navy-950); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 6px; border: 2px solid var(--navy-950); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }

/* ---------------- Fondo ambiental ---------------- */
.ambient {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(31, 52, 104, .55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(212, 175, 55, .07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(22, 38, 79, .5) 0%, transparent 65%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-950) 100%);
}
.ambient::after {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(148, 170, 220, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 220, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 75%);
}
.orb {
  position: fixed; border-radius: 50%; filter: blur(90px); z-index: -1;
  pointer-events: none; opacity: .5; will-change: transform;
}
.orb-a { width: 480px; height: 480px; top: -140px; right: -120px;
  background: radial-gradient(circle, rgba(212, 175, 55, .16), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate; }
.orb-b { width: 560px; height: 560px; bottom: -200px; left: -160px;
  background: radial-gradient(circle, rgba(60, 96, 190, .20), transparent 70%);
  animation: drift 28s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 50px) scale(1.12); }
}

/* ---------------- Tipografía ---------------- */
h1, h2, h3, .font-title { font-family: var(--font-title); font-weight: 600; letter-spacing: .02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-400);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.eyebrow::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold-500), transparent); }

.gold-text {
  background: linear-gradient(120deg, var(--gold-300) 0%, var(--gold-500) 45%, var(--gold-300) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--ink-400); }

/* ---------------- Glass ---------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-deep);
}
.glass-gold { border-color: var(--glass-border-gold); }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.7rem; border-radius: 999px;
  font-size: .92rem; font-weight: 700; letter-spacing: .02em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 55%, var(--gold-600) 100%);
  color: #241a02;
  box-shadow: 0 10px 30px -8px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -10px var(--gold-glow); }
.btn-ghost {
  background: rgba(148, 170, 220, .08); color: var(--ink-100);
  border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(148, 170, 220, .16); transform: translateY(-2px); }
.btn-danger { background: rgba(248, 113, 113, .14); color: var(--danger); border: 1px solid rgba(248, 113, 113, .3); }
.btn-danger:hover { background: rgba(248, 113, 113, .24); }
.btn-sm { padding: .48rem 1.05rem; font-size: .8rem; }
.btn-block { width: 100%; }

/* Botón de carga de archivos — vibrante, borde claro, alto contraste */
.btn-upload {
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  width: 100%; padding: .85rem 1.2rem; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(212, 175, 55, .12), rgba(212, 175, 55, .05));
  border: 1.5px dashed rgba(222, 186, 84, .6);
  color: var(--gold-200, #f0d98c); font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; transition: all .25s var(--ease-out);
}
.btn-upload svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-upload:hover {
  background: linear-gradient(180deg, rgba(212, 175, 55, .2), rgba(212, 175, 55, .09));
  border-style: solid; border-color: var(--gold-300);
  color: #fff; box-shadow: 0 10px 26px -8px var(--gold-glow);
  transform: translateY(-1px);
}
.btn-upload:active { transform: scale(.98); }
.btn-upload.adjuntada {
  background: rgba(52, 211, 153, .12);
  border: 1.5px solid rgba(52, 211, 153, .55); border-style: solid;
  color: #34d399;
}
.btn-upload.adjuntada svg { display: none; }
.btn-upload.adjuntada::before {
  content: '✓'; width: 20px; height: 20px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .9rem; font-weight: 800;
  border: 1.5px solid currentColor; border-radius: 50%;
}
.btn-upload.adjuntada:hover { background: rgba(52, 211, 153, .18); box-shadow: 0 10px 26px -8px rgba(52, 211, 153, .4); }
.btn-upload.btn-sm { padding: .55rem 1rem; font-size: .78rem; }
.btn-upload.btn-sm svg { width: 16px; height: 16px; }
.btn-upload.btn-sm.adjuntada::before { width: 16px; height: 16px; font-size: .72rem; }

/* ---------------- Formularios ---------------- */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-400);
}
.input, .select, .textarea {
  background: rgba(6, 14, 34, .7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: .78rem 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .14);
  background: rgba(10, 20, 46, .85);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-500); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.select option { background: var(--navy-850); color: var(--ink-100); }
.textarea { resize: vertical; min-height: 96px; }

/* ---------------- Badges / chips ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .75rem; border-radius: 999px; border: 1px solid;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.badge-warn { color: var(--warn); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge-danger { color: var(--danger); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.badge-info { color: var(--info); border-color: rgba(96, 165, 250, .35); background: rgba(96, 165, 250, .08); }
.badge-gold { color: var(--gold-400); border-color: var(--glass-border-gold); background: rgba(212, 175, 55, .08); }

.chip {
  display: inline-block; font-size: .7rem; font-weight: 600;
  padding: .22rem .7rem; border-radius: 999px;
  background: rgba(212, 175, 55, .1); color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, .22);
}

/* ---------------- Animaciones de entrada ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.noanim { transition: none !important; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulseGold { 0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); } 50% { box-shadow: 0 0 0 10px transparent; } }
.fade-up { animation: fadeUp .8s var(--ease-out) both; }

/* ---------------- Utilidades ---------------- */
.container { width: min(var(--max-w), calc(100% - 3rem)); margin-inline: auto; }
.section { padding: 6.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.4rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 1rem 0 .8rem; }
.divider-gold {
  width: 90px; height: 2px; margin: 1.2rem auto;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- Toast ---------------- */
.toast-wrap {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 9000;
  display: flex; flex-direction: column; gap: .6rem;
}
.toast {
  display: flex; align-items: center; gap: .7rem;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); border-radius: var(--radius-md);
  padding: .85rem 1.2rem; font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow-deep); animation: fadeUp .45s var(--ease-out) both;
  max-width: 340px;
}
.toast.ok { border-color: rgba(52, 211, 153, .4); }
.toast.err { border-color: rgba(248, 113, 113, .4); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.toast.ok .dot { background: var(--ok); } .toast.err .dot { background: var(--danger); }

/* ---------------- Modal base ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(3, 8, 20, .72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  transform: translateY(26px) scale(.97); transition: transform .45s var(--ease-out);
}
.modal-backdrop.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem 0; }
.modal-head h3 { font-size: 1.15rem; }
.modal-body { padding: 1.4rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.05rem;
  background: rgba(148, 170, 220, .1); transition: background .25s, transform .25s;
}
.modal-close:hover { background: rgba(248, 113, 113, .2); transform: rotate(90deg); }

/* ============================================================
   Logo institucional — medallón circular con anillo dorado
   (compartido por nav, hero, login, credencial y panel CMS)
   ============================================================ */
.brand-seal {
  width: 46px; height: 46px; aspect-ratio: 1 / 1;
  border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center;
  font-size: 1.35rem; color: var(--gold-400);
  background: radial-gradient(circle at 35% 28%, var(--navy-700), var(--navy-900) 75%);
  border: 1.5px solid rgba(212, 175, 55, .55);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, .14),
    0 0 24px -4px var(--gold-glow),
    inset 0 0 14px rgba(0, 0, 0, .45);
  position: relative;
}
.brand-seal::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, .3); pointer-events: none;
}
/* Cuando hay logo, la imagen cubre todo el círculo: sin anillo interno superpuesto */
.brand-seal:has(.brand-logo)::after { display: none; }
.brand-logo {
  width: 100%; height: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center;
  border-radius: 50%; display: block;
}
.seal-logo {
  width: 74%; height: 74%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 50%; display: block;
  border: 2px solid rgba(212, 175, 55, .55);
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, .14),
    0 0 30px -4px var(--gold-glow),
    0 12px 34px -10px rgba(0, 0, 0, .7);
}

/* ============================================================
   CMS flotante + Solicitudes (visible en cualquier página admin)
   ============================================================ */
.list-title { font-family: var(--font-title); font-size: 1rem; color: var(--gold-300); margin-bottom: 1rem; }

.cms-fab {
  position: fixed; bottom: 1.6rem; left: 1.6rem; z-index: 9500;
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 800; font-size: .85rem; letter-spacing: .04em; color: #241a02;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
  box-shadow: 0 14px 40px -8px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.cms-fab:hover { transform: translateY(-3px) scale(1.03); }

.cms-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9600;
  width: min(480px, 100vw);
  background: rgba(8, 16, 38, .92);
  backdrop-filter: blur(24px) saturate(150%);
  border-left: 1px solid var(--glass-border-gold);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .7);
  transform: translateX(105%); transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column;
}
.cms-panel.open { transform: none; }
.cms-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--glass-border);
}
.cms-head h3 { font-size: 1.1rem; }
.cms-head small { display: block; color: var(--ink-400); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.cms-tabs { display: flex; gap: .3rem; padding: .8rem 1.6rem 0; flex-wrap: wrap; }
.cms-tab {
  padding: .5rem 1rem; border-radius: 999px; font-size: .76rem; font-weight: 700;
  color: var(--ink-400); border: 1px solid transparent; transition: all .25s;
}
.cms-tab.active { color: var(--gold-300); border-color: var(--glass-border-gold); background: rgba(212, 175, 55, .08); }
.cms-body { flex: 1; overflow-y: auto; padding: 1.3rem 1.6rem 2rem; }
.cms-pane { display: none; flex-direction: column; gap: 1rem; }
.cms-pane.active { display: flex; animation: fadeUp .35s var(--ease-out); }

.cms-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1rem; border-radius: var(--radius-md);
  background: rgba(16, 28, 62, .5); border: 1px solid var(--glass-border);
}
.cms-item-info { flex: 1; min-width: 0; }
.cms-item-info strong { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cms-item-info small { color: var(--ink-500); font-size: .7rem; }
.cms-item-btns { display: flex; gap: .35rem; }
.cms-icon-btn {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: .8rem; background: rgba(148, 170, 220, .1); transition: background .25s;
}
.cms-icon-btn:hover { background: rgba(212, 175, 55, .2); }
.cms-icon-btn.danger:hover { background: rgba(248, 113, 113, .25); }

.cms-form { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem; border-radius: var(--radius-md); background: rgba(212, 175, 55, .05); border: 1px dashed rgba(212, 175, 55, .28); }
.cms-form h5 { font-family: var(--font-title); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); }
.cms-check { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--ink-300); }
.cms-check input { accent-color: var(--gold-500); width: 16px; height: 16px; }
.cms-note { font-size: .72rem; color: var(--ink-500); padding: .6rem .8rem; background: rgba(96,165,250,.06); border-radius: 8px; border: 1px solid rgba(96,165,250,.15); }

/* Pane Altas/Claves y formularios del CMS: campos amplios a una columna
   (el panel tiene 480px — dos columnas quedaban incómodas para tipear) */
.cms-pane .form-row { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.cms-item.alta-card { flex-direction: column; align-items: stretch; gap: .75rem; padding: 1.1rem 1.15rem; }
.cms-item.alta-card .field { gap: .35rem; }
.cms-item.alta-card .input { padding: .95rem 1.05rem; font-size: .92rem; }

/* Cuadro de credenciales provisionales: clave grande, seleccionable */
.cred-pass {
  display: block; text-align: center; margin: .45rem 0 .25rem;
  padding: .7rem .9rem; border-radius: 10px; cursor: copy;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.55rem; font-weight: 700; letter-spacing: .09em;
  color: var(--gold-300); background: rgba(212, 175, 55, .09);
  border: 1px dashed var(--glass-border-gold);
  user-select: all; -webkit-user-select: all;
}
.cred-pass-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); }

/* Indicador "en línea" — presencia realtime del Mostrador (CMS) */
.on-dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(148, 170, 220, .25); border: 1px solid rgba(148, 170, 220, .35);
  transition: all .35s var(--ease-out);
}
.on-dot.on {
  background: var(--ok); border-color: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 14px rgba(52, 211, 153, .7);
  animation: onPulse 2.4s ease-in-out infinite;
}
@keyframes onPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .22), 0 0 12px rgba(52, 211, 153, .6); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, .08), 0 0 20px rgba(52, 211, 153, .85); }
}
.on-count { font-size: .68rem; font-weight: 700; color: var(--ok); letter-spacing: .06em; margin-left: .4rem; }

/* Solicitudes pendientes */
.sol-item { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem; align-items: stretch; }
.sol-top { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.sol-top strong { font-size: .86rem; }
.sol-meta { font-size: .74rem; color: var(--ink-400); line-height: 1.5; }
.sol-check { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.sol-check.en { color: var(--ok); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); }
.sol-check.no { color: var(--warn); background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); }
.sol-actions { display: flex; gap: .5rem; }
.sol-actions .btn { flex: 1; padding: .5rem .8rem; font-size: .76rem; }
.sol-count {
  min-width: 22px; height: 22px; border-radius: 999px; padding: 0 .45rem;
  display: inline-grid; place-items: center; font-size: .68rem; font-weight: 800;
  background: var(--danger); color: #fff;
  box-shadow: 0 0 8px rgba(239, 68, 68, .5);
}
.sol-dni {
  width: 100%; max-height: 130px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--glass-border);
  cursor: zoom-in; transition: border-color .25s;
}
.sol-dni:hover { border-color: var(--gold-500); }
.sol-pdf {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem; border-radius: 8px;
  font-size: .76rem; font-weight: 700; color: var(--gold-300);
  background: rgba(212, 175, 55, .1); border: 1px solid var(--glass-border-gold);
  transition: background .25s, transform .25s;
}
.sol-pdf:hover { background: rgba(212, 175, 55, .2); transform: translateY(-1px); }
.portada-prev {
  width: 100%; aspect-ratio: 16/8; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--glass-border-gold);
  background: var(--navy-800);
}
.logo-preview {
  width: 96px; height: 96px; aspect-ratio: 1 / 1;
  border-radius: 50%; margin: 0 auto;
  object-fit: cover; display: block;
  border: 2px solid rgba(212, 175, 55, .55);
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, .14),
    0 0 30px -4px var(--gold-glow),
    0 10px 30px -10px rgba(0, 0, 0, .6);
  background: var(--navy-800);
}
.news-prev {
  display: block; margin-top: .55rem; width: 100%; max-height: 140px;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--glass-border-gold);
}
.file-btn { text-align: center; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(3, 8, 20, .9); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 86vh; border-radius: 14px;
  border: 1px solid var(--glass-border-gold);
  box-shadow: var(--shadow-deep);
}
.lightbox-cap {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: .78rem; color: var(--ink-400); letter-spacing: .1em; text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
input[type=color].color-input { padding: .35rem; height: 44px; cursor: pointer; }
