:root {
  --rojo: #7B0000;
  --rojo-2: #9c1414;
  --rojo-suave: #fdecea;
  --oro: #b8860b;
  --taupe: #8c8478;
  --taupe-suave: #f1efe9;
  --bg: #f2f1ed;
  --card: #ffffff;
  --texto: #23262b;
  --texto-suave: #6b7280;
  --borde: #e4e6eb;
  --verde: #1e7e34;
  --verde-bg: #e6f4ea;
  --ambar: #92650a;
  --ambar-bg: #fff3d6;
  --azul: #1d4ed8;
  --azul-bg: #e6ecfd;
  --morado: #6d28d9;
  --morado-bg: #ede9fe;
  --gris-bg: #eef0f2;
  --gris-txt: #4b5563;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 20, 30, 0.06);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--texto);
  font-size: 14.5px;
  line-height: 1.5;
}
a { color: var(--rojo); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
.card-title, label, .badge, button, input, select, textarea, .tabs button { font-family: var(--font-body); }

/* ── Splash ─────────────────────────────────────────────────────────────── */
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 14px; }
.spinner { width: 34px; height: 34px; border: 3px solid #e4e6eb; border-top-color: var(--rojo); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box { display: flex; justify-content: center; padding: 60px 0; }

/* ── Topbar (público) ──────────────────────────────────────────────────── */
.public-header { background: var(--rojo); color: #fff; padding: 0; border-bottom: 3px solid var(--oro); }
.public-header .bar { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
.public-header .brand { display: flex; align-items: center; gap: 12px; }
.logo-badge { display: flex; align-items: center; flex-shrink: 0; }
.logo-badge img { display: block; height: 42px; width: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.public-header .brand .txt { display: flex; flex-direction: column; }
.public-header .brand .sub { font-size: 10.5px; letter-spacing: .8px; opacity: .85; }
.public-header .brand .tit { font-size: 16px; font-weight: 700; font-family: var(--font-display); }
.public-header nav { display: flex; gap: 8px; flex-wrap: wrap; }
.public-header nav a, .public-header nav button {
  color: #fff; background: rgba(255,255,255,.12); border: none; padding: 8px 14px; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.public-header nav a:hover, .public-header nav button:hover { background: rgba(255,255,255,.22); text-decoration: none; }

.public-hero {
  position: relative; color: #fff; padding: 56px 20px 64px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(75,0,0,.88) 0%, rgba(123,0,0,.82) 55%, rgba(75,0,0,.9) 100%),
              var(--hero-img, none) center 30%/cover no-repeat, #4d0000;
}
.public-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}
.public-hero .inner { position: relative; z-index: 1; }
.public-hero .eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; margin-bottom: 10px; }
.public-hero h1 { font-size: 30px; margin-bottom: 8px; letter-spacing: .2px; }
.public-hero p { opacity: .92; max-width: 560px; margin: 0 auto; font-size: 14.5px; }
.trust-strip {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 26px auto 0; max-width: 720px;
}
.trust-strip div {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(2px);
  border-radius: 999px; padding: 7px 14px; font-size: 12px; display: flex; align-items: center; gap: 6px;
}
.trust-strip .ic { font-size: 13px; }

main#main-content { max-width: 1180px; margin: 0 auto 40px; padding: 0 20px; }
main#main-content.no-hero { margin-top: 24px; }

/* ── Admin shell ───────────────────────────────────────────────────────── */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px; background: #1a1c22; color: #d7d9de; flex-shrink: 0; padding: 18px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { padding: 2px 20px 18px; border-bottom: 1px solid #2b2e37; margin-bottom: 14px; display: flex; align-items: center; gap: 11px; }
.admin-sidebar .brand .logo-badge img { height: 30px; }
.admin-sidebar .brand .sub { font-size: 9.5px; color: #8a8d97; letter-spacing: .7px; }
.admin-sidebar .brand .tit { font-size: 13.5px; font-weight: 700; color: #fff; margin-top: 2px; font-family: var(--font-display); }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 20px; margin: 1px 8px; border-radius: 8px;
  color: #a9acb6; font-size: 13.3px; cursor: pointer; position: relative;
}
.admin-sidebar nav a .ic { width: 17px; height: 17px; flex-shrink: 0; opacity: .65; color: #a9acb6; }
.admin-sidebar nav a .ic svg { width: 100%; height: 100%; }
.admin-sidebar nav a:hover { background: #22242c; color: #e4e5e9; text-decoration: none; }
.admin-sidebar nav a:hover .ic { opacity: .9; color: #e4e5e9; }
.admin-sidebar nav a.active { background: rgba(123, 0, 0, .32); color: #fff; }
.admin-sidebar nav a.active .ic { opacity: 1; color: var(--oro); }
.admin-sidebar nav a.active::before {
  content: ""; position: absolute; left: -8px; top: 4px; bottom: 4px; width: 3px; border-radius: 0 3px 3px 0; background: var(--oro);
}
.admin-sidebar .grp-title { padding: 16px 20px 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: #5f6270; }
.admin-sidebar .grp-title:first-child { padding-top: 0; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--borde); padding: 12px 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-topbar .who { font-size: 13px; color: var(--texto-suave); }
.admin-topbar .who b { color: var(--texto); }
.admin-content { padding: 22px; max-width: 1280px; }
.mobile-menu-btn { display: none; background: none; border: 1px solid var(--borde); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

@media (max-width: 860px) {
  .admin-sidebar { position: fixed; z-index: 50; left: -230px; transition: left .2s; box-shadow: 4px 0 20px rgba(0,0,0,.2); }
  .admin-sidebar.open { left: 0; }
  .mobile-menu-btn { display: inline-block; }
}

/* ── Cards / layout genérico ───────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; border-top: 3px solid transparent; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.kpi {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 16px;
  border: 1px solid var(--borde);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,20,30,.09); border-color: #ded6c8; }
.kpi .ic {
  width: 42px; height: 42px; min-width: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--taupe-suave); color: var(--rojo);
}
.kpi .ic svg { width: 21px; height: 21px; }
.kpi .num { font-size: 25px; font-weight: 800; color: var(--texto); font-family: var(--font-display); font-variant-numeric: tabular-nums; line-height: 1; }
.kpi .lbl { font-size: 11.5px; color: var(--texto-suave); margin-top: 4px; }

/* Único acento reservado para métricas de alerta (ej. certificados anulados) */
.kpi-warn .ic { background: var(--rojo-suave); color: #a12622; }

/* ── Panel principal: encabezado y filas de resumen ───────────────────────── */
.dash-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--borde); }
.dash-header h2 { margin: 0; font-family: var(--font-display); }
.dash-header .fecha { font-size: 12.5px; color: var(--texto-suave); text-transform: capitalize; }

.card-title.con-icono { gap: 8px; }
.card-title .ic-mini { width: 20px; height: 20px; color: var(--oro); display: inline-flex; flex-shrink: 0; }
.card-title .ic-mini svg { width: 100%; height: 100%; }

.dash-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid #f0efe9; transition: background-color .12s ease;
}
.dash-row:last-child { border-bottom: none; }
.dash-row:hover { background: #faf9f6; border-radius: 6px; }
.dash-row .num { font-weight: 800; font-family: var(--font-display); color: var(--rojo); font-variant-numeric: tabular-nums; }

.proximo-row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #f0efe9; }
.proximo-row:last-child { border-bottom: none; }
.proximo-row a { font-weight: 600; }
.proximo-row .codigo { font-size: 11.5px; color: var(--texto-suave); }

/* ── Botones ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 8px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--rojo); color: #fff; }
.btn-primary:hover { background: var(--rojo-2); box-shadow: 0 3px 10px rgba(123,0,0,.25); }
.btn-secondary { background: var(--gris-bg); color: var(--texto); }
.btn-secondary:hover { background: #e2e4e8; }
.btn-outline { background: #fff; color: var(--rojo); border: 1px solid var(--rojo); }
.btn-outline:hover { background: var(--rojo-suave); }
.btn-danger { background: #b3261e; color: #fff; }
.btn-danger:hover { background: #8f1e18; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ── Formularios ───────────────────────────────────────────────────────── */
label { display: block; font-size: 12.5px; font-weight: 700; color: #444; margin: 0 0 5px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 11.5px; color: var(--texto-suave); margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #d5d8dd; border-radius: 8px; font-size: 13.5px; background: #fff; color: var(--texto);
}
textarea { resize: vertical; min-height: 70px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(123,0,0,.08); }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
fieldset { border: 1px solid var(--borde); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
fieldset legend { padding: 0 6px; font-size: 12.5px; font-weight: 700; color: var(--rojo); }

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--borde); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: none; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--texto-suave); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--rojo); border-color: var(--rojo); }

/* ── Tabla ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; padding: 10px 12px; background: var(--gris-bg); color: #444; font-weight: 700; white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
table.data tr:hover td { background: #fafafa; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--texto-suave); }
.empty-state img { width: 110px; margin-bottom: 12px; opacity: .92; }
.empty-state p { margin: 0; }

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-green { background: var(--verde-bg); color: var(--verde); }
.badge-amber { background: var(--ambar-bg); color: var(--ambar); }
.badge-red { background: var(--rojo-suave); color: #a12622; }
.badge-blue { background: var(--azul-bg); color: var(--azul); }
.badge-gray { background: var(--gris-bg); color: #555; }

/* ── Toast ─────────────────────────────────────────────────────────────── */
#toast-box { position: fixed; bottom: 18px; right: 18px; z-index: 999; display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.toast { background: #222; color: #fff; padding: 11px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.25); opacity: 0; transform: translateY(8px); transition: all .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: #a12622; }
.toast-ok { background: #1e7e34; }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,20,25,.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.modal-wide { max-width: 780px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--borde); position: sticky; top: 0; background: #fff; }
.modal-header h3 { font-size: 15px; }
.modal-close { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: #888; border-radius: 50%; width: 30px; height: 30px; transition: background-color .15s ease, transform .15s ease; }
.modal-close:hover { background: var(--gris-bg); transform: rotate(90deg); }
.modal-body { padding: 20px; }

/* ── Login ─────────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(160deg, rgba(58,0,0,.92) 0%, rgba(123,0,0,.85) 100%), var(--login-img, none) center/cover no-repeat, #2a0000;
}
.login-card { background: #fff; border-radius: 16px; width: 100%; max-width: 380px; padding: 30px 28px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-card .login-logo { display: block; height: 62px; margin: 0 auto 14px; }
.login-card .sub { text-align: center; font-size: 11px; letter-spacing: 1px; color: var(--texto-suave); text-transform: uppercase; }
.login-card h1 { text-align: center; font-size: 18px; margin: 3px 0 24px; }

/* ── Portal: catálogo de eventos ──────────────────────────────────────── */
.evento-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.evento-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,20,30,.13); }
.evento-card .banner {
  height: 140px; background: linear-gradient(135deg, var(--rojo), #4d0000); background-size: cover; background-position: center;
  display: flex; align-items: flex-end; overflow: hidden; position: relative;
}
.evento-card .banner { transition: background-size .35s ease; }
.evento-card:hover .banner { background-size: 108%; }
.evento-card .banner .tipo-tag { background: rgba(0,0,0,.5); backdrop-filter: blur(2px); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 999px; margin: 10px; }
.date-chip {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--rojo); border-radius: 8px; width: 42px; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); overflow: hidden; flex-shrink: 0;
}
.date-chip .d { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.15; padding-top: 2px; }
.date-chip .m { display: block; font-size: 9px; font-weight: 700; letter-spacing: .5px; background: var(--rojo); color: #fff; padding: 1px 0 2px; }
.date-chip-inline { position: static; box-shadow: none; border: 1px solid var(--borde); }
.evento-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.evento-card h3 { font-size: 15px; font-family: var(--font-body); font-weight: 700; }
.evento-card .meta { font-size: 12px; color: var(--texto-suave); display: flex; flex-direction: column; gap: 3px; }
.evento-card .foot { padding: 0 16px 16px; }

.evento-detalle-hero { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
/* El flyer se ve completo (sin recortar) sobre un fondo institucional, en vez
   de forzarlo a una caja fija con "background-size: cover" que le cortaba
   contenido según su proporción real. */
.evento-detalle-hero .banner-full {
  background: linear-gradient(135deg, var(--rojo) 0%, #5a0000 55%, #3a0000 100%);
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.evento-detalle-hero .banner-full img {
  display: block; max-width: 100%; max-height: 560px; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 10px 32px rgba(0,0,0,.35);
}
.evento-detalle-hero .body { padding: 26px 28px 28px; }
.evento-detalle-hero .body h1 { font-size: 25px; line-height: 1.25; }
.evento-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
  margin-top: 16px; padding: 16px 0; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde);
}
.evento-info-grid .lbl { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--texto-suave); margin-bottom: 3px; }

.speaker-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--taupe-suave); background: var(--taupe-suave); border-radius: 10px; }
.speaker-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.speaker-card .ph { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--rojo); font-family: var(--font-display); }

footer.public-footer { text-align: center; color: var(--texto-suave); font-size: 12px; padding: 28px 16px 40px; }

/* ── Movimiento (sutil, respeta prefers-reduced-motion) ───────────────────── */
.admin-sidebar nav a { transition: background-color .15s ease, color .15s ease; }
.admin-sidebar nav a .ic { transition: opacity .15s ease, color .15s ease; }
.logo-badge { transition: transform .2s ease; }
.public-header .brand:hover .logo-badge, .admin-sidebar .brand:hover .logo-badge { transform: scale(1.06) rotate(-2deg); }

table.data tbody tr { transition: background-color .12s ease; }

@keyframes skeleton-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
.skeleton { background: linear-gradient(90deg, var(--gris-bg) 25%, #e4e6eb 37%, var(--gris-bg) 63%); border-radius: 8px; animation: skeleton-pulse 1.3s ease-in-out infinite; }
.skeleton-card { height: 220px; border-radius: var(--radius); }

/* ── Escáner QR ────────────────────────────────────────────────────────── */
.qr-viewfinder {
  position: absolute; inset: 12%; border: 2px solid rgba(255,255,255,.85); border-radius: 12px;
  box-shadow: 0 0 0 1000px rgba(0,0,0,.35); pointer-events: none; overflow: hidden;
}
@keyframes qr-scan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
.qr-scanline {
  position: absolute; left: 0; width: 100%; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--oro) 20%, #fff 50%, var(--oro) 80%, transparent);
  box-shadow: 0 0 8px 1px rgba(184,134,11,.7);
}
@media (prefers-reduced-motion: no-preference) {
  .qr-scanline { animation: qr-scan 2.2s ease-in-out infinite; }
}

@media (prefers-reduced-motion: no-preference) {
  #main-content { transition: opacity .14s ease, transform .14s ease; }
  #main-content.route-leaving { opacity: 0; transform: translateY(4px); }

  @keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
  @keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

  .grid > .evento-card, .grid > .kpi, .grid-3 > .evento-card { animation: fadeInUp .4s ease both; }
  .grid > *:nth-child(1) { animation-delay: .02s; } .grid > *:nth-child(2) { animation-delay: .06s; }
  .grid > *:nth-child(3) { animation-delay: .10s; } .grid > *:nth-child(4) { animation-delay: .14s; }
  .grid > *:nth-child(5) { animation-delay: .18s; } .grid > *:nth-child(6) { animation-delay: .22s; }

  table.data tbody tr { animation: fadeInUp .3s ease both; }
  table.data tbody tr:nth-child(n+9) { animation: none; }

  .modal-overlay { animation: overlayIn .18s ease both; }
  .modal { animation: popIn .22s cubic-bezier(.2,.9,.3,1.2) both; }
  .toast { animation: slideDown .25s ease both; }
  .date-chip { animation: popIn .3s cubic-bezier(.2,.9,.3,1.4) both; }
  .login-card { animation: popIn .35s cubic-bezier(.2,.9,.3,1.1) both; }
  .public-hero .inner > * { animation: fadeInUp .5s ease both; }
  .public-hero .inner .eyebrow { animation-delay: 0s; }
  .public-hero .inner h1 { animation-delay: .06s; }
  .public-hero .inner p { animation-delay: .12s; }
  .public-hero .inner .trust-strip { animation-delay: .18s; }
  .evento-detalle-hero { animation: fadeInUp .35s ease both; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  main#main-content { padding: 0 12px; }
  .admin-content { padding: 14px; }
  .login-card { padding: 26px 20px; }
}
