:root {
  --ink: #e8e4dc;
  --muted: #a7b0bb;
  --line: #2c3644;
  --paper: #12161c;
  --card: #1b222c;
  --header: #0d1218;
  --accent: #e07a4c;
  --accent-dark: #c46236;
  --ok: #8fd0b0;
  --field: #121820;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(224, 122, 76, .12), transparent 50%),
    var(--paper);
  line-height: 1.45;
}
.top { background: var(--header); border-bottom: 1px solid var(--line); }
.top-inner, main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 0; }
.brand { display: flex; gap: 14px; align-items: center; }
.brand strong { display: block; font-size: 18px; }
.brand span { display: block; color: #b7aea2; font-size: 13px; }
.logo { height: 52px; width: auto; display: block; mix-blend-mode: lighten; }
nav { display: flex; gap: 8px; }
nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
nav a.active, nav a:hover { background: #243040; }
main { padding: 28px 0 88px; }
.pie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding: 8px 16px 10px;
  background: var(--header);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.pie p { margin: 0; }
.firma { margin-top: 2px; color: #d7cfc4; }
h1 { font-size: 32px; line-height: 1.15; margin: 0 0 8px; }
h2 { margin: 0 0 12px; font-size: 20px; }
h3 { margin: 0 0 4px; }
.intro p, .ayuda { color: var(--muted); }
a { color: #9ec0ff; }
.panel, .nota {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
}
.panel { overflow-x: auto; }
.acceso { max-width: 560px; }
.acceso-grid { grid-template-columns: 1fr; }
.check-linea { flex-direction: row; align-items: flex-start; font-weight: 400; }
.check-linea input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.contenido-zip { font-size: 0.8em; font-style: italic; color: var(--muted); }
.registro {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.aviso {
  background: #163028;
  border: 1px solid #2f6b52;
  color: var(--ok);
  border-radius: 12px;
  padding: 14px 16px;
}
.drop {
  border: 1px dashed #465264;
  border-radius: 12px;
  padding: 16px;
  background: #151b24;
  margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ancho { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 650; }
input, select, button { font: inherit; color: var(--ink); }
input, select {
  font-weight: 400;
  border: 1px solid #3a4656;
  background: var(--field);
  border-radius: 8px;
  padding: 9px 10px;
  color-scheme: dark;
}
input[readonly] { color: var(--muted); }
input::placeholder { color: #7d8794; }
.acciones { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.envio {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.envio label { min-width: 260px; }
.check { display: flex; align-items: center; gap: 6px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
button, .boton {
  background: var(--accent);
  color: #1a100c;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
button:hover, .boton:hover { background: var(--accent-dark); color: #fff8f4; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.boton.secundario { background: #2a3646; color: var(--ink); }
.alerta {
  background: #3a221f;
  border: 1px solid #8a4a3e;
  color: #f3c7bc;
  border-radius: 12px;
  padding: 14px 16px;
  white-space: pre-wrap;
}
.fila-ayuda { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.fila-ayuda .nota { margin-top: 16px; }
.video-box {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.video-box h2 { font-size: 16px; }
.video-box video, .video-marco {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0f14;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.video-marco {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 12px;
}
.video-marco p { margin: 0; color: var(--muted); font-size: 13px; }
.video-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.video-play::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #1a100c;
}
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dos article { background: #151b24; border-radius: 12px; padding: 12px 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.guia td:first-child { font-weight: 650; width: 28%; }
table.guia td:last-child { width: 32%; }
.marca {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #243040;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.marca.si { background: #3a2a22; color: #f0c2a8; }
table.historico { table-layout: fixed; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.corte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.links a { color: var(--ok); }
.busqueda { display: flex; gap: 8px; margin-top: 8px; }
.busqueda input { flex: 1; }
.vacio { color: var(--muted); }
.fila-botones { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
form.en-linea { display: inline; margin: 0; }
button.peligro { background: #6e3030; color: #f4e8e6; }
#lista-local { margin: 8px 0 0; padding-left: 18px; color: var(--ink); }
#lista-local li { margin: 4px 0; }
code { font-family: Consolas, monospace; font-size: .92em; color: #f0d7c8; }
@media (max-width: 800px) {
  .grid, .dos, .fila-ayuda { grid-template-columns: 1fr; }
  .ancho { grid-column: span 2; }
  .top-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid, .dos, .ancho { grid-template-columns: 1fr; grid-column: auto; }
}
