/* ============================================================
   Jugada Bonaerense — estilos.css
   Organización por capas (ITCSS-ish):
   1. SETTINGS   — tokens (custom properties)
   2. GENERIC    — reset
   3. ELEMENTS   — base de etiquetas
   4. OBJECTS    — contenedores y grillas
   5. COMPONENTS — piezas del sitio
   6. UTILITIES  — ayudas puntuales
   ============================================================ */

/* ---------- 1. SETTINGS ---------- */
:root {
  --ink: #211436;
  --violet-950: #1e0a4e;
  --violet-900: #2e1065;
  --violet: #5b21b6;
  --violet-600: #6d28d9;
  --lime: #a3e635;
  --lime-ink: #4d7c0f;      /* familia del acento, apta para texto */
  --bg: #ffffff;
  --tint: #f5f3fb;
  --tint-2: #ece7f8;
  --line: #e2dcf1;
  --white-72: rgba(255, 255, 255, 0.72);

  --s-1: 0.25rem;  /* 4  */
  --s-2: 0.5rem;   /* 8  */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-5: 1.5rem;   /* 24 */
  --s-6: 2rem;     /* 32 */
  --s-7: 3rem;     /* 48 */
  --s-8: 4rem;     /* 64 */
  --s-9: 6rem;     /* 96 */

  --radius: 12px;
  --radius-sm: 8px;
  --container: 71.25rem;   /* 1140px */
  --container-wide: 78rem; /* 1248px */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --shadow-press: 5px 5px 0 var(--ink);
}

/* ---------- 2. GENERIC ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, svg, picture { display: block; max-width: 100%; }

/* ---------- 3. ELEMENTS ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.125rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p, li { max-width: 68ch; }
a {
  color: var(--violet-600);
  text-decoration: none;
  font-weight: 600;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }

/* ---------- 4. OBJECTS ---------- */
.o-wrap { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.o-wrap--wide { width: min(var(--container-wide), 100% - 2.5rem); margin-inline: auto; }
.o-section { padding-block: var(--s-8); }
.o-section--tight { padding-block: var(--s-7); }
.o-grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) {
  .o-grid--2 { grid-template-columns: 1fr 1fr; }
  .o-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.o-split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 860px) {
  .o-split { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- 5. COMPONENTS ---------- */

/* Barra de edad (fijada arriba de todo) */
.c-agebar {
  background: var(--violet-950);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
  padding: var(--s-2) var(--s-4);
}
.c-agebar p { max-width: none; margin-inline: auto; }
.c-agebar strong {
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 4px;
  padding: 0 6px;
  margin-right: 6px;
  font-size: 0.75rem;
}
.c-agebar a { color: var(--lime); font-weight: 600; }

/* Header: nav flotante en píldora */
.c-header { position: sticky; top: 0; z-index: 50; padding: var(--s-3) var(--s-4) 0; }
.c-header__pill {
  width: min(var(--container-wide), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  background: var(--white-72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: var(--s-2) var(--s-4);
  box-shadow: 0 8px 28px rgba(33, 20, 54, 0.14);
}
.c-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-size: 1.125rem; letter-spacing: -0.01em; }
.c-brand:hover { text-decoration: none; }
.c-brand svg { width: 34px; height: 34px; }
.c-nav { display: none; gap: var(--s-5); align-items: center; }
.c-nav a { color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.c-nav a[aria-current="page"] { color: var(--violet-600); }
.c-navm { position: relative; }
.c-navm summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
}
.c-navm summary::-webkit-details-marker { display: none; }
.c-navm[open] > div {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(33, 20, 54, 0.2);
  padding: var(--s-3);
  display: grid;
  gap: 2px;
  z-index: 60;
}
.c-navm a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); font-size: 0.9375rem; }
.c-navm a:hover { background: var(--tint); text-decoration: none; }
@media (min-width: 960px) {
  .c-nav { display: flex; }
  .c-navm { display: none; }
}

/* Héroe partido */
.c-hero { padding-block: var(--s-8) var(--s-8); }
.c-hero__kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; font-weight: 700; color: var(--violet-600); margin-bottom: var(--s-4); }
.c-hero h1 { margin-bottom: var(--s-4); }
.c-hero__lead { font-size: 1.1875rem; margin-bottom: var(--s-5); }
.c-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-5); }
.c-hero__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Bloque de imagen con panel de color desplazado (tratamiento de imágenes) */
.c-figblock { position: relative; margin: 0; }
.c-figblock::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  background: var(--violet-900);
  border-radius: var(--radius);
}
.c-figblock--lime::before { background: var(--lime); }
.c-figblock img { position: relative; border-radius: var(--radius); width: 100%; height: auto; }
.c-figblock figcaption { position: relative; font-size: 0.8125rem; color: var(--violet-600); padding-top: var(--s-3); }

/* Botones: prensados, con sombra dura que se comprime */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 26px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-press);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
}
.c-btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; }
.c-btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.c-btn--sec { background: #fff; color: var(--violet-900); }
.c-btn--small { padding: 9px 18px; font-size: 0.9375rem; }
.c-btn:focus-visible { outline: 3px solid var(--violet-600); outline-offset: 2px; }

/* Insignias: contorneadas con texto del acento */
.c-tag {
  display: inline-block;
  border: 1.5px solid var(--lime-ink);
  color: var(--lime-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  background: transparent;
}
.c-tag--inverse { border-color: var(--lime); color: var(--lime); }

/* Banda divisoria entre secciones */
.c-divband { height: 8px; background: var(--violet-900); }
.c-divband--lime { background: var(--lime); }
hr.c-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Bandas de color con esquinas ranuradas */
.c-band { background: var(--violet-900); color: #fff; }
.c-band--tint { background: var(--tint); color: var(--ink); }
.c-band--notch-tl { clip-path: polygon(44px 0, 100% 0, 100% 100%, 0 100%, 0 44px); }
.c-band--notch-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%); }
.c-band h2, .c-band h3 { color: #fff; }
.c-band a { color: var(--lime); }
.c-band .c-kicker { color: var(--lime); }

/* Sección con textura sutil (única sección con textura) */
.c-texture {
  background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%235b21b6' fill-opacity='0.10'/%3E%3C/svg%3E");
}

/* Kicker de sección */
.c-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; font-weight: 700; color: var(--violet-600); margin-bottom: var(--s-3); }
.c-sechead { margin-bottom: var(--s-6); }
.c-sechead h2 { margin-bottom: var(--s-3); }
.c-sechead p { color: #4a3f63; }

/* Tarjetas planas (borde solo al pasar el cursor) */
.c-card {
  background: var(--tint);
  border-radius: var(--radius);
  padding: var(--s-5);
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease;
}
.c-card:hover { border-color: var(--violet); }
.c-band--tint .c-card, .c-texture .c-card { background: #fff; }

/* Tarjetas de operador */
.c-op { display: flex; flex-direction: column; gap: var(--s-4); }
.c-op__head { display: flex; align-items: center; gap: var(--s-4); justify-content: space-between; flex-wrap: wrap; }
.c-op__logo {
  background: var(--violet-950);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 128px;
}
.c-op__logo img { max-height: 34px; width: auto; }
.c-op__verdict { text-align: right; }
.c-op__verdict .c-verdict { display: block; font-size: 1.375rem; font-weight: 900; color: var(--violet-900); }
.c-op__verdict small { color: #6b6180; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.c-op__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.c-op__lic {
  font-size: 0.875rem;
  display: grid;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
  background: rgba(91, 33, 182, 0.06);
  border-radius: var(--radius-sm);
}
.c-op__lic dt { font-weight: 700; }
.c-op__lic div { display: flex; gap: 6px; flex-wrap: wrap; }
.c-op__offer { font-size: 0.9375rem; }
.c-op__offer small { display: block; color: #6b6180; font-size: 0.75rem; margin-top: 2px; }
.c-op__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: auto; }
.c-op__note { font-size: 0.75rem; color: #6b6180; }

/* Vitrina: destacado + grilla secundaria */
.c-spotlight { display: grid; gap: var(--s-5); margin-bottom: var(--s-5); }
.c-spotlight .c-card { padding: var(--s-6); }
@media (min-width: 860px) {
  .c-spotlight__body { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-6); align-items: start; }
}
.c-showgrid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .c-showgrid { grid-template-columns: 1fr 1fr; } }
.c-disclosure {
  font-size: 0.875rem;
  color: #4a3f63;
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-5);
}
.c-disclosure p { max-width: none; }

/* Tabla comparativa (colapsa a tarjetas en móvil) */
.c-tablewrap { overflow-x: auto; }
.c-table { min-width: 980px; font-size: 0.9rem; }
.c-table caption { text-align: left; font-size: 0.8125rem; color: #6b6180; padding-block: var(--s-3); caption-side: bottom; }
.c-table th, .c-table td { text-align: left; padding: var(--s-3) var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.c-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-900);
  border-bottom: 2px solid var(--violet-900);
}
.c-table tbody th { font-weight: 800; white-space: nowrap; }
.c-table .c-verdict { font-weight: 800; color: var(--violet-900); }
@media (max-width: 899px) {
  .c-tablewrap { overflow-x: visible; }
  .c-table { min-width: 0; display: block; }
  .c-table caption, .c-table tbody { display: block; }
  .c-table thead { display: none; }
  .c-table tbody tr {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    padding: var(--s-4);
    margin-bottom: var(--s-4);
    border: 1.5px solid transparent;
  }
  .c-table tbody tr:hover { border-color: var(--violet); }
  .c-table tbody th, .c-table tbody td { display: flex; gap: var(--s-3); justify-content: space-between; border: 0; padding: 6px 0; }
  .c-table tbody td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--violet-600);
    flex-shrink: 0;
  }
  .c-table tbody td { text-align: right; }
  .c-table tbody th { font-size: 1.0625rem; border-bottom: 1px solid var(--line); padding-bottom: var(--s-2); margin-bottom: var(--s-2); }
}
@media (min-width: 900px) {
  .c-table tbody tr { background: transparent; }
  .c-table tbody tr:hover td, .c-table tbody tr:hover th { background: var(--tint); }
}

/* Franja de recursos oficiales (tras la comparativa) */
.c-resources {
  background: var(--tint-2);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
}
.c-resources__label { font-weight: 800; font-size: 0.9375rem; }
.c-resources__links { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: 0.9375rem; }
.c-resources p { max-width: none; }

/* Pasos numerados */
.c-steps { counter-reset: paso; display: grid; gap: var(--s-4); padding: 0; margin: 0; list-style: none; }
.c-steps li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; }
.c-steps li::before {
  content: counter(paso);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--violet-900);
  color: var(--lime);
  font-weight: 900;
  font-size: 1.25rem;
}
.c-steps h3 { margin-bottom: 4px; font-size: 1.0625rem; }
.c-steps p { font-size: 0.9375rem; color: #4a3f63; }

/* Listas con marcadores cuadrados del acento */
.c-squares { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.c-squares li { position: relative; padding-left: 26px; }
.c-squares li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 11px;
  height: 11px;
  background: var(--lime);
  outline: 1.5px solid var(--lime-ink);
}
.c-band .c-squares li::before { outline-color: var(--lime); }

/* Callout «¿Sabías que…?» (bloque firma) */
.c-sabias {
  background: var(--violet-900);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
}
.c-sabias::before { content: "?"; font-size: 2rem; font-weight: 900; color: var(--lime); line-height: 1; }
.c-sabias strong { color: var(--lime); display: block; text-transform: uppercase; font-size: 0.8125rem; letter-spacing: 0.1em; margin-bottom: 4px; }
.c-sabias p { font-size: 0.9840rem; max-width: none; }

/* FAQ: preguntas agrupadas bajo encabezados, respuestas visibles */
.c-faqgroup h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-600);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-4);
}
.c-faq { margin-bottom: var(--s-5); }
.c-faq h4 { margin-bottom: var(--s-2); font-size: 1.125rem; }
.c-faq p { color: #3d3355; }
.c-faq p + p { margin-top: var(--s-2); }

/* Estadísticas de la franja de confianza */
.c-stats { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.c-stats div { border-left: 3px solid var(--lime); padding-left: var(--s-4); }
.c-stats strong { display: block; font-size: 1.75rem; font-weight: 900; color: var(--lime); }
.c-stats span { font-size: 0.875rem; opacity: 0.85; }

/* Encabezado de páginas interiores */
.c-pagehead { padding-block: var(--s-7) var(--s-6); }
.c-pagehead h1 { margin-block: var(--s-3); max-width: 22ch; }
.c-pagehead__meta { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: 0.875rem; color: #6b6180; }
.c-pagehead__lead { font-size: 1.125rem; max-width: 62ch; color: #3d3355; }

/* Prosa de artículos */
.c-prose > * + * { margin-top: var(--s-4); }
.c-prose h2 { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.c-prose h3 { margin-top: var(--s-6); }
.c-prose figure { margin-block: var(--s-6); }

/* Pie: partido al medio (navegación | avisos y recursos) */
.c-footer { background: var(--violet-950); color: #d9d2ea; margin-top: var(--s-8); }
.c-footer__grid { display: grid; gap: var(--s-7); padding-block: var(--s-8); }
.c-footer__mid { display: none; }
@media (min-width: 860px) {
  .c-footer__grid { grid-template-columns: 1fr 1px 1.1fr; }
  .c-footer__mid { display: block; background: rgba(255, 255, 255, 0.14); }
}
.c-footer h2 { color: #fff; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--s-4); }
.c-footer a { color: #fff; font-weight: 500; }
.c-footer a:hover { color: var(--lime); }
.c-footer__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 1.25rem; margin-bottom: var(--s-5); }
.c-footer__brand svg { width: 38px; height: 38px; }
.c-footer__cols { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
.c-footer__cols ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); font-size: 0.9375rem; }
.c-footer__notes { display: grid; gap: var(--s-5); font-size: 0.875rem; }
.c-footer__notes p { max-width: none; }
.c-footer__base { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: var(--s-4); font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; }
.c-footer__base p { max-width: none; }

/* Aviso de cookies (no bloqueante) */
.c-cookies {
  position: fixed;
  bottom: var(--s-4);
  left: var(--s-4);
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(33, 20, 54, 0.3);
  padding: var(--s-5);
  z-index: 90;
  font-size: 0.875rem;
}
.c-cookies[hidden] { display: none; }
.c-cookies p { margin-bottom: var(--s-4); }
.c-cookies div { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- 6. UTILITIES ---------- */
.u-center { text-align: center; }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mb-4 { margin-bottom: var(--s-4); }
.u-mb-6 { margin-bottom: var(--s-6); }
.u-muted { color: #6b6180; }
.u-small { font-size: 0.875rem; }
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Revelado al entrar en pantalla (solo con JS activo) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .c-btn { transition: none; }
}
