/* Juego Criollo — hoja de estilos principal */

:root {
  --violet: #5b2be0;
  --violet-deep: #3d1caa;
  --violet-ink: #241447;
  --violet-soft: #f1edfd;
  --violet-mist: #f8f6fe;
  --lime: #c6f432;
  --lime-deep: #9fd10a;
  --lime-ink: #3a4d00;
  --ink: #1d1433;
  --ink-60: #55496e;
  --ink-40: #8a7fa3;
  --paper: #ffffff;
  --line: #e6e0f4;
  --danger: #b3261e;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 10px 30px rgba(43, 22, 105, 0.10), 0 2px 6px rgba(43, 22, 105, 0.06);
  --shadow-card-hover: 0 18px 44px rgba(43, 22, 105, 0.16), 0 4px 10px rgba(43, 22, 105, 0.08);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--violet-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 640;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--tint { background: var(--violet-mist); }
.section--violet { background: linear-gradient(135deg, var(--violet-ink) 0%, var(--violet-deep) 100%); color: #efeafd; }
.section--violet h2, .section--violet h3 { color: #ffffff; }
.section--violet a { color: var(--lime); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.section--violet .kicker { background: rgba(255,255,255,0.12); color: var(--lime); }

.lede { font-size: 1.12rem; color: var(--ink-60); max-width: 46em; }
.section--violet .lede { color: #cfc4ef; }

/* ---------- Age banner ---------- */
.agebar {
  background: var(--ink);
  color: #f4f1fb;
  font-size: 0.83rem;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.45;
}
.agebar strong { color: var(--lime); }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo { width: 40px; height: 40px; flex: none; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 680;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
}
.brand__name em { font-style: normal; color: var(--violet); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-60);
  font-weight: 560;
  font-size: 0.94rem;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--violet-soft); color: var(--violet-deep); }
.site-nav a.is-cta {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  margin-left: 6px;
}
.site-nav a.is-cta:hover { background: var(--lime-deep); color: #263300; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 88% -10%, rgba(198,244,50,0.24), transparent 60%),
    radial-gradient(900px 520px at -10% 110%, rgba(91,43,224,0.10), transparent 55%),
    var(--paper);
  padding: 76px 0 84px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}
.hero h1 em { font-style: italic; color: var(--violet); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.hero__note { font-size: 0.85rem; color: var(--ink-40); margin-top: 18px; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn--lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 6px 18px rgba(159,209,10,0.35); }
.btn--lime:hover { background: var(--lime-deep); color: #263300; transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--violet); color: var(--violet); }
.btn--ghost:hover { background: var(--violet-soft); }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--violet-deep); color: #fff; transform: translateY(-2px); }

/* Snapshot card */
.snapshot {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 30px 24px;
  border-top: 5px solid var(--lime);
  transform: rotate(0.8deg);
}
.snapshot h2 { font-size: 1.25rem; margin-bottom: 18px; }
.snapshot ul { list-style: none; margin: 0; padding: 0; }
.snapshot li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
  align-items: baseline;
}
.snapshot li:last-child { border-bottom: none; }
.snapshot li strong { color: var(--violet-deep); }
.snapshot__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  position: relative;
  top: 4px;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pillar {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
}
.pillar__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--violet-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pillar h3 { font-size: 1.12rem; }
.pillar p { font-size: 0.94rem; color: var(--ink-60); margin: 0; }

/* ---------- Operator cards ---------- */
.op-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.op-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.op-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.op-card__top { display: flex; align-items: center; gap: 18px; }
.op-card__logo {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.op-card__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-card__logo--text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.op-card__logo--text span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.op-card__id h3 { margin: 0 0 4px; }
.op-card__domain {
  font-size: 0.83rem;
  color: var(--ink-40);
  word-break: break-all;
}
.op-card__score {
  margin-left: auto;
  text-align: center;
  background: var(--violet-soft);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 84px;
}
.op-card__score b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--violet-deep);
  line-height: 1.1;
}
.op-card__score small { font-size: 0.68rem; color: var(--ink-40); text-transform: uppercase; letter-spacing: 0.06em; }
.op-card__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.op-card__facts span {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--violet-mist);
  border: 1px solid var(--line);
  color: var(--violet-deep);
  border-radius: 999px;
  padding: 5px 12px;
}
.op-card p { font-size: 0.95rem; color: var(--ink-60); margin: 0; }
.op-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}
.op-card__foot .btn { padding: 11px 22px; font-size: 0.92rem; }
.op-card__age { font-size: 0.78rem; color: var(--ink-40); }

/* ---------- Comparison table ---------- */
.tablewrap { overflow-x: auto; margin-top: 36px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.92rem;
  min-width: 640px;
}
table.compare th, table.compare td { padding: 14px 18px; text-align: left; }
table.compare thead th {
  background: var(--violet-ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
table.compare tbody tr:nth-child(even) { background: var(--violet-mist); }
table.compare tbody td:first-child { font-weight: 700; }
table.compare .ok { color: var(--violet-deep); font-weight: 700; }

/* ---------- Steps / method ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
.step {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--lime-deep);
  display: block;
  margin-bottom: 8px;
}
.step h3 { font-size: 1.06rem; }
.step p { font-size: 0.93rem; color: var(--ink-60); margin: 0; }

/* ---------- Resource cards ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.res-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-card h3 { font-size: 1.05rem; color: #fff; margin: 0; }
.res-card p { font-size: 0.9rem; color: #cfc4ef; margin: 0; flex-grow: 1; }
.res-card a { font-weight: 700; font-size: 0.9rem; }
.res-card--light {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.res-card--light h3 { color: var(--ink); }
.res-card--light p { color: var(--ink-60); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 54px 19px 24px;
  font-weight: 650;
  font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--violet);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 20px; color: var(--ink-60); font-size: 0.96rem; }

/* ---------- RG band ---------- */
.rg-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}
.rg-band__help {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.rg-band__help p { margin-bottom: 10px; font-size: 0.94rem; }
.rg-band__phone {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--lime);
  font-weight: 700;
  display: block;
  margin: 6px 0 4px;
}

/* ---------- Prose (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(760px 320px at 92% -20%, rgba(198,244,50,0.20), transparent 60%),
    var(--violet-mist);
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 21em; }
.page-hero .lede { margin-bottom: 0; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.7em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.18rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.92rem; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose table th { background: var(--violet-soft); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--lime);
  background: var(--violet-mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-60);
}
.callout {
  background: var(--violet-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.6em 0;
  font-size: 0.95rem;
}
.callout--age { border-left: 5px solid var(--danger); background: #fdf1f0; }
.callout strong:first-child { display: inline-block; }

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.sidebox {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px;
  font-size: 0.9rem;
}
.sidebox h3 { font-size: 1rem; margin-bottom: 10px; }
.sidebox ul { list-style: none; margin: 0; padding: 0; }
.sidebox li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sidebox li:last-child { border-bottom: none; }
.sidebox--rg { border-top: 4px solid var(--lime); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: #b9aed6;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}
.site-foot a { color: #ded5f5; text-decoration: none; }
.site-foot a:hover { color: var(--lime); text-decoration: underline; }
.site-foot h4 { color: #ffffff; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 14px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 38px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; }
.foot-brand .brand__name { color: #fff; }
.foot-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--lime);
  color: var(--lime);
  font-weight: 800;
  font-size: 0.95rem;
  flex: none;
}
.foot-legal {
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.82rem;
  color: #8d80ad;
}
.foot-legal p { margin: 0; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.86rem; color: var(--ink-40); }
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .snapshot { transform: none; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .rg-band { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .op-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(43,22,105,0.12);
    gap: 6px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-radius: 10px; }
  .site-nav a.is-cta { margin-left: 0; text-align: center; }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .op-card__top { flex-wrap: wrap; }
  .op-card__score { margin-left: 0; }
  .hero { padding: 54px 0 60px; }
}
