/* =========================================================
   PBA Argentina Guía — hoja de estilos principal
   Mobile first. Sin frameworks ni dependencias externas.
   ========================================================= */

:root {
  /* Superficies */
  --ink-900: #080C17;
  --ink-800: #0E1424;
  --ink-700: #141C30;
  --ink-600: #1B2540;
  --edge:    rgba(255, 255, 255, .10);
  --edge-2:  rgba(255, 255, 255, .18);

  /* Papel (tarjetas claras) */
  --paper:      #FFFFFF;
  --paper-soft: #F4F6FB;
  --paper-line: #E3E8F2;

  /* Texto */
  --on-dark:       #EAEEF7;
  --on-dark-muted: #9AA6BF;
  --on-paper:      #131A29;
  --on-paper-muted:#5A657C;

  /* Acentos */
  --amber:      #F2A93B;
  --amber-deep: #C97C12;
  --teal:       #37B7A4;
  --teal-deep:  #17786C;

  /* Tipografía */
  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  /* Métrica */
  --wrap: 1180px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, .65);
  --shadow-paper: 0 22px 50px -28px rgba(6, 10, 20, .55);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-dark);
  background: var(--ink-800);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(242, 169, 59, .12), transparent 62%),
    radial-gradient(900px 560px at 4% 4%, rgba(55, 183, 164, .09), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: #17110A; padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.14; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
strong { font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: .85em;
  padding-bottom: .4em;
  border-bottom: 2px solid rgba(242, 169, 59, .35);
}

.lead { font-size: 1.08rem; color: var(--on-dark-muted); max-width: 68ch; }

/* ---------- Barra de edad ---------- */
.agebar {
  background: var(--ink-900);
  border-bottom: 1px solid var(--edge);
  font-size: .78rem;
  color: var(--on-dark-muted);
}
.agebar__inner { display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.agebar__tag {
  background: var(--amber); color: #17110A; font-weight: 800;
  padding: 1px 8px; border-radius: 999px; font-size: .72rem; letter-spacing: .04em;
  flex-shrink: 0;
}

/* ---------- Cabecera ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 12, 23, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--on-dark); }
.brand__mark { color: var(--amber); display: flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; letter-spacing: -.02em; font-size: 1.02rem; }
.brand__sub { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-muted); }

.navtoggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--edge-2); border-radius: var(--r-sm); cursor: pointer;
}
.navtoggle__bars { display: block; width: 20px; }
.navtoggle__bars i {
  display: block; height: 2px; background: var(--on-dark); border-radius: 2px;
  margin: 4px 0; transition: transform .22s ease, opacity .18s ease;
}
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mainnav { display: none; }
.mainnav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink-900); border-bottom: 1px solid var(--edge);
  padding: 12px 20px 22px;
}
.mainnav__list { list-style: none; margin: 0 0 14px; padding: 0; }
.mainnav__link {
  display: block; padding: 12px 2px; text-decoration: none;
  border-bottom: 1px solid var(--edge); font-weight: 600;
}
.mainnav__link.is-current { color: var(--amber); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .96rem; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1A1206;
  box-shadow: 0 12px 26px -14px rgba(242, 169, 59, .9);
}
.btn--accent:hover { box-shadow: 0 16px 32px -14px rgba(242, 169, 59, 1); }

.btn--outline { border-color: var(--edge-2); color: var(--on-dark); background: rgba(255,255,255,.04); }
.btn--outline:hover { background: rgba(255,255,255,.1); }

.btn--ghost {
  border-color: var(--paper-line); color: var(--on-paper); background: var(--paper);
}
.btn--ghost:hover { background: var(--paper-soft); }

.btn--sm { padding: 9px 16px; font-size: .86rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Secciones ---------- */
.section { padding-block: 60px; }
.section--tint { background: rgba(8, 12, 23, .55); border-block: 1px solid var(--edge); }
.section__head { max-width: 68ch; margin-bottom: 34px; }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 44px; }
.hero__flag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-muted); border: 1px solid var(--edge-2);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__flag b { color: var(--teal); font-weight: 700; }
.hero h1 { margin-bottom: .38em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__text { font-size: 1.1rem; color: var(--on-dark-muted); max-width: 60ch; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px;
  font-size: .82rem; color: var(--on-dark-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none;
}

/* Panel del sello regulatorio (elemento firma) */
.seal {
  margin-top: 38px; border: 1px solid var(--edge);
  border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  padding: 22px;
}
.seal__title {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); font-weight: 700; margin-bottom: 14px;
}
.seal__grid { display: grid; gap: 16px; }
.seal__item { border-left: 2px solid rgba(242,169,59,.4); padding-left: 13px; }
.seal__k { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.seal__v { font-weight: 700; font-size: .98rem; }

/* ---------- Tarjetas de oferta ---------- */
.offers { display: grid; gap: 20px; }

.offer {
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--on-paper);
  border-radius: var(--r-lg); padding: 26px 22px 22px;
  box-shadow: var(--shadow-paper);
  display: flex; flex-direction: column;
}
.offer__rail {
  position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, var(--amber), var(--teal));
}
.offer__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.offer__rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink-800); color: var(--amber);
  font-family: var(--font-num); font-weight: 700; font-size: .9rem; flex: none;
}
.offer__logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(140deg, var(--ink-700), var(--ink-600));
  color: var(--amber); font-weight: 800; letter-spacing: .02em;
}
.offer__id { display: flex; flex-direction: column; line-height: 1.2; }
.offer__brand { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.offer__product { font-size: .85rem; color: var(--on-paper-muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px; margin-left: auto;
}
.badge--check { background: rgba(23, 120, 108, .12); color: var(--teal-deep); }
.badge--muted { background: var(--paper-soft); color: var(--on-paper-muted); }

.offer__category { font-size: .88rem; color: var(--on-paper-muted); margin-bottom: 16px; }

.offer__bonus {
  background: var(--paper-soft); border: 1px solid var(--paper-line);
  border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px;
}
.offer__bonus .eyebrow { color: var(--amber-deep); border-bottom-color: rgba(201,124,18,.3); margin-bottom: .6em; }
.offer__bonus-value { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .3em; }
.offer__bonus-note { font-size: .8rem; color: var(--on-paper-muted); margin: 0; }

.offer__features { list-style: none; padding: 0; margin: 0 0 20px; }
.offer__features li {
  position: relative; padding-left: 26px; font-size: .92rem; margin-bottom: .6em;
}
.offer__features li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px rgba(55,183,164,.18);
}

.offer__terms { font-size: .76rem; color: var(--on-paper-muted); margin: 14px 0 0; }
.offer > .btn { margin-top: auto; }

/* ---------- Tabla comparativa ---------- */
.tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
}
.ctable { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .9rem; }
.ctable th, .ctable td { padding: 14px 16px; text-align: left; vertical-align: top; }
.ctable thead th {
  background: rgba(8,12,23,.85); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber); font-weight: 700; white-space: nowrap;
}
.ctable tbody th {
  font-weight: 700; color: var(--on-dark); white-space: nowrap;
  background: rgba(8,12,23,.5);
}
.ctable tbody td { color: var(--on-dark-muted); }
.ctable tbody tr { border-top: 1px solid var(--edge); }
.ctable__cta-row td { padding-block: 18px; }
.tablehint { font-size: .78rem; color: var(--on-dark-muted); margin-top: 10px; }

/* ---------- Bloques informativos ---------- */
.cards { display: grid; gap: 18px; }
.card {
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  padding: 24px 22px; background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  display: inline-block; font-family: var(--font-num); font-size: .78rem;
  color: var(--amber); letter-spacing: .1em; margin-bottom: 12px;
}

.notice {
  border: 1px solid rgba(242,169,59,.3); border-left-width: 4px;
  border-radius: var(--r-md); padding: 18px 20px;
  background: rgba(242,169,59,.07); font-size: .93rem;
}
.notice--teal { border-color: rgba(55,183,164,.32); background: rgba(55,183,164,.07); }
.notice p:last-child { margin-bottom: 0; }
.notice__title { font-weight: 800; margin-bottom: .4em; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--edge); }
.faq__item { border-bottom: 1px solid var(--edge); }
.faq__q { margin: 0; font-size: 1rem; }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; padding: 18px 2px; cursor: pointer;
  text-align: left; font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
}
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--amber); border-radius: 2px;
  transition: transform .22s ease, opacity .2s ease;
}
.faq__icon::before { inset: 7px 0 7px 0; height: 2px; }
.faq__icon::after  { inset: 0 7px 0 7px; width: 2px; }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a { padding: 0 2px 20px; color: var(--on-dark-muted); font-size: .95rem; }
.faq__a p { margin: 0; max-width: 74ch; }

/* ---------- Contenido legal ---------- */
.legal { padding-block: 48px 64px; }
.legal h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 3vw, 1.65rem); }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--on-dark-muted); }
.legal strong { color: var(--on-dark); }
.legal a { color: var(--amber); }
.legal__meta {
  font-size: .82rem; color: var(--on-dark-muted);
  border: 1px solid var(--edge); border-radius: var(--r-md);
  padding: 12px 16px; margin-bottom: 30px;
}
.legal__toc { border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 34px; }
.legal__toc h2 { margin-top: 0; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.legal__toc ol { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.legal__toc a { color: var(--on-dark); text-decoration: none; }
.legal__toc a:hover { color: var(--amber); text-decoration: underline; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--on-dark-muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--r-md);
  border: 1px solid var(--edge-2); background: rgba(255,255,255,.05);
  color: var(--on-dark);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(154,166,191,.65); }
.field input:focus, .field textarea:focus { border-color: var(--amber); }
.field textarea { min-height: 165px; resize: vertical; }
.field--error input, .field--error textarea { border-color: #E5736B; }
.field__error { color: #F0938C; font-size: .82rem; }

.checkline { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--on-dark-muted); }
.checkline input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--amber); }

.alert { border-radius: var(--r-md); padding: 15px 18px; font-size: .93rem; margin-bottom: 24px; }
.alert--ok  { background: rgba(55,183,164,.12); border: 1px solid rgba(55,183,164,.35); }
.alert--bad { background: rgba(229,115,107,.12); border: 1px solid rgba(229,115,107,.35); }
.alert p:last-child { margin-bottom: 0; }

/* ---------- Pie ---------- */
.footer {
  margin-top: 20px; background: var(--ink-900);
  border-top: 1px solid var(--edge); padding-block: 48px 34px;
  font-size: .9rem;
}
.footer__top { display: grid; gap: 34px; padding-bottom: 32px; border-bottom: 1px solid var(--edge); }
.footer__title {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.footer__lede { color: var(--on-dark-muted); margin-top: 14px; }
.footer__disclosure {
  color: var(--on-dark); font-size: .84rem;
  border-left: 3px solid var(--amber); padding-left: 13px;
}
.brand__mark--footer { color: var(--amber); display: inline-flex; }
.footer__nav ul, .footer__help ul { list-style: none; padding: 0; margin: 0; }
.footer__nav li, .footer__help li { margin-bottom: .55em; color: var(--on-dark-muted); }
.footer__nav a, .footer__help a { color: var(--on-dark-muted); text-decoration: none; }
.footer__nav a:hover, .footer__help a:hover { color: var(--amber); text-decoration: underline; }
.footer__note { margin-top: 16px; color: var(--on-dark-muted); }
.footer__legal { padding-top: 26px; color: var(--on-dark-muted); font-size: .82rem; }
.footer__legal p { max-width: 90ch; }
.footer__copy { color: rgba(154,166,191,.7); }

/* ---------- Aviso de cookies ---------- */
.cookiebar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  background: var(--ink-700); border: 1px solid var(--edge-2);
  border-radius: var(--r-lg); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8);
  padding: 18px 20px;
}
.cookiebar[hidden] { display: none; }
.cookiebar__text { font-size: .88rem; color: var(--on-dark-muted); margin: 0 0 14px; }
.cookiebar__text a { color: var(--amber); }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
