/* ============================================================
   Tu Red vs. La IA — componentes Reveal.js
   ============================================================
   Base: theme oficial Ayuda.LA (claude-design/ayudala-theme)
   + extensiones específicas para esta charla:
     · disrupt-slide  (pantalla negra con frase contundente)
     · asym-grid      (atacante vs defensor)
     · layer-stack    (las 5 capas del toolkit)
     · tool-grid      (lista de herramientas open source)
     · yes-no-grid    (IA defensiva: dónde sí / dónde no)
     · stack-ascii    (stack de referencia "fin de semana")
     · week-list      (checklist por semana)
     · resource-grid  (recursos comunitarios)
     · sin-list       (errores comunes — pecados)
     · ddos-flow      (DDoS adaptativo, secuencia horizontal)
     · phish-compare  (phishing 2020 vs 2026)
     · op-table       (tabla por tipo de operador)
     · contact-grid   (contacto en slide de gracias)
     · icon-free / icon-paid / icon-warn  (badges semánticos)
   ============================================================ */

/* ========== HEADER FIJO CON LOGO AYUDA.LA ========== */
.course-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(17,24,39,0.95), rgba(17,24,39,0.7));
  z-index: 40;
  font-family: var(--ayl-font-display);
  font-size: 14px;
  pointer-events: none;
}
.course-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ayl-text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.course-header .brand .dot {
  width: 10px; height: 10px;
  background: var(--ayl-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(251,140,35,0.6);
}
.course-header .brand .tagline {
  color: var(--ayl-text-muted);
  font-weight: 400;
  font-family: var(--ayl-font-body);
  font-size: 12px;
  margin-left: 4px;
}
.course-header .course-title {
  color: var(--ayl-text-muted);
  font-family: var(--ayl-font-body);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ========== FOOTER FIJO ========== */
.course-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  /* Dejamos espacio a la derecha para los controles de Reveal (flechas + slide-number) */
  right: 160px;
  height: 32px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(17,24,39,0.95), rgba(17,24,39,0.0));
  z-index: 40;
  font-size: 11px;
  font-family: var(--ayl-font-mono);
  color: var(--ayl-text-dim);
  pointer-events: none;
}
.course-footer .module-crumb { color: var(--ayl-orange); }
.course-footer .copy { color: var(--ayl-text-dim); }

/* ========== RE-UBICAR CONTROLES Y NÚMERO DE SLIDE DE REVEAL ========== */
.reveal .slide-number {
  top: 14px;
  right: 24px;
  bottom: auto;
  left: auto;
  font-family: var(--ayl-font-mono);
  font-size: 11px;
  background: transparent;
  color: var(--ayl-text-dim);
  padding: 0;
  z-index: 45;
}
.reveal .slide-number a { color: var(--ayl-text-dim); }
.reveal .controls {
  right: 16px;
  bottom: 16px;
}
.reveal .controls button { color: var(--ayl-orange); }

/* ========== DIVISOR DE MÓDULO ========== */
.reveal section.module-divider {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: radial-gradient(circle at 85% 30%, rgba(251,140,35,0.12), transparent 55%);
}
.module-divider .module-num {
  font-family: var(--ayl-font-mono);
  font-size: 0.9em;
  color: var(--ayl-orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.module-divider .module-title {
  font-family: var(--ayl-font-display);
  font-size: 3.5em;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ayl-text-primary);
  margin: 0 0 24px 0;
  max-width: 14ch;
}
.module-divider .module-subtitle {
  font-family: var(--ayl-font-body);
  font-size: 1.0em;
  color: var(--ayl-text-muted);
  max-width: 32ch;
  line-height: 1.4;
}
.module-divider .module-meta {
  position: absolute;
  bottom: 80px;
  left: 80px;
  font-family: var(--ayl-font-mono);
  font-size: 0.7em;
  color: var(--ayl-text-dim);
  letter-spacing: 0.05em;
}
.module-divider .accent-bar {
  width: 72px;
  height: 4px;
  background: var(--ayl-orange);
  margin-bottom: 32px;
  border-radius: 2px;
}

/* ========== SLIDE DE APERTURA (portada) ========== */
.reveal section.cover-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(circle at 80% 20%, rgba(251,140,35,0.15), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(17,76,92,0.30), transparent 55%);
}
.cover-slide .eyebrow {
  font-family: var(--ayl-font-mono);
  font-size: 0.75em;
  color: var(--ayl-orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cover-slide h1 {
  font-size: 4.2em;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 24px 0;
  max-width: 14ch;
}
.cover-slide .subtitle {
  font-family: var(--ayl-font-body);
  font-size: 1.1em;
  color: var(--ayl-text-muted);
  max-width: 36ch;
  line-height: 1.4;
  margin-bottom: 48px;
}
.cover-slide .meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  font-family: var(--ayl-font-mono);
  font-size: 0.7em;
  color: var(--ayl-text-dim);
}
.cover-slide .meta .meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cover-slide .meta .meta-label {
  color: var(--ayl-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85em;
}
.cover-slide .meta .meta-value {
  color: var(--ayl-text-primary);
  font-size: 1.15em;
}

/* ========== EYEBROW (etiqueta de sección) ========== */
.eyebrow {
  font-family: var(--ayl-font-mono);
  font-size: 0.75em;
  color: var(--ayl-orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ========== CARDS GENÉRICAS ========== */
.card {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 12px 16px;
  box-shadow: var(--ayl-shadow-sm);
}
.card.accent  { border-left: 4px solid var(--ayl-orange); }
.card.teal    { border-left: 4px solid var(--ayl-teal); }
.card.danger  { border-left: 4px solid var(--ayl-danger); }
.card.success { border-left: 4px solid var(--ayl-success); }
.card.warn    { border-left: 4px solid var(--ayl-warning); }
.card.info    { border-left: 4px solid var(--ayl-info); }

.card h4 {
  font-family: var(--ayl-font-display);
  font-size: 0.85em;
  color: var(--ayl-orange);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card.danger h4  { color: var(--ayl-danger); }
.card.success h4 { color: var(--ayl-success); }
.card.warn h4    { color: var(--ayl-warning); }
.card.info h4    { color: var(--ayl-info); }
.card.teal h4    { color: #6BC5D8; }

/* Grid de cards */
.card-grid {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}
.card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ========== STAT / MÉTRICA GRANDE ========== */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat .stat-value {
  font-family: var(--ayl-font-display);
  font-size: 3.2em;
  font-weight: 700;
  color: var(--ayl-orange);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .stat-label {
  font-family: var(--ayl-font-body);
  font-size: 0.75em;
  color: var(--ayl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat .stat-sub {
  font-family: var(--ayl-font-body);
  font-size: 0.65em;
  color: var(--ayl-text-dim);
  margin-top: 4px;
}

/* ========== TAGS / PILLS ========== */
.tag-pill {
  display: inline-block;
  background: var(--ayl-bg-elevated);
  color: var(--ayl-text-muted);
  font-family: var(--ayl-font-mono);
  font-size: 0.65em;
  padding: 4px 12px;
  border-radius: var(--ayl-radius-sm);
  margin: 0 6px 6px 0;
  letter-spacing: 0.02em;
}
.tag-pill.orange {
  background: rgba(251,140,35,0.15);
  color: var(--ayl-orange);
  border: 1px solid rgba(251,140,35,0.3);
}
.tag-pill.teal {
  background: rgba(17,76,92,0.3);
  color: #6BC5D8;
  border: 1px solid rgba(17,76,92,0.5);
}
.tag-pill.pink {
  background: rgba(255,205,210,0.08);
  color: #ff5252;
  border: 1px solid rgba(255,205,210,0.15);
}
.tag-pill.success {
  background: rgba(16,185,129,0.12);
  color: var(--ayl-success);
  border: 1px solid rgba(16,185,129,0.35);
}
.tag-pill.danger {
  background: rgba(239,68,68,0.12);
  color: var(--ayl-danger);
  border: 1px solid rgba(239,68,68,0.35);
}
.tag-pill.warn {
  background: rgba(245,158,11,0.12);
  color: var(--ayl-warning);
  border: 1px solid rgba(245,158,11,0.35);
}

/* ========== TERMINAL SIMULADA ========== */
.terminal {
  background: #0A0F1A;
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  overflow: hidden;
  box-shadow: var(--ayl-shadow-lg);
  font-family: var(--ayl-font-mono);
  font-size: 0.55em;
  margin: 8px 0;
  width: 100%;
}
.terminal-header {
  background: var(--ayl-bg-surface);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ayl-border);
}
.terminal-header .dot-red    { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; }
.terminal-header .dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: #F59E0B; }
.terminal-header .dot-green  { width: 10px; height: 10px; border-radius: 50%; background: #10B981; }
.terminal-header .title {
  color: var(--ayl-text-muted);
  font-size: 0.9em;
  margin-left: 8px;
  font-family: var(--ayl-font-mono);
}
.terminal-body {
  padding: 10px 14px;
  color: var(--ayl-text-primary);
  line-height: 1.5;
  max-height: 380px;
  overflow: auto;
  white-space: pre;
  font-family: var(--ayl-font-mono);
  tab-size: 2;
}
.terminal-body span { white-space: pre; }
.terminal-body .prompt { color: var(--ayl-success); }
.terminal-body .cmd    { color: var(--ayl-text-primary); }
.terminal-body .out    { color: var(--ayl-text-muted); }
.terminal-body .err    { color: var(--ayl-danger); }
.terminal-body .warn   { color: var(--ayl-warning); }
.terminal-body .info   { color: var(--ayl-info); }
.terminal-body .orange { color: var(--ayl-orange); }
.terminal-body .dim    { color: var(--ayl-text-dim); }
.terminal-body .ok     { color: var(--ayl-success); }

/* Cursor parpadeante para el streaming en vivo */
.terminal-body .cursor {
  color: var(--ayl-success);
  animation: terminal-blink 1s steps(1) infinite;
  font-weight: 700;
}
@keyframes terminal-blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ========== CALLOUT ========== */
.callout {
  padding: 10px 16px;
  border-radius: var(--ayl-radius);
  margin: 10px 0;
  border-left: 4px solid;
  font-size: 0.78em;
  line-height: 1.4;
}
.callout.warn {
  background: rgba(245,158,11,0.08);
  border-left-color: var(--ayl-warning);
  color: var(--ayl-text-primary);
}
.callout.danger {
  background: rgba(239,68,68,0.08);
  border-left-color: var(--ayl-danger);
}
.callout.info {
  background: rgba(59,130,246,0.08);
  border-left-color: var(--ayl-info);
}
.callout.success {
  background: rgba(16,185,129,0.08);
  border-left-color: var(--ayl-success);
}
.callout.accent {
  background: rgba(251,140,35,0.08);
  border-left-color: var(--ayl-orange);
}
.callout .callout-title {
  font-family: var(--ayl-font-display);
  font-weight: 700;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px 0;
  display: block;
}
.callout.warn    .callout-title { color: var(--ayl-warning); }
.callout.danger  .callout-title { color: var(--ayl-danger); }
.callout.info    .callout-title { color: var(--ayl-info); }
.callout.success .callout-title { color: var(--ayl-success); }
.callout.accent  .callout-title { color: var(--ayl-orange); }

/* ========== AGENDA (no usada acá pero parte del kit) ========== */
.agenda-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.agenda-list li {
  display: grid;
  grid-template-columns: 48px 1fr 80px;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--ayl-border);
  font-size: 0.85em;
}
.agenda-list li:last-child { border-bottom: none; }
.agenda-list .num {
  font-family: var(--ayl-font-mono);
  color: var(--ayl-orange);
  font-size: 0.95em;
  letter-spacing: 0.05em;
}
.agenda-list .title {
  font-family: var(--ayl-font-display);
  color: var(--ayl-text-primary);
  font-weight: 700;
  font-size: 1.0em;
}
.agenda-list .title .desc {
  display: block;
  font-family: var(--ayl-font-body);
  font-weight: 400;
  color: var(--ayl-text-muted);
  font-size: 0.78em;
  margin-top: 2px;
  letter-spacing: 0;
}
.agenda-list .dur {
  font-family: var(--ayl-font-mono);
  color: var(--ayl-text-dim);
  font-size: 0.75em;
  text-align: right;
}

/* ========== UTILITIES ========== */
.text-orange  { color: var(--ayl-orange); }
.text-teal    { color: #6BC5D8; }
.text-muted   { color: var(--ayl-text-muted); }
.text-dim     { color: var(--ayl-text-dim); }
.text-danger  { color: var(--ayl-danger); }
.text-warning { color: var(--ayl-warning); }
.text-success { color: var(--ayl-success); }
.text-info    { color: var(--ayl-info); }

.font-mono { font-family: var(--ayl-font-mono); }
.small     { font-size: 0.8em; }
.xsmall    { font-size: 0.7em; }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 14px; }
.mt-lg { margin-top: 24px; }

/* ========== PULL QUOTE ========== */
.pull-quote {
  font-family: var(--ayl-font-display);
  font-size: 1.25em;
  line-height: 1.15;
  color: var(--ayl-text-primary);
  max-width: 24ch;
  margin: 10px 0;
  letter-spacing: -0.02em;
}
.pull-quote::before {
  content: '"';
  color: var(--ayl-orange);
  font-size: 1.4em;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -0.2em;
}
.pull-quote .attr {
  display: block;
  font-family: var(--ayl-font-body);
  font-size: 0.42em;
  color: var(--ayl-text-muted);
  margin-top: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ========== TWO-COL LAYOUT ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.two-col.weighted-l { grid-template-columns: 1.3fr 1fr; }
.two-col.weighted-r { grid-template-columns: 1fr 1.3fr; }

/* ========== HERO NUMBER ========== */
.hero-num {
  font-family: var(--ayl-font-display);
  font-size: 6.5em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ayl-orange);
}

/* ========== DIAGRAM FRAME ========== */
.diagram-frame {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 20px;
  margin: 12px 0;
  box-shadow: var(--ayl-shadow-sm);
}
.diagram-frame svg { display: block; margin: 0 auto; }
.diagram-caption {
  font-family: var(--ayl-font-mono);
  font-size: 0.65em;
  color: var(--ayl-text-dim);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* ========== COMPARATIVA ANTES/DESPUÉS (oficial) ========== */
.before-after {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 14px 0;
}
.before-after .ba-col {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 14px 16px;
}
.before-after .ba-col.before { border-top: 3px solid var(--ayl-danger); }
.before-after .ba-col.after  { border-top: 3px solid var(--ayl-success); }
.before-after .ba-col .ba-label {
  font-family: var(--ayl-font-mono);
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.before-after .ba-col.before .ba-label { color: var(--ayl-danger); }
.before-after .ba-col.after  .ba-label { color: var(--ayl-success); }
.before-after .ba-col ul {
  margin: 6px 0 0 1em;
  font-size: 0.82em;
  color: var(--ayl-text-muted);
}
.before-after .ba-col ul li { margin: 4px 0; }
.before-after .ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ayl-orange);
  font-size: 28px;
  font-weight: 700;
}

/* ========== TIMELINE DE EVENTOS (oficial) ========== */
.timeline {
  position: relative;
  margin: 14px 0;
  padding-left: 18px;
  border-left: 2px solid var(--ayl-border);
}
.timeline .tl-item {
  position: relative;
  margin-bottom: 14px;
  padding-left: 8px;
}
.timeline .tl-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ayl-text-dim);
  border: 2px solid var(--ayl-bg-primary);
}
.timeline .tl-item.event::before   { background: var(--ayl-danger);  box-shadow: 0 0 6px var(--ayl-danger);  }
.timeline .tl-item.detect::before  { background: var(--ayl-warning); }
.timeline .tl-item.action::before  { background: var(--ayl-info);    }
.timeline .tl-item.resolve::before { background: var(--ayl-success); }
.timeline .tl-time {
  font-family: var(--ayl-font-mono);
  font-size: 0.7em;
  color: var(--ayl-orange);
  letter-spacing: 0.04em;
}
.timeline .tl-label {
  font-family: var(--ayl-font-display);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ayl-text-primary);
  margin: 2px 0;
}
.timeline .tl-desc {
  font-size: 0.76em;
  color: var(--ayl-text-muted);
  line-height: 1.45;
}

/* ========== THANKS / CIERRE SLIDE (oficial) ========== */
.reveal section.thanks-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.thanks-slide h1 {
  font-size: 3.5em;
  margin: 0 auto 18px auto;
  text-align: center;
}
.thanks-slide .thanks-sub {
  font-size: 1.1em;
  color: var(--ayl-text-muted);
  margin: 0 auto 28px auto;
  max-width: 60ch;
}
.thanks-slide .thanks-contact {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9em;
  margin-top: 12px;
}
.thanks-slide .thanks-contact .tc-item {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ayl-border);
  border-radius: 6px;
  color: var(--ayl-text-muted);
  font-family: var(--ayl-font-mono);
  font-size: 0.85em;
}
.thanks-slide .thanks-contact .tc-item strong {
  color: var(--ayl-orange);
  margin-right: 6px;
  font-family: var(--ayl-font-display);
}

/* ============================================================
   EXTENSIONES ESPECÍFICAS DE ESTA CHARLA
   ============================================================ */

/* ========== SLIDE [DISRUPT] — pantalla negra con frase ========== */
.reveal section.disrupt-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #050810;
}
/* Cualquier hijo dentro de la disrupt queda centrado horizontal por defecto. */
.reveal section.disrupt-slide > *:not(aside) {
  margin-left: auto;
  margin-right: auto;
}
.disrupt-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(251,140,35,0.10), transparent 60%);
  pointer-events: none;
}
.disrupt-slide .disrupt-eyebrow {
  font-family: var(--ayl-font-mono);
  font-size: 0.7em;
  color: var(--ayl-orange);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0.85;
}
.disrupt-slide .disrupt-text {
  font-family: var(--ayl-font-display);
  font-size: clamp(1.6em, 4vw, 2.2em);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ayl-text-primary);
  max-width: 32ch;
  margin: 0 auto;
  text-wrap: balance;
}
/* Variante "corta" para frases punzantes de 1-2 líneas — más grande */
.disrupt-slide .disrupt-text.short {
  font-size: clamp(2em, 5vw, 2.6em);
  max-width: 22ch;
}
.disrupt-slide .disrupt-text .accent { color: var(--ayl-orange); }
.disrupt-slide .disrupt-text .danger { color: var(--ayl-danger); }
.disrupt-slide .disrupt-sub {
  font-family: var(--ayl-font-body);
  font-size: 0.9em;
  color: var(--ayl-text-muted);
  margin-top: 28px;
  max-width: 32ch;
  font-style: italic;
}

/* ========== ENCUESTA · resultados live ========== */
.poll-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.poll-question-result {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-left: 4px solid var(--ayl-orange);
  border-radius: var(--ayl-radius);
  padding: 12px 16px;
}
.poll-question-result h4 {
  font-family: var(--ayl-font-display);
  font-size: 0.7em;
  margin: 0 0 10px 0;
  color: var(--ayl-text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.poll-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.poll-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  align-items: center;
  gap: 10px;
  font-size: 0.55em;
}
.poll-bar-label {
  color: var(--ayl-text-muted);
  font-family: var(--ayl-font-mono);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poll-bar-track {
  background: var(--ayl-bg-elevated);
  border-radius: 3px;
  height: 18px;
  overflow: hidden;
  position: relative;
}
.poll-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.poll-bar-value {
  font-family: var(--ayl-font-mono);
  color: var(--ayl-text-primary);
  font-weight: 700;
  font-size: 1em;
}
.poll-bar-count {
  color: var(--ayl-text-dim);
  font-weight: 400;
  font-size: 0.85em;
}

/* ========== COLD OPEN · pantalla negra absoluta ========== */
/* Slide 100% vacío para el Beat 1+2 de la apertura en frío.
   Negro puro, sin gradiente naranja, sin nada. */
.reveal section.disrupt-slide.cold-open-black {
  background: #000000;
}
.disrupt-slide.cold-open-black::before {
  background: none;
}

/* ========== ASIMETRÍA ATACANTE / DEFENSOR ========== */
.asym-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px auto;
  width: 100%;
  max-width: 1100px;
}
.asym-grid > div {
  border-radius: var(--ayl-radius);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.asym-grid > div h4 {
  font-family: var(--ayl-font-display);
  font-size: 1.0em;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.asym-grid > div ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85em;
  line-height: 1.6;
}
.asym-grid .attacker {
  background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(239,68,68,0.02));
  border: 1px solid rgba(239,68,68,0.35);
}
.asym-grid .attacker h4 { color: var(--ayl-danger); }
.asym-grid .defender {
  background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(59,130,246,0.02));
  border: 1px solid rgba(59,130,246,0.35);
}
.asym-grid .defender h4 { color: var(--ayl-info); }

/* ========== STACK DE 5 CAPAS ========== */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.layer-stack .layer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-left: 4px solid var(--ayl-orange);
  border-radius: var(--ayl-radius);
  padding: 8px 14px;
}
.layer-stack .layer .lnum {
  font-family: var(--ayl-font-display);
  font-size: 1.6em;
  font-weight: 700;
  color: var(--ayl-orange);
  text-align: center;
  line-height: 1;
}
.layer-stack .layer .lbody h4 {
  font-family: var(--ayl-font-display);
  font-size: 0.85em;
  color: var(--ayl-text-primary);
  margin: 0 0 2px 0;
  text-transform: none;
  letter-spacing: -0.01em;
}
.layer-stack .layer .lbody p {
  font-size: 0.65em;
  color: var(--ayl-text-muted);
  margin: 0;
  line-height: 1.35;
}

/* ========== TOOL GRID (lista de herramientas) ========== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  margin: 8px 0;
}
.tool-grid .tool {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius-sm);
  padding: 6px 12px;
  font-size: 0.7em;
}
.tool-grid .tool .name {
  font-family: var(--ayl-font-display);
  font-weight: 700;
  color: var(--ayl-orange);
  font-size: 0.95em;
  display: block;
  margin-bottom: 1px;
}
.tool-grid .tool .desc {
  color: var(--ayl-text-muted);
  font-size: 0.85em;
  line-height: 1.3;
}
.tool-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ========== ICON-FREE / ICON-PAID / ICON-WARN ========== */
.icon-free,
.icon-paid,
.icon-warn {
  display: inline-block;
  font-family: var(--ayl-font-mono);
  font-size: 0.7em;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  font-weight: 600;
}
.icon-free {
  background: rgba(16,185,129,0.18);
  color: var(--ayl-success);
  border: 1px solid rgba(16,185,129,0.4);
}
.icon-paid {
  background: rgba(59,130,246,0.18);
  color: var(--ayl-info);
  border: 1px solid rgba(59,130,246,0.4);
}
.icon-warn {
  background: rgba(245,158,11,0.18);
  color: var(--ayl-warning);
  border: 1px solid rgba(245,158,11,0.4);
}

/* ========== YES / NO GRID (IA defensiva) ========== */
.yes-no-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0;
}
.yes-no-grid > div {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 10px 16px;
}
.yes-no-grid > div.yes { border-left: 4px solid var(--ayl-success); }
.yes-no-grid > div.no  { border-left: 4px solid var(--ayl-danger); }
.yes-no-grid > div h4 {
  font-family: var(--ayl-font-display);
  font-size: 0.85em;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.yes-no-grid .yes h4 { color: var(--ayl-success); }
.yes-no-grid .no  h4 { color: var(--ayl-danger); }
.yes-no-grid ul { margin: 0; padding-left: 18px; font-size: 0.72em; line-height: 1.45; }

/* ========== STACK SVG (referencia "fin de semana") ========== */
.stack-svg {
  background: #0A0F1A;
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 16px;
  box-shadow: var(--ayl-shadow);
}
.stack-svg svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
}

/* ========== DEFCON ROWS (filas horizontales) ========== */
.defcon-rows {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.defcon-rows .defcon {
  display: grid;
  grid-template-columns: 110px 200px 1fr;
  align-items: center;
  gap: 14px;
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-left: 6px solid var(--ayl-success);
  border-radius: var(--ayl-radius);
  padding: 6px 14px;
  font-size: 0.7em;
}
.defcon-rows .defcon-num {
  font-family: var(--ayl-font-mono);
  font-size: 1.0em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ayl-success);
  font-weight: 700;
  white-space: nowrap;
}
.defcon-rows .defcon-name {
  font-family: var(--ayl-font-display);
  font-size: 1.05em;
  font-weight: 700;
  color: var(--ayl-text-primary);
  line-height: 1.2;
}
.defcon-rows .defcon-desc {
  color: var(--ayl-text-muted);
  line-height: 1.4;
  font-size: 0.95em;
}
.defcon-rows .defcon-5 { border-left-color: #10B981; }
.defcon-rows .defcon-5 .defcon-num { color: #10B981; }
.defcon-rows .defcon-4 { border-left-color: #84CC16; }
.defcon-rows .defcon-4 .defcon-num { color: #84CC16; }
.defcon-rows .defcon-3 { border-left-color: #F59E0B; }
.defcon-rows .defcon-3 .defcon-num { color: #F59E0B; }
.defcon-rows .defcon-2 { border-left-color: #F97316; }
.defcon-rows .defcon-2 .defcon-num { color: #F97316; }
.defcon-rows .defcon-1 { border-left-color: #EF4444; }
.defcon-rows .defcon-1 .defcon-num { color: #EF4444; }

/* ========== STACK ASCII (legado — ya no se usa, queda por compatibilidad) ========== */
.stack-ascii {
  background: #0A0F1A;
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 18px 22px;
  font-family: var(--ayl-font-mono);
  font-size: 0.62em;
  line-height: 1.45;
  color: var(--ayl-text-primary);
  overflow: auto;
  white-space: pre;
  box-shadow: var(--ayl-shadow);
}
.stack-ascii .layer-name { color: var(--ayl-orange); font-weight: 700; }
.stack-ascii .tool-name  { color: var(--ayl-success); }
.stack-ascii .arrow      { color: var(--ayl-info); }

/* ========== CHECKLIST POR SEMANA ========== */
.week-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.week-list li {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-left: 4px solid var(--ayl-orange);
  border-radius: var(--ayl-radius);
  padding: 10px 14px;
  font-size: 0.72em;
  line-height: 1.4;
}
.week-list li .wk {
  font-family: var(--ayl-font-mono);
  color: var(--ayl-orange);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

/* ========== RECURSOS COMUNITARIOS ========== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.resource-grid .res {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 10px 14px;
}
.resource-grid .res .name {
  font-family: var(--ayl-font-display);
  font-weight: 700;
  color: var(--ayl-orange);
  font-size: 0.95em;
  display: block;
  margin-bottom: 4px;
}
.resource-grid .res .url {
  font-family: var(--ayl-font-mono);
  font-size: 0.65em;
  color: var(--ayl-text-muted);
  display: block;
  margin-bottom: 6px;
  word-break: break-all;
}
.resource-grid .res .what {
  font-size: 0.72em;
  color: var(--ayl-text-muted);
  line-height: 1.4;
}

/* ========== SIN-LIST (errores comunes — pecados) ========== */
.sin-list {
  list-style: none;
  padding: 0;
  margin: 16px auto;
  width: 100%;
  max-width: 1000px;
  text-align: left;
}
.sin-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ayl-border);
  font-size: 0.85em;
}
.sin-list li:last-child { border-bottom: none; }
.sin-list li .quote {
  font-family: var(--ayl-font-mono);
  color: var(--ayl-danger);
  font-weight: 600;
  font-size: 0.85em;
  white-space: nowrap;
}
.sin-list li .reality {
  color: var(--ayl-text-muted);
  font-size: 0.92em;
}
.sin-list li .reality strong { color: var(--ayl-text-primary); }

/* ========== DDOS ADAPTATIVO — secuencia horizontal ========== */
.ddos-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.ddos-flow .stage {
  flex: 1;
  min-width: 130px;
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-top: 3px solid var(--ayl-danger);
  border-radius: var(--ayl-radius-sm);
  padding: 10px 12px;
  font-size: 0.7em;
  text-align: center;
  position: relative;
}
.ddos-flow .stage .step {
  font-family: var(--ayl-font-mono);
  color: var(--ayl-orange);
  font-size: 0.85em;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.ddos-flow .stage .name {
  font-family: var(--ayl-font-display);
  font-weight: 700;
  color: var(--ayl-text-primary);
  font-size: 1em;
  display: block;
  margin-bottom: 4px;
}
.ddos-flow .stage .desc {
  color: var(--ayl-text-muted);
  font-size: 0.85em;
  line-height: 1.3;
}
.ddos-flow .arrow-h {
  align-self: center;
  color: var(--ayl-orange);
  font-size: 1.2em;
  opacity: 0.6;
}

/* ========== PHISHING 2020 vs 2026 ========== */
.phish-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0;
}
.phish-compare > div {
  background: #0A0F1A;
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 16px 18px;
  font-family: var(--ayl-font-mono);
  font-size: 0.62em;
  line-height: 1.55;
  position: relative;
}
.phish-compare > div .label {
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--ayl-bg-elevated);
  font-family: var(--ayl-font-display);
  font-size: 0.95em;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.phish-compare > div.bad  { border-left: 4px solid var(--ayl-danger); }
.phish-compare > div.good { border-left: 4px solid var(--ayl-warning); }
.phish-compare > div.bad  .label { color: var(--ayl-danger); }
.phish-compare > div.good .label { color: var(--ayl-warning); }
.phish-compare .err     { color: var(--ayl-danger); text-decoration: underline wavy var(--ayl-danger); }
.phish-compare .ok      { color: var(--ayl-success); }
.phish-compare .neutral { color: var(--ayl-text-muted); }

/* ========== TABLA POR TIPO DE OPERADOR ========== */
.reveal table.op-table {
  font-size: 0.7em;
}
.reveal table.op-table td:first-child {
  font-family: var(--ayl-font-display);
  font-weight: 700;
  color: var(--ayl-orange);
  width: 28%;
}

/* ========== CONTACT GRID (slide gracias) ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 24px;
}
.contact-grid .contact-item {
  background: var(--ayl-bg-surface);
  border: 1px solid var(--ayl-border);
  border-radius: var(--ayl-radius);
  padding: 16px 20px;
}
.contact-grid .contact-item h4 {
  font-family: var(--ayl-font-display);
  font-size: 0.85em;
  color: var(--ayl-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px 0;
}
.contact-grid .contact-item .val {
  font-family: var(--ayl-font-mono);
  color: var(--ayl-text-primary);
  font-size: 0.85em;
}
