/* ============================================================
   ESTILO OSCURO · Métodos Cuantitativos FAGOB 2026
   Basado en xaringan · acento rojo #e94560
   ============================================================ */

/* ── Fuentes ── */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ── Variables de color ── */
:root {
  --dark-bg:     #1a1a2e;
  --dark-mid:    #16213e;
  --dark-card:   #0f3460;
  --accent:      #e94560;
  --accent-soft: #ff6b81;
  --text-main:   #e2e8f0;
  --text-muted:  #94a3b8;
  --border:      #2d3748;
}

/* ── Slide base ── */
.remark-slide-content {
  background-color: var(--dark-bg);
  color: var(--text-main);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  padding: 1.5em 2.5em;
}

/* ── Portada ── */
.remark-slide-content.portada {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2em 3em;
}

/* ── Títulos ── */
h1, h2, h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  color: #ffffff;
}

h1 { font-size: 2.2em; line-height: 1.2; margin-bottom: 0.2em; }
h2 { font-size: 1.5em; color: var(--accent); margin-bottom: 0.6em; border-bottom: 2px solid var(--accent); padding-bottom: 0.2em; }
h3 { font-size: 1.1em; color: var(--accent-soft); }

/* ── Acento en texto ── */
.accent  { color: var(--accent); font-weight: 700; }
.muted   { color: var(--text-muted); }
.grande  { font-size: 1.4em; font-weight: 700; }

/* ── Badge / etiqueta ── */
.badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.15em 0.75em;
  border-radius: 3px;
  font-size: 0.62em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8em;
}

/* ── Divisor de portada ── */
.divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0.6em 0 1em;
}

/* ── Listas ── */
ul, ol {
  padding-left: 1.4em;
  line-height: 1.8;
}
li { margin-bottom: 0.2em; color: var(--text-main); }
li strong { color: white; }

/* ── Código inline ── */
code {
  font-family: 'Fira Code', monospace;
  font-size: 0.82em;
  background: var(--dark-card);
  color: #90caf9;
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

/* ── Bloques de código ── */
.remark-code {
  font-family: 'Fira Code', monospace !important;
  font-size: 0.8em !important;
  background: var(--dark-card) !important;
  border-radius: 6px !important;
  padding: 1em 1.2em !important;
  border-left: 4px solid var(--accent) !important;
}

/* ── Cajas de contenido ── */
.caja {
  background: var(--dark-mid);
  border-radius: 6px;
  padding: 0.8em 1.2em;
  margin: 0.6em 0;
  border-left: 4px solid var(--accent);
}

.caja-info {
  background: var(--dark-card);
  border-radius: 6px;
  padding: 0.8em 1.2em;
  margin: 0.6em 0;
  border-left: 4px solid #90caf9;
}

/* ── Dos columnas ── */
.col-izq { float: left;  width: 48%; }
.col-der { float: right; width: 48%; }
.clear   { clear: both; }

/* ── Slide de sección (fondo acento) ── */
.remark-slide-content.seccion {
  background: var(--accent);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2em 3em;
}
.seccion h1, .seccion h2 { color: white; border: none; }

/* ── Número de slide ── */
.remark-slide-number {
  color: var(--text-muted);
  font-size: 0.65em;
  font-family: 'Fira Code', monospace;
}

/* ── Notas al pie ── */
.footnote {
  position: absolute;
  bottom: 1em;
  left: 2.5em;
  font-size: 0.65em;
  color: var(--text-muted);
}

/* ── Tabla ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82em;
  margin: 0.8em 0;
}
thead th {
  background: var(--dark-card);
  color: var(--accent);
  padding: 0.5em 0.8em;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}
tbody td {
  padding: 0.45em 0.8em;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}
tbody tr:hover td { background: var(--dark-mid); }

/* ── Icono grande centrado ── */
.icono { font-size: 3em; text-align: center; display: block; margin: 0.3em 0; }

/* fix filas de tabla */
.remark-slide-content table tbody tr:nth-child(even) td {
  background: #16213e;
  color: #e2e8f0;
}
.remark-slide-content table tbody tr:nth-child(odd) td {
  background: #1a1a2e;
  color: #e2e8f0;
}