:root {
  --bg: #f2f4f7;
  --sheet: #ffffff;
  --soft: #eef1f4;
  --ink: #111821;
  --muted: #5d6875;
  --line: #d5dce5;
  --navy: #0e223a;
  --blue: #1b5fa7;
  --lime: #6b8f32;
  --orange: #c7772f;
  --red: #93433d;
  --shadow: 0 10px 26px rgba(17, 24, 33, 0.08);
  --max: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  line-height: 1.62;
  background:
    linear-gradient(180deg, rgba(27,95,167,0.06), transparent 12%),
    linear-gradient(180deg, #f2f4f7 0%, #eef2f6 100%);
}
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.statusbar {
  background: var(--navy);
  color: #edf4fb;
  font-size: .93rem;
}
.statusbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 10px 0;
}

.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}
.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  color: var(--ink);
}
.brand-square {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  font: 700 1.2rem Georgia, serif;
  box-shadow: var(--shadow);
}
.brand-copy strong,
.brand-copy span { display: block; }
.brand-copy strong { font: 700 1.18rem Georgia, serif; }
.brand-copy span { color: var(--muted); font-size: .92rem; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}
.site-nav a { font-weight: 700; color: var(--ink); }

.hero-band,
.chapter-band,
.sheet,
.data-box,
.offer-strip,
.legal-box,
.faq-box,
.contact-box,
.resource-sheet,
.age-modal {
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-band,
.chapter-band,
.sheet,
.offer-strip,
.legal-box,
.faq-box,
.contact-box,
.resource-sheet,
.age-modal {
  padding: 24px;
}
.data-box { padding: 12px; overflow-x: auto; }

.page {
  padding: 26px 0 34px;
}
.stack { display: grid; gap: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.eyeline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: #e7eef6;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 14px;
}

.breadcrumbs { color: var(--muted); font-size: .94rem; margin-bottom: 10px; }
h1, h2, h3 {
  margin: 0 0 14px;
  line-height: 1.08;
  font-family: Georgia, "Times New Roman", serif;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 1.08rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white;
  font-weight: 800;
}
.btn:hover { text-decoration: none; }
.btn.alt {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14,34,58,0.20);
}

.chapter-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.chapter-link {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}
.chapter-link strong { display: block; margin-bottom: 4px; color: var(--navy); }

.signal-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.signal-grid:last-child { border-bottom: none; }
.signal-grid strong { color: var(--blue); }

.offer-strip {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 18px;
  align-items: center;
}
.offer-logo {
  width: 210px;
  height: 84px;
  object-fit: contain;
  object-position: left center;
}
.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.flag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.notice {
  padding: 16px 18px;
  border-left: 5px solid var(--orange);
  background: #fff6ec;
}
.notice.warn {
  border-left-color: var(--red);
  background: #fbebe8;
}

.list,
.plain-list {
  margin: 0;
  padding-left: 20px;
}
.list li,
.plain-list li { margin-bottom: 8px; }

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #e8edf3;
  color: var(--navy);
  font-family: Georgia, serif;
}

.resource-list {
  display: grid;
  gap: 12px;
}
.resource-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.resource-row:last-child { border-bottom: none; }
.resource-row img {
  width: 100%;
  max-width: 105px;
  height: 54px;
  object-fit: contain;
}

.footer {
  margin-top: 36px;
  padding: 34px 0 42px;
  background: #122532;
  color: #edf5fa;
}
.footer a { color: #d4ecfb; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.footer-note {
  padding: 20px;
  background: rgba(255,255,255,0.06);
}

.skip-anchor { position: absolute; left: 0; top: 0; }
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17,24,33,0.62);
}
.age-badge {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), #d59a4b);
  margin-bottom: 16px;
}
#contenido:target ~ .age-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 980px) {
  .site-header .container { grid-template-columns: 1fr; }
  .site-nav { justify-content: flex-start; }
  .duo, .tri, .chapter-nav, .offer-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .signal-grid, .resource-row { grid-template-columns: 1fr; gap: 6px; }
  .hero-band,
  .chapter-band,
  .sheet,
  .offer-strip,
  .legal-box,
  .faq-box,
  .contact-box,
  .resource-sheet,
  .age-modal { padding: 20px; }
}
