/* ==========================================================================
   components.css : las piezas con las que se arma cada lamina
   ========================================================================== */

/* ── Rejillas ────────────────────────────────────────────────────────────── */
.grid      { display: grid; gap: 18px; }
.g2        { grid-template-columns: 1fr 1fr; }
.g3        { grid-template-columns: repeat(3, 1fr); }
.g4        { grid-template-columns: repeat(4, 1fr); }
.g-1-2     { grid-template-columns: 1fr 2fr; }
.g-2-1     { grid-template-columns: 2fr 1fr; }
.g-5-7     { grid-template-columns: 5fr 7fr; }
.g-7-5     { grid-template-columns: 7fr 5fr; }
.gap-sm    { gap: 12px; }
.gap-lg    { gap: 26px; }
.stack     { display: flex; flex-direction: column; gap: 14px; }
.row       { display: flex; align-items: center; gap: 14px; }
.center-y  { align-items: center; }

/* ── Tarjeta base ────────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.card.flush { padding: 0; }

.card .card-ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 9px;
  display: block;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.012em;
  margin-bottom: 7px;
  line-height: 1.25;
}

.card p { font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }

/* Acento lateral, la firma visual del deck */
.card.lit { border-color: rgba(24, 188, 242, 0.3); box-shadow: var(--glow); }
.card.lit::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent);
}

.card.gold  { border-color: rgba(245, 196, 81, 0.32); }
.card.gold .card-ix { color: var(--gold); }
.card.gold::before { background: var(--gold); box-shadow: 0 0 16px var(--gold); }

.card.muted { background: transparent; border-style: dashed; }

/* ── Icono en cuadro ─────────────────────────────────────────────────────── */
.ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(24, 188, 242, 0.12);
  border: 1px solid rgba(24, 188, 242, 0.24);
  margin-bottom: 13px;
  flex: none;
}

.ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.g { background: rgba(245, 196, 81, 0.12); border-color: rgba(245, 196, 81, 0.26); }
.ico.g svg { stroke: var(--gold); }
.ico.sm { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 0; }
.ico.sm svg { width: 16px; height: 16px; }

/* ── Cifras grandes ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.stat { padding: 22px 20px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }

.stat .n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.stat .n small { font-size: 21px; color: var(--text-dim); font-weight: 500; margin-left: 3px; }
.stat .l { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }

/* ── Fichas / etiquetas ──────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  white-space: nowrap;
}

.chip.on { border-color: rgba(24, 188, 242, 0.42); color: var(--accent); background: rgba(24, 188, 242, 0.09); }
.chip.gold { border-color: rgba(245, 196, 81, 0.4); color: var(--gold); background: rgba(245, 196, 81, 0.08); }
.chip.off { opacity: 0.45; }

/* ── Tabla ───────────────────────────────────────────────────────────────── */
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.t th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  padding: 0 14px 11px;
  border-bottom: 1px solid var(--line);
}

table.t td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  line-height: 1.45;
  vertical-align: top;
}

table.t tr:last-child td { border-bottom: none; }
table.t td:first-child { color: var(--text); font-weight: 600; }
table.t tr.hi td { background: rgba(24, 188, 242, 0.07); }
table.t tr.hi td:first-child { color: var(--accent); }
table.t .yes { color: var(--ok); font-weight: 600; }
table.t .no  { color: var(--danger); opacity: 0.85; }
table.t .mid { color: var(--gold); }
table.t.compact td { padding: 8.5px 14px; font-size: 13.5px; }

/* ── Bloque de codigo ────────────────────────────────────────────────────── */
.code {
  background: #0D1117;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  font-family: var(--font-mono);
}

:root[data-theme="light"] .code { background: #0D1117; }

.code .code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B949E;
}

.code .code-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #30363D; }
.code .code-bar .dot:first-child { background: #484F58; }
.code .code-bar .nm { margin-left: 6px; }

.code pre {
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.72;
  color: #E6EDF3;
  overflow: hidden;
  white-space: pre;
}

.code.sm pre { font-size: 12.5px; line-height: 1.66; padding: 14px 16px; }

/* Coloreado a mano, sin librerias. Los tonos son los del tema oscuro de
   GitHub, asi que un fragmento pegado aqui se ve igual que en el sitio. */
.k  { color: #FF7B72; }               /* palabra clave, clave YAML */
.s  { color: #A5D6FF; }               /* cadena */
.n  { color: #79C0FF; }               /* numero, constante */
.c  { color: #8B949E; font-style: italic; }  /* comentario */
.d  { color: #7EE787; }               /* etiqueta, guion de lista, simbolo */
.v  { color: #E6EDF3; }               /* valor plano */
.fn { color: #D2A8FF; }               /* nombre de funcion */

/* Lineas de un diff, como las pinta GitHub */
.ad { color: #7EE787; background: rgba(46, 160, 67, 0.15); display: inline-block; width: 100%; }
.rm { color: #FFA198; background: rgba(248, 81, 73, 0.15); display: inline-block; width: 100%; }

/* Linea resaltada dentro del codigo */
.code .hl { background: rgba(88, 166, 255, 0.10); display: inline-block; width: 100%; box-shadow: inset 2px 0 0 var(--accent); }

/* ── Cita / frase de cierre ──────────────────────────────────────────────── */
.quote {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.38;
  letter-spacing: -0.015em;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  max-width: 880px;
}

.quote .who { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 16px; }

/* ── Lista numerada con energia ──────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 13px; }

.step { display: flex; gap: 15px; align-items: flex-start; }

.step .num {
  flex: none;
  width: 29px; height: 29px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 600;
}

.step .num.g { background: var(--gold); }
.step .num.hollow { background: transparent; border: 1px solid var(--line); color: var(--text-faint); }
.step .tx { font-size: 15px; line-height: 1.55; color: var(--text-dim); padding-top: 3px; }
.step .tx b { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; font-size: 15.5px; }

/* ── Portada ─────────────────────────────────────────────────────────────── */
.cover { display: flex; flex-direction: column; justify-content: center; height: 100%; max-width: 690px; }

/* Los logos institucionales son arte solido en negro, asi que van sobre una
   placa clara. Una sola placa para los tres se lee como un sello. */
.cover .logos {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 30px;
  background: #FFFFFF;
  padding: 10px 18px;
  border-radius: 11px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
}
.cover .logos img { height: 40px; width: auto; display: block; }
.cover .logos .sep { width: 1px; height: 26px; background: rgba(11, 22, 32, 0.16); }

.cover .uni {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}

.cover h1 {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 0.92;
  margin-bottom: 26px;
}

.cover h1 .thin {
  display: block;
  font-weight: 300;
  color: var(--text-dim);
  font-size: 30px;
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.cover .lede {
  font-size: 18.5px;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.cover .lede b { color: var(--text); font-weight: 600; }

.cover .who {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  justify-content: start;
}

.cover .who b { color: var(--text); display: block; font-weight: 600; margin-bottom: 3px; letter-spacing: 0.01em; font-size: 13.5px; }

/* ── Lamina de seccion ───────────────────────────────────────────────────── */
.section-slide { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.section-slide .big-n {
  font-family: var(--font-display);
  font-size: 150px;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  opacity: 0.55;
  margin-bottom: 8px;
}
.section-slide h2 { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 16px; }
.section-slide p { font-size: 18px; color: var(--text-dim); max-width: 620px; line-height: 1.55; }

/* ── Indice ──────────────────────────────────────────────────────────────── */
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 34px; }

.toc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}

.toc-item:hover { background: var(--surface); border-color: var(--line); transform: translateX(3px); }
.toc-item .tn { font-family: var(--font-mono); font-size: 12px; color: var(--accent); width: 22px; flex: none; }
.toc-item .tt { font-size: 15.5px; color: var(--text); font-weight: 550; }
.toc-item .td { font-size: 12.5px; color: var(--text-faint); margin-left: auto; font-family: var(--font-mono); white-space: nowrap; }

/* ── Diagrama: caja y flecha ─────────────────────────────────────────────── */
.dbox {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 13px 15px;
  text-align: center;
}

.dbox .dt { font-size: 14px; font-weight: 650; color: var(--text); margin-bottom: 3px; }
.dbox .ds { font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: 0.04em; }
.dbox.core { border-color: rgba(24, 188, 242, 0.45); background: rgba(24, 188, 242, 0.08); box-shadow: var(--glow); }
.dbox.core .dt { color: var(--accent); }

/* ── Comparacion dos columnas ────────────────────────────────────────────── */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.versus .side { padding: 22px 26px; }
.versus .side.a { border-right: none; }
.versus .vs {
  width: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  position: relative;
}
.versus .vs::before { content: ""; position: absolute; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.versus .vs span { background: var(--bg); padding: 8px 0; position: relative; z-index: 1; }
.versus h4 { font-family: var(--font-display); font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.versus .side.a h4 { color: var(--danger); }
.versus .side.b h4 { color: var(--accent); }
.versus li { list-style: none; font-size: 14px; line-height: 1.5; color: var(--text-dim); padding-left: 20px; position: relative; margin-bottom: 10px; }
.versus li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.versus .side.a li::before { background: rgba(255, 122, 107, 0.6); }
.versus .side.b li::before { background: var(--accent); box-shadow: 0 0 9px var(--accent); }

/* ── Aviso / nota al pie de lamina ───────────────────────────────────────── */
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(245, 196, 81, 0.07);
  border: 1px solid rgba(245, 196, 81, 0.22);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

.note.cy { background: rgba(24, 188, 242, 0.07); border-color: rgba(24, 188, 242, 0.22); }
.note b { color: var(--text); }
.note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note.cy svg { stroke: var(--accent); }

/* ── Pie de referencias ──────────────────────────────────────────────────── */
.refs { font-size: 13px; line-height: 1.85; color: var(--text-dim); }
.refs .r { display: flex; gap: 12px; }
.refs .r span:first-child { font-family: var(--font-mono); color: var(--accent); flex: none; width: 24px; }
.refs .r a, .refs .r .u { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* ── Lamina de demo ──────────────────────────────────────────────────────── */
.demo-hero { display: flex; flex-direction: column; justify-content: center; height: 100%; align-items: flex-start; }
.demo-hero .big {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 20px;
}
.demo-hero .big em { -webkit-text-stroke: 1.2px var(--accent); color: transparent; font-style: normal; }

/* ── Captura de pantalla real, montada como ventana ──────────────────────── */
.shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #F2F5F8;
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(24, 188, 242, 0.12);
  /* La placa se ajusta a la imagen, no al ancho de la columna, para que no
     quede borde blanco sobrante ni se desborde el alto de la lamina. */
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  vertical-align: top;
}

.shot .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: #E4E9EF;
  border-bottom: 1px solid rgba(11, 22, 32, 0.10);
}

.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #C3CCD6; display: block; }
.shot .bar .u {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #6B7B8B;
  letter-spacing: 0.04em;
}

.shot img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: var(--shot-h, 408px);
}
.shot.tall  { --shot-h: 452px; }
.shot.short { --shot-h: 320px; }
.shot.dark { background: #0B0F14; }
.shot.dark .bar { background: #141B23; border-bottom-color: rgba(255, 255, 255, 0.08); }
.shot.dark .bar i { background: #2B3742; }

.shot-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-top: 9px;
  line-height: 1.5;
}

.shot-cap em { color: var(--accent); font-style: normal; }

/* Globo que apunta a un detalle de la captura */
.callout {
  position: absolute;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.7);
  z-index: 5;
  white-space: nowrap;
}

.callout::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

.callout.left::after  { left: -4px;  top: 50%; margin-top: -4.5px; }
.callout.right::after { right: -4px; top: 50%; margin-top: -4.5px; }
.callout.down::after  { bottom: -4px; left: 50%; margin-left: -4.5px; }
.callout.g { background: var(--gold); }

.rel { position: relative; }

/* ── Ficha de producto con foto y precio ─────────────────────────────────── */
.prod {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.prod .ph {
  height: 128px;
  background: #0A1219;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.prod .ph img { max-width: 92%; max-height: 118px; object-fit: contain; }
.prod .tx { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.prod h3 { font-family: var(--font-display); font-size: 16px; font-weight: 650; margin-bottom: 3px; }
.prod .price { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 8px; letter-spacing: 0.04em; }
.prod p { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.prod .spec { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.04em; line-height: 1.6; }

/* ── Dato duro suelto, para clavar una cifra ─────────────────────────────── */
.punch {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.punch:last-child { border-bottom: none; }
.punch .p-n {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  min-width: 108px;
  line-height: 1;
}
.punch .p-n.g { color: var(--gold); }
.punch .p-t { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.punch .p-t b { color: var(--text); display: block; font-size: 14.5px; margin-bottom: 2px; }

/* ── Lamina de corte en modo cine ────────────────────────────────────────
   Video a sangre completa y una sola frase. Sirven de respiro entre bloques
   y son el unico lugar donde los clips se ven en grande, sin competir con
   texto que haya que leer. */
.cine-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: 760px;
  padding-bottom: 18px;
}

.cine-hero .ch-kick {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}



.cine-hero h2 {
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 0.98;
  margin-bottom: 22px;
  color: var(--text);
}

.cine-hero h2 .soft { color: var(--text-dim); font-weight: 300; }

.cine-hero p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 620px;
}

.cine-hero p b { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════════════
   Ajustes del tema claro.
   En oscuro una tarjeta se separa del fondo con un borde. En claro eso no
   alcanza: hace falta sombra, o todo se ve como un formulario.
   ══════════════════════════════════════════════════════════════════════════ */

.card, .prod, .ticker, .seq .sq {
  box-shadow: var(--card-shadow);
}

.card {
  background: var(--surface);
}

.card.lit {
  border-color: rgba(10, 124, 174, 0.30);
  box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(10, 124, 174, 0.08);
}

.card.lit::before {
  background: var(--accent);
  box-shadow: none;
  width: 4px;
  top: 0; bottom: 0;
  border-radius: 0;
}

.card.gold { border-color: rgba(138, 90, 0, 0.26); }
.card.gold::before { background: var(--gold); box-shadow: none; width: 4px; top: 0; bottom: 0; border-radius: 0; }

.card.muted { background: transparent; border-style: dashed; box-shadow: none; border-color: var(--line); }

/* Tipografia de las tarjetas, subida para que se lea proyectada */
.card .card-ix { font-size: 11.5px; letter-spacing: 0.18em; font-weight: 600; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p  { font-size: var(--t-body); line-height: 1.58; }

/* Iconos: el relleno palido casi no se ve sobre blanco */
.ico {
  background: var(--accent);
  border-color: var(--accent);
}
.ico svg { stroke: #FFFFFF; }
.ico.g { background: var(--gold); border-color: var(--gold); }
.ico.g svg { stroke: #FFFFFF; }

:root[data-theme="dark"] .ico { background: rgba(24, 188, 242, 0.12); border-color: rgba(24, 188, 242, 0.24); }
:root[data-theme="dark"] .ico svg { stroke: var(--accent); }
:root[data-theme="dark"] .ico.g { background: rgba(245, 196, 81, 0.12); border-color: rgba(245, 196, 81, 0.26); }
:root[data-theme="dark"] .ico.g svg { stroke: var(--gold); }

/* Avisos: sobre blanco un fondo al 7 por ciento no existe */
/* Las notas al pie de lamina van como texto, no como recuadro de color con
   icono. Una linea superior alcanza para separarlas. */
.note {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 0 0;
  font-size: var(--t-small);
  color: var(--text-dim);
  display: block;
}
.note svg { display: none; }
.note.cy { background: transparent; border-top-color: var(--line); }

:root[data-theme="dark"] .note { background: rgba(245, 196, 81, 0.08); border-color: rgba(245, 196, 81, 0.22); }
:root[data-theme="dark"] .note.cy { background: rgba(24, 188, 242, 0.08); border-color: rgba(24, 188, 242, 0.22); }

/* Fichas */
.chip { font-size: 12.5px; padding: 7px 13px; font-weight: 500; }
.chip.on { background: #E4F2F9; border-color: #A9D3E7; color: var(--accent); }
.chip.gold { background: #FBF1DC; border-color: #E0CBA0; color: var(--gold); }

:root[data-theme="dark"] .chip.on { background: rgba(88, 166, 255, 0.10); border-color: rgba(24, 188, 242, 0.42); }
:root[data-theme="dark"] .chip.gold { background: rgba(245, 196, 81, 0.09); border-color: rgba(245, 196, 81, 0.40); }

/* Tablas */
table.t { font-size: var(--t-small); }
table.t th { font-size: 11px; letter-spacing: 0.18em; color: var(--text-faint); }
table.t tr.hi td { background: #E9F4FA; }
:root[data-theme="dark"] table.t tr.hi td { background: rgba(24, 188, 242, 0.08); }

/* Cifras */
.stat .n { font-size: 44px; }
.stat .l { font-size: 13px; line-height: 1.45; }
.stats { border-color: var(--line); }

/* Pasos */
.step .tx { font-size: var(--t-body); }
.step .tx b { font-size: 16px; }
.step .num { width: 31px; height: 31px; font-size: 13px; }

/* Bloques de codigo: se quedan oscuros a proposito, funcionan como imagen */
.code { border-color: #1E2C38; box-shadow: var(--card-shadow); }

/* Diagramas */
.dbox { background: var(--surface); box-shadow: var(--card-shadow); }
.dbox.core { border-color: var(--accent); background: #E9F4FA; }
:root[data-theme="dark"] .dbox.core { background: rgba(24, 188, 242, 0.08); }

/* Comparacion a dos columnas */
.versus li { font-size: var(--t-small); }
.versus .vs span { background: var(--bg); }
.versus h4 { font-size: 18px; }

/* Indice */
.toc-item .tt { font-size: 16.5px; }
.toc-item:hover { background: var(--surface); box-shadow: var(--card-shadow); }

/* Cita */
.quote { font-size: 30px; border-left-width: 4px; }

/* Referencias */
.refs { font-size: var(--t-small); }
.refs .r a, .refs .r .u { font-size: 13px; }

/* Captura de pantalla */
.shot-cap { font-size: 12px; }

/* ── Linea de tiempo de la exposicion ────────────────────────────────────
   Los diez minutos repartidos en bloques, a escala. Sirve para que el salon
   sepa cuanto falta y para que el presentador se ubique de un vistazo. */
.tl { display: flex; align-items: stretch; gap: 3px; }

.tl-seg {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px 15px 14px;
  min-width: 0;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.tl-seg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.22;
}

.tl-seg.hot::after { opacity: 1; }
.tl-seg.hot { border-color: rgba(10, 124, 174, 0.35); }
.tl-seg:hover { transform: translateY(-3px); box-shadow: var(--glow), var(--card-shadow); }

.tl-seg .n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}

.tl-seg .l {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.25;
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-seg .m { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

.tl-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

/* El indice, con algo de cuerpo para que no flote */
.toc-item {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  padding: 13px 16px;
}

/* Bloque de codigo extra compacto, para las laminas donde el YAML es largo */
.code.xs pre { font-size: 11.5px; line-height: 1.56; padding: 13px 15px; }
.code.xs .code-bar { padding: 7px 13px; font-size: 10px; }

/* La secuencia de tres pasos, mas contenida */
.seq .sq { padding: 13px 15px; }
.seq .sq .sqt { font-size: 16.5px; margin-bottom: 4px; }
.seq .sq .sqd { font-size: 12.5px; line-height: 1.45; }
.seq .sq .sqk { font-size: 10.5px; margin-bottom: 5px; }

/* ── Marca del producto en la portada ────────────────────────────────────── */
.cover .marca {
  height: 86px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.cover .thin {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--text-dim);
  font-size: 30px;
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin-bottom: 26px;
}

/* ── Legibilidad: todo lo pequeño sube un escalon ────────────────────────── */
table.t { font-size: 15px; }
table.t.compact td { font-size: 14.5px; padding: 9.5px 14px; line-height: 1.45; }
table.t th { font-size: 12px; letter-spacing: 0.14em; }
.shot-cap { font-size: 13px; line-height: 1.55; }
.prod .spec { font-size: 11.5px; }
.prod p { font-size: 13.5px; }
.prod .price { font-size: 14.5px; }
.tl-seg .m { font-size: 11.5px; }
.tl-seg .n { font-size: 11.5px; }
.tl-axis { font-size: 11.5px; }
.chip { font-size: 13px; }
.card .card-ix { font-size: 12px; }
.note { font-size: 14.5px; }
.refs { font-size: 14px; line-height: 1.75; }
.refs .r a, .refs .r .u { font-size: 13.5px; }
.seq .sq .sqd { font-size: 13.5px; }
.ticker .tr { font-size: 14px; }
.punch .p-t { font-size: 14.5px; }
.versus li { font-size: 14.5px; }

/* La lamina de referencias reparte el espacio en vez de amontonar arriba */
.refs { font-size: 14.5px; line-height: 1.9; }
.refs .r { margin-bottom: 10px; }

/* ── Enlaces de contacto, portada y cierre ───────────────────────────────
   Van en la ultima lamina, que queda proyectada mientras hay preguntas, asi
   que se leen desde el fondo del salon: no son un pie de pagina. */
.contacto { display: flex; gap: 16px; flex-wrap: wrap; }

.contacto .en {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 22px;
  box-shadow: var(--card-shadow);
}

.contacto .en svg { width: 24px; height: 24px; flex: none; fill: var(--text); }

/* El portafolio no tiene marca, asi que lleva un icono de trazo */
.contacto .en.line svg {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacto .en .et {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.contacto .en .ev { font-size: 17.5px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }

/* ── La columna de codigo de las laminas oscuras de texto ────────────────
   A la derecha, casi transparente, subiendo muy despacio. Se disuelve por
   la izquierda y por arriba y abajo, para que nunca toque el texto. En la 06
   son lineas que se agregan, en verde. En la 14 lineas que se borran, en
   rojo y tachadas. */
.fondo-codigo {
  position: absolute;
  top: -40px; bottom: -40px; right: -40px;
  width: 44%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-composite: intersect;
}
.fc-cinta { display: flex; flex-direction: column; }
.fc-l {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 17px;
  line-height: 1.75;
  white-space: pre;
}
.fondo-codigo.agrega .fc-l { color: rgba(126, 231, 135, 0.13); }
.fondo-codigo.borra .fc-l { color: rgba(255, 161, 152, 0.13); text-decoration: line-through; text-decoration-color: rgba(255, 161, 152, 0.10); }
@keyframes fcSube { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
.slide.is-active .fc-cinta { animation: fcSube 70s linear infinite; }
.cine-hero, .final { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .slide.is-active .fc-cinta { animation: none; } }
@media print { .fondo-codigo { display: none; } }
.cine-hero ~ .fondo-codigo, .slide .fondo-codigo.agrega { width: 27%; }
