/* Apuesta Federal — tokens & resets */
:root {
  --blue: #1a6fd4;
  --blue-deep: #0d4a9a;
  --cyan: #22c5e8;
  --cyan-soft: #e8f9fd;
  --white: #ffffff;
  --ink: #1a2433;
  --ink-muted: #5a6a7a;
  --surface: #f5f8fb;
  --surface-alt: #eef4fa;
  --accent: #22c5e8;
  --accent-grad: linear-gradient(135deg, #1a6fd4 0%, #22c5e8 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 8px 28px rgba(26, 111, 212, 0.12);
  --shadow-soft: 0 4px 16px rgba(26, 36, 51, 0.06);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --font-sans: "DM Sans", "Segoe UI", sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --max: 1120px;
  --age-h: 42px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  padding-bottom: var(--age-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; position: relative; }
a:not(.btn):not(.logo):not(.nav-link)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.28s ease;
}
a:not(.btn):not(.logo):not(.nav-link):hover::after { width: 100%; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 700; }
p { margin: 0 0 var(--space-2); }
ul { margin: 0 0 var(--space-2); padding-left: 1.25rem; }
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.band { padding: var(--space-5) 0; }
.band-tint { background: var(--surface); }
.band-alt { background: var(--surface-alt); }
.band-cyan { background: var(--cyan-soft); }

/* Age bar — persistent bottom */
.age-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
  min-height: var(--age-h);
}
.age-bar a { color: var(--cyan); }
.age-bar a::after { background: var(--cyan); }
.age-bar strong { color: var(--cyan); }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--surface-alt);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo img { width: 36px; height: 36px; }
.logo::after { display: none !important; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.nav-link:hover { color: var(--blue); }
.nav-link::after { display: none !important; }
.top-notice {
  background: var(--cyan-soft);
  color: var(--ink);
  font-size: 0.88rem;
  padding: 0.65rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(34, 197, 232, 0.25);
}
.top-notice strong { color: var(--blue-deep); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
}
.btn::after { display: none !important; }
.btn-primary {
  background: var(--accent-grad);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-secondary:hover {
  background: var(--cyan-soft);
  color: var(--blue-deep);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--blue);
  color: var(--white);
  line-height: 1.3;
}
.badge-cyan { background: var(--cyan); color: var(--ink); }
.badge-soft { background: var(--cyan-soft); color: var(--blue-deep); }
.badge-jur { background: var(--blue-deep); }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }

/* Cards — gradient highlight + left accent */
.card {
  background: linear-gradient(160deg, #ffffff 0%, #f0f9fc 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
  border-left: 4px solid var(--cyan);
  position: relative;
}
.card:hover { box-shadow: var(--shadow); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c8d4e0;
  padding: var(--space-5) 0 var(--space-4);
  font-size: 0.92rem;
}
.site-footer a { color: var(--cyan); }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.75rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: #9aabbc;
}
.footer-flourish {
  max-width: 280px;
  margin: 0 0 var(--space-3);
  opacity: 0.7;
  border-radius: var(--radius-sm);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: calc(var(--age-h) + 0.75rem);
  left: 1rem;
  right: 1rem;
  max-width: 420px;
  margin-left: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3);
  z-index: 850;
  border-left: 4px solid var(--blue);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 0.9rem; margin-bottom: var(--space-2); }

/* Modals (footer legal) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 36, 51, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open { display: flex; }
.modal-panel {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: var(--space-4);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--cyan);
}
.modal-panel h2 { font-size: 1.35rem; }
.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
}

/* Tables */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-alt);
}
.compare-table th {
  background: var(--blue-deep);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-sans);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--surface); }
.compare-table .op-name { font-weight: 700; color: var(--blue-deep); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

.muted { color: var(--ink-muted); font-size: 0.9rem; }
.note-18 { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.6rem; }
.verdict {
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  background: var(--cyan-soft);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}
.lead { font-size: 1.12rem; color: var(--ink-muted); max-width: 38rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 720px) {
  .nav { width: 100%; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
