/* El Rincón del Value — estilos globales */

:root {
  --bg: #0B0F14;
  --bg-alt: #0E131A;
  --bg-footer: #080B0F;
  --surface: #111821;
  --border: #1C2530;
  --border-strong: #2A3644;
  --text: #E6EBF0;
  --text-body: #C3CCD5;
  --muted: #A9B4BF;
  --subtle: #8C98A5;
  --accent: #3FD39A;
  --accent-hover: #7BE5BC;
  --accent-ink: #06140D;
  --negative: #F08A5D;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 12px;
  --radius-lg: 14px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 16px; z-index: 10; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.logo { font-family: var(--font-display); font-size: 28px; line-height: 1.2; color: var(--text); }
.logo em, .accent-italic { font-style: italic; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 8px;
  font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 12px 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--subtle); }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--accent-ink); }

/* Tipografía */
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.display {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.5px;
}
.display .soft { font-style: italic; color: var(--muted); }
.h2 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4vw, 48px); line-height: 1.1;
}
.lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.mono { font-family: var(--font-mono); }

/* Secciones */
.section { border-top: 1px solid var(--border); }
.section--alt { background: var(--bg-alt); }
.section > .container { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }

/* Hero */
.hero { padding: 96px 0 88px; }
.hero .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.stat-card {
  flex: 1 1 380px; min-width: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 22px;
}
.stat-card-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--subtle); }
.stat-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border-radius: 10px; overflow: hidden;
}
.stat { background: var(--surface); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--font-mono); font-size: 34px; font-weight: 500; line-height: 1.2; }
.stat-value.pos { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--subtle); }
.note { margin: 0; font-size: 14px; color: var(--subtle); }

/* Tarjetas */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
a.card:hover { border-color: var(--border-strong); }
.card h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.card-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.card-tag { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--subtle); }
.card-title { font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--text); }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
thead tr { background: var(--surface); }
th {
  padding: 14px 18px; text-align: left; font-weight: 500; color: var(--subtle);
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}
td { padding: 14px 18px; border-top: 1px solid var(--border); }
.num { text-align: right; font-family: var(--font-mono); }
.pos { color: var(--accent); }
.neg { color: var(--negative); }

.type-card .type-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.type-card .type-head strong { font-size: 18px; font-weight: 600; }
.type-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.type-metrics div { display: flex; flex-direction: column; gap: 2px; }
.type-metrics .v { font-family: var(--font-mono); font-size: 22px; font-weight: 500; }
.type-metrics .l { font-size: 13px; color: var(--subtle); }
.h3 { margin: 0; font-size: 20px; font-weight: 600; }

/* Pasos */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 280px; min-width: 0; border-top: 2px solid var(--accent); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps .step-n { font-family: var(--font-mono); color: var(--subtle); }
.steps strong { font-size: 20px; font-weight: 600; }
.steps span:last-child { color: var(--muted); }

/* Planes */
.plans { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.plan {
  flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.plan--featured { border-color: var(--accent); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-head h3 { margin: 0; font-size: 22px; font-weight: 600; }
.badge {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.badge--outline { background: transparent; color: var(--muted); border: 1px solid var(--border-strong); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-family: var(--font-mono); font-size: 44px; font-weight: 500; line-height: 1.1; }
.price .per { color: var(--subtle); }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.plan .btn { margin-top: auto; }

.checkout {
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.checkout-head { display: flex; flex-direction: column; gap: 6px; }
.checkout-head strong { font-size: 18px; font-weight: 600; }
.checkout-slot {
  min-height: 120px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--subtle);
  font-family: var(--font-mono); font-size: 13px; text-align: center; padding: 16px;
}

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--border); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 500; min-height: 44px; display: flex; align-items: center; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; padding-left: 16px; color: var(--accent); font-family: var(--font-mono); font-size: 22px; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--muted); }
.faq a { color: var(--accent); }
.narrow { max-width: 860px; }

/* Pie */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-footer); }
.site-footer .container {
  padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 32px; align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.footer-brand .logo { font-size: 24px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--subtle); }
.footer-brand a { color: var(--muted); text-decoration: underline; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--subtle); }
.footer-col a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--text); }

/* Blog: listado */
.page-head { padding: 80px 0 40px; }
.page-head .container { display: flex; flex-direction: column; gap: 18px; }
.page-head .display { font-size: clamp(44px, 6vw, 68px); line-height: 1.05; }
.post-list { padding-bottom: 96px; }
.post-list .container { display: flex; flex-direction: column; gap: 20px; }
.post-featured {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between;
}
.post-featured:hover { border-color: var(--border-strong); }
.post-featured > div { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.post-featured .title { font-family: var(--font-display); font-size: 36px; line-height: 1.15; color: var(--text); }
.post-featured .read { color: var(--accent); font-weight: 500; }
.upcoming { border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; }

/* Listado compacto de previas de partidos */
.post-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.post-rows li + li { border-top: 1px solid var(--border); }
.post-rows a { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: baseline; padding: 18px 24px; background: var(--surface); }
.post-rows a:hover { background: #141D27; }
.post-rows .row-title { font-weight: 500; color: var(--text); }
.post-rows .row-meta { font-family: var(--font-mono); font-size: 13px; color: var(--subtle); }
.hub-link {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; background: var(--surface);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
}
.hub-link:hover { border-color: var(--border-strong); }
.hub-link .t { font-size: 18px; font-weight: 500; color: var(--text); }
.hub-link .go { color: var(--accent); font-weight: 500; }
.hub-note { margin-top: 32px; max-width: 680px; color: var(--muted); }
.hub-note h2 { font-size: 20px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.hub-note p { margin: 0 0 10px; }

/* Tablas dentro de artículos */
.article .table-wrap { margin: 4px 0; }
.article table { min-width: 520px; font-size: 15px; line-height: 1.5; }
.article th, .article td { padding: 12px 14px; }

/* Artículo */
.article { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; }
.article .back { font-size: 15px; color: var(--subtle); min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.article .back:hover { color: var(--text); }
.article h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 58px); line-height: 1.08; }
.article .standfirst { margin: 0; font-size: 21px; color: var(--muted); line-height: 1.55; }
.article .meta { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.article h2 { margin: 24px 0 0; font-size: 26px; font-weight: 600; line-height: 1.3; }
.article p { margin: 0; color: var(--text-body); }
.article ul, .article ol { margin: 0; padding-left: 22px; color: var(--text-body); display: flex; flex-direction: column; gap: 10px; }
.article strong { color: var(--text); font-weight: 600; }
.article a { color: var(--accent); }
.article a:hover { color: var(--accent-hover); }
.article a.btn-primary, .article a.btn-primary:hover { color: var(--accent-ink); }
.formula {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; font-family: var(--font-mono); font-size: 16px; line-height: 1.8; color: var(--text);
  overflow-x: auto;
}
.cta-box {
  margin-top: 24px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
}
.cta-box strong { font-size: 21px; line-height: 1.35; }
.cta-box p { font-size: 17px; color: var(--muted); }
.cta-box .btn { align-self: flex-start; }
.disclaimer { margin-top: 16px !important; font-size: 14px; color: var(--subtle) !important; line-height: 1.6; }

/* Legal */
.legal { padding: 72px 0 96px; }
.legal .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.legal-nav { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.legal-nav a { min-height: 36px; display: inline-flex; align-items: center; }
.legal-body { flex: 999 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 64px; line-height: 1.65; }
.legal-body section { display: flex; flex-direction: column; gap: 16px; }
.legal-body section + section { border-top: 1px solid var(--border); padding-top: 56px; }
.legal-body h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1.1; }
.legal-body h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.1; }
.legal-body h3 { margin: 16px 0 0; font-size: 20px; font-weight: 600; }
.legal-body p, .legal-body ul { margin: 0; color: var(--muted); }
.legal-body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-body a { color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 600; }

/* 404 */
.notfound { padding: 120px 0; }
.notfound .container { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 64px; }
  .section > .container { padding-top: 64px; padding-bottom: 64px; }
  .site-nav { gap: 8px 20px; }
  .stat-value { font-size: 28px; }
  .plan, .checkout, .post-featured { padding: 24px; }
}
