/* RACHA · estilos compartidos del sitio (legales, soporte y fallbacks de links).
   Mismo sistema visual que la web original: carbón + fuego, Bebas / DM Sans / Space Mono / Syne. */
:root {
  --fire: #FF5E1A;
  --fire-red: #E8391C;
  --fire-yellow: #FFAA00;
  --ember: #FF8C42;
  --coal: #0D0D0D;
  --charcoal: #1A1A1A;
  --ash: #2A2A2A;
  --smoke: #8A8A8A;
  --light-smoke: #B0B0B0;
  --white: #F5F5F0;
  --grad-fire: linear-gradient(135deg, #FF5E1A 0%, #E8391C 50%, #FFAA00 100%);
  --font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --font-logo: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--coal);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--ember); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--fire-yellow); }
:focus-visible { outline: 2px solid var(--fire-yellow); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--white); color: var(--coal);
  padding: 8px 14px; font-weight: 600; z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Encabezado de página */
.page-header {
  padding: 72px 20px 44px;
  text-align: center;
  border-bottom: 1px solid var(--ash);
  margin-bottom: 32px;
}
.page-logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 5px;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 32px;
  text-decoration: none;
}
.page-overline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 7vw, 56px);
  letter-spacing: 2px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.page-sub {
  font-size: 15px;
  color: var(--light-smoke);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: 1px;
}

/* Secciones */
.section { padding: 40px 0; border-bottom: 1px solid var(--ash); }
.section:last-of-type { border-bottom: none; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: 2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.section p,
.section li,
.section dd {
  font-size: 15px;
  line-height: 1.8;
  color: var(--light-smoke);
}
.section p { margin-bottom: 12px; }
.section strong { color: var(--white); font-weight: 600; }
.section ul { list-style: none; margin: 12px 0; }
.section ul li { padding-left: 20px; position: relative; margin-bottom: 6px; }
.section ul li::before { content: "—"; position: absolute; left: 0; color: var(--fire); }
.section ol { margin: 12px 0 12px 22px; }
.section ol li { margin-bottom: 6px; padding-left: 4px; }
.section h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--white);
  margin: 26px 0 8px;
}

/* Tabla de datos */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--ash); border-radius: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--ash); color: var(--light-smoke); line-height: 1.6; }
th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--smoke); font-weight: 400; background: var(--charcoal); }
tr:last-child td { border-bottom: none; }
caption.section-label { text-align: left; padding: 12px 14px 0; margin: 0; }
td strong { color: var(--white); }

/* Bloque resumen */
.tldr-block {
  margin: 0 0 32px;
  padding: 28px 24px;
  background: rgba(255,94,26,0.05);
  border: 1px solid rgba(255,94,26,0.18);
  border-radius: 2px;
}
.tldr-block .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 10px;
}
.tldr-block p, .tldr-block li { font-size: 16px; line-height: 1.7; color: var(--white); }
.tldr-block ul { list-style: none; }
.tldr-block li { padding-left: 20px; position: relative; margin-bottom: 6px; }
.tldr-block li::before { content: "—"; position: absolute; left: 0; color: var(--fire); }

/* Contacto */
.contact-block {
  padding: 24px 20px;
  background: var(--charcoal);
  border: 1px solid var(--ash);
  border-radius: 2px;
  margin-top: 16px;
}
.info-row { display: flex; gap: 16px; align-items: baseline; margin-bottom: 10px; }
.info-row:last-child { margin-bottom: 0; }
.info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--smoke);
  min-width: 140px;
  flex-shrink: 0;
}
.info-value { font-size: 15px; color: var(--light-smoke); line-height: 1.7; }

.contact-card {
  padding: 36px 24px;
  background: rgba(255,94,26,0.05);
  border: 1px solid rgba(255,94,26,0.18);
  border-radius: 2px;
  text-align: center;
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 12px;
}
.contact-card .title { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: 2px; margin-bottom: 8px; }
.contact-card .sub { font-size: 14px; color: var(--light-smoke); margin-bottom: 22px; }
.contact-card .sub.mail { margin: 16px 0 0; }
.section.section-contact { padding-top: 0; border-bottom: none; }

.btn-fire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  background: var(--grad-fire);
  color: var(--coal);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-fire:hover { color: var(--coal); opacity: 0.92; }

/* FAQ */
.faq { margin-top: 20px; }
.faq h3 { margin: 28px 0 0; font-size: 18px; color: var(--ember); }
.faq details { border-top: 1px solid var(--ash); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--ash); }
.faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--fire); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { margin-top: 12px; }
.faq details p, .faq details li { font-size: 15px; }

/* Pie */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--ash);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--smoke);
}
.footer-logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 5px;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--light-smoke);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--fire); }

/* Fallback de links (/f/ y /r/) */
.fallback { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 56px 20px 40px; position: relative; overflow: hidden; }
.fallback .glow { position: absolute; left: 50%; bottom: -40%; transform: translateX(-50%); width: 140%; height: 80%; background: radial-gradient(ellipse, rgba(255,94,26,.26), transparent 65%); pointer-events: none; }
.fallback .wrap { width: 100%; max-width: 440px; position: relative; z-index: 1; text-align: center; }
.fallback .kick { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; color: var(--ember); text-transform: uppercase; margin-top: 8px; }
.fallback h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 11vw, 56px); line-height: 1; letter-spacing: 1px; margin: 10px 0 14px; }
.fallback .lead { color: var(--light-smoke); font-size: 16px; margin-bottom: 24px; }
.fallback .lead.tight { margin-bottom: 8px; }
.fallback .code {
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 28px; letter-spacing: 6px;
  padding: 12px 20px; border: 1px dashed rgba(255,140,66,.5); border-radius: 4px; color: var(--white); margin: 4px 0 20px;
}
.fallback ol { text-align: left; margin: 0 0 28px 22px; color: var(--light-smoke); font-size: 15px; }
.fallback ol li { margin-bottom: 8px; padding-left: 4px; }
.fallback ol strong { color: var(--white); }
.fallback .ex-list { list-style: none; text-align: left; margin: 0 0 28px; }
.fallback .ex-list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; font-weight: 600; }
.fallback .ex-list .n { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--ember); }
.fallback .hint { color: var(--smoke); font-size: 13px; margin-top: 16px; }
.fallback .foot { margin-top: 40px; font-size: 12px; }
.fallback .foot a { color: var(--light-smoke); margin: 0 10px; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 640px) {
  .page-header { padding-top: 56px; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-label { min-width: 0; }
  .footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
