/* =========================================================
   criptojugador.com — Hub stylesheet
   Style: tech-modern / Theme: dark
   Accent: #f0833a (warm orange)
   ========================================================= */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --color-bg: #0d0f14;
  --color-surface: #161922;
  --color-surface-2: #1d2130;
  --color-text: #e6e8ec;
  --color-text-secondary: #9ba3b1;
  --color-text-muted: #6b7280;
  --color-accent: #f0833a;
  --color-accent-soft: rgba(240, 131, 58, 0.12);
  --color-accent-glow: rgba(240, 131, 58, 0.25);
  --color-border: #232732;
  --color-border-strong: #2f3445;
  --color-success: #4ade80;
  --color-warning: #fbbf24;

  --content-width: 760px;
  --content-width-wide: 980px;
  --section-gap: 3rem;
  --transition: 0.25s ease;

  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  opacity: 0.78;
}

/* ---------- BODY ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--color-accent-soft), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99, 102, 241, 0.05), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  text-align: left;
}

/* ---------- HEADER ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  color: var(--color-accent);
  font-size: 1.4rem;
  line-height: 1;
}

.logo-tld {
  color: var(--color-text-muted);
  font-weight: 400;
}

.primary-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.primary-nav a {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

/* ---------- MAIN / ARTICLE ---------- */
main {
  padding: 2rem 1.5rem 4rem;
}

article {
  max-width: 1200px;
  margin: 0 auto;
}

article > section,
article > nav,
article > div {
  margin-bottom: var(--section-gap);
}

/* ---------- HERO (gradient-bg) ---------- */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(240, 131, 58, 0.18) 0%, rgba(240, 131, 58, 0.02) 35%, transparent 65%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  padding: 3rem 2rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--color-accent-glow), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

/* ---------- BYLINE BLOCK ---------- */
.byline-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.byline-block .author {
  color: var(--color-text);
}

.byline-block .author-label {
  color: var(--color-text-muted);
  margin-right: 0.35rem;
}

.byline-block .author strong {
  color: var(--color-text);
  font-weight: 600;
}

.byline-block .author-role {
  color: var(--color-text-secondary);
  margin-left: 0.35rem;
}

.byline-block .dates {
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.byline-block .dot-sep {
  color: var(--color-text-muted);
  margin: 0 0.35rem;
}

.hero-image {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* ---------- TOC (two-column-grid) ---------- */
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.75rem 1.5rem;
}

.toc h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}

.toc-grid li {
  position: relative;
  padding-left: 1.5rem;
}

.toc-grid li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  opacity: 0.65;
}

.toc-grid a {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.toc-grid a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ---------- TL;DR ---------- */
.tldr {
  background: linear-gradient(135deg, var(--color-accent-soft), transparent 70%), var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
}

.tldr h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.tldr ul {
  display: grid;
  gap: 0.9rem;
}

.tldr li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--color-text);
}

.tldr li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.tldr strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- SHORTLIST ---------- */
.shortlist {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.shortlist h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  color: var(--color-text);
}

.shortlist > p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.shortlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.shortlist-table thead th {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border-strong);
  background: rgba(0, 0, 0, 0.2);
}

.shortlist-table tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.5;
  color: var(--color-text);
}

.shortlist-table tbody tr:last-child td {
  border-bottom: none;
}

.shortlist-table tbody tr:hover {
  background: rgba(240, 131, 58, 0.04);
}

.shortlist-table time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.shortlist-table a {
  font-weight: 500;
}

.shortlist-footnote {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.55;
}

/* ---------- ARTICLE SECTIONS ---------- */
article section h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.25;
  scroll-margin-top: 5rem;
}

article section h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

article section p {
  margin-bottom: 1.1rem;
  color: var(--color-text);
}

article section p:last-child {
  margin-bottom: 0;
}

article section em {
  color: var(--color-text);
  font-style: italic;
}

article section strong {
  color: var(--color-text);
  font-weight: 600;
}

article section img {
  margin: 1.75rem 0 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ---------- DATA TABLE (inside sections) ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.data-table thead th {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--color-border-strong);
  background: var(--color-surface-2);
}

.data-table tbody td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  line-height: 1.5;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- COMPONENT: info-box ---------- */
.info-box {
  background: rgba(240, 131, 58, 0.06);
  border: 1px solid rgba(240, 131, 58, 0.25);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box.ymyl {
  background: rgba(251, 191, 36, 0.05);
  border-color: rgba(251, 191, 36, 0.25);
  border-left-color: var(--color-warning);
}

.info-box-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem !important;
  font-weight: 600;
}

.info-box.ymyl .info-box-label {
  color: var(--color-warning);
}

.info-box p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- COMPONENT: worked-example ---------- */
.worked-example {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  position: relative;
}

.worked-example::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  border-radius: 0 2px 2px 0;
}

.example-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.85rem !important;
}

.worked-example ol {
  counter-reset: step;
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding-left: 0;
}

.worked-example ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25rem;
  font-size: 0.94rem;
  line-height: 1.6;
}

.worked-example ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- COMPONENT: callout ---------- */
.callout {
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.callout-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.6rem !important;
}

.callout p:not(.callout-title) {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.callout.helpline {
  border-left: 3px solid var(--color-success);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.06), transparent 70%), var(--color-surface);
}

.callout.helpline .callout-title {
  color: var(--color-success);
}

.callout.helpline strong {
  color: var(--color-text);
}

/* ---------- COMPONENT: comparison ---------- */
.comparison {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.comparison-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem !important;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparison table thead th {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border-strong);
}

.comparison table tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.comparison table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- FAQ ACCORDION ---------- */
section[id="faq"] h2 {
  margin-bottom: 1.5rem;
}

details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

details[open] {
  border-color: var(--color-border-strong);
}

details summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-right: 3rem;
  line-height: 1.4;
  transition: background var(--transition);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
}

details[open] summary::after {
  content: "−";
}

details summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

details > div {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

details > div p {
  margin-top: 1rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- YMYL DISCLAIMER ---------- */
.ymyl-disclaimer {
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}

.ymyl-disclaimer h2 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 0.85rem;
}

.ymyl-disclaimer p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg), #08090c);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col ul a {
  color: var(--color-text);
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 28ch;
}

.footer-badge {
  max-width: 200px;
  height: auto;
  opacity: 0.85;
  border-radius: var(--radius-sm);
}

.footer-responsible p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.footer-responsible strong {
  color: var(--color-accent);
}

.age-badge {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.footer-bottom p:first-child {
  font-style: italic;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 7rem;
  }

  main {
    padding: 1.25rem 1rem 3rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .primary-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 2rem 1.25rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .byline-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .tldr,
  .shortlist,
  .ymyl-disclaimer {
    padding: 1.25rem 1rem;
  }

  article section h2 {
    font-size: 1.4rem;
  }

  article section h3 {
    font-size: 1.08rem;
  }

  .shortlist-table,
  .data-table,
  .comparison table {
    font-size: 0.82rem;
  }

  .shortlist-table thead,
  .shortlist-table tbody,
  .shortlist-table tr,
  .shortlist-table td,
  .shortlist-table th {
    display: block;
  }

  .shortlist-table thead {
    display: none;
  }

  .shortlist-table tbody tr {
    border-bottom: 1px solid var(--color-border-strong);
    padding: 0.75rem 0.5rem;
  }

  .shortlist-table tbody td {
    border-bottom: none;
    padding: 0.3rem 0;
  }

  .shortlist-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-accent);
    display: inline-block;
    margin-right: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand,
  .footer-responsible {
    grid-column: span 2;
  }

  details summary {
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-responsible {
    grid-column: auto;
  }
}

.ventajas-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.ventajas-list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.65;
  font-size: 0.97rem;
}

.ventajas-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.ventajas-list strong {
  color: var(--color-text);
  font-weight: 600;
}
