/*
  CASINO DEL KUN AGÜERO — dark editorial
  Palette: deep charcoal-blue + near-white text + Sol de Mayo gold
  Typography: Georgia serif for display, system-ui for body

  Contrast (WCAG)
  ────────────────────────────────────────────────────────
  #f2f4f7 on #0e1318  (header text on bg) : 17.2:1 AAA ✓✓✓
  #1a1506 on #d9b45c  (btn text on gold)  : 10.1:1 AAA ✓✓✓
  #b5c3cf on #131920  (body muted)        :  7.1:1 AA+ ✓✓
  #d9b45c on #0e1318  (gold on header)    :  8.6:1 AA+ ✓✓
*/

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  /* backgrounds (darkest → lightest) */
  --bg-deep:    #0b1016;   /* footer, deepest wells            */
  --bg-header:  #0e1318;   /* header                           */
  --bg-page:    #131920;   /* page body                        */
  --bg-card:    #1c242f;   /* content cards                    */
  --bg-inset:   #0a0e13;   /* image placeholder bg             */

  /* borders */
  --border:     #2a3540;
  --border-mid: #394a59;   /* dashed placeholder border        */

  /* text */
  --text:       #f2f4f7;   /* primary                          */
  --text-body:  #b5c3cf;   /* body paragraphs                  */
  --text-muted: #6b7f8e;   /* footer, captions                 */

  /* gold — Sol de Mayo */
  --gold:       #d9b45c;   /* CTA buttons, eyebrows            */
  --gold-hover: #e5c472;   /* button hover                     */
  --gold-dim:   #c5a545;   /* eyebrow labels                   */
  --gold-text:  #1a1506;   /* text ON gold button              */

  --radius:     6px;
  --max-width:  1040px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  background: var(--bg-page);
  color: var(--text-body);
}

img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
a   { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: none; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  text-wrap: balance;
  line-height: 1.28;
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem max(1.5rem, calc((100% - var(--max-width)) / 2 + 1.5rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  flex: 1 1 100%;
  order: 3;
  font-size: 0.9375rem;
}
.site-nav a { color: var(--text-body); }
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-body);
  border-radius: var(--radius);
  font-size: 1.15rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

/* Gold CTA in header */
.cta-header {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--gold);
  color: var(--gold-text);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.cta-header:hover { background: var(--gold-hover); color: var(--gold-text); }

/* ── BREADCRUMBS ─────────────────────────────────────────────────────────── */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0.75rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs .sep { margin: 0 0.35rem; }

/* ── MAIN WRAPPER ────────────────────────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── GENERIC SECTION CARD ────────────────────────────────────────────────── */
section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
}

/* Gold eyebrow label above every h2 */
section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.875rem;
}
section h2::before {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
  content: "■ ■ ■";   /* subtle decorative marker — overridden per-section below */
}

/* Section-specific eyebrows */
.highlights h2::before { content: "Sobre la plataforma"; }
.trust       h2::before { content: "Seguridad y confianza"; }
.review      h2::before { content: "Opiniones"; }
.bonuses     h2::before { content: "Bonificación"; }
.download    h2::before { content: "Aplicación móvil"; }
.payment     h2::before { content: "Método de pago"; }
.steps       h2::before { content: "Guía paso a paso"; }

section p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0;
}
section p + p { margin-top: 1rem; }

/* ── HERO SECTION ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #1e2c3a 0%, #0e1318 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4rem 3.5rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.25rem;
  max-width: 700px;
  order: 1;
}

.hero > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 0 2rem;
  order: 2;
}

/* CTA before image */
.hero .cta {
  order: 3;
  margin: 0 0 2.5rem;
}

/* Image below CTA */
.hero img {
  order: 4;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius);
  background: var(--bg-inset);
}

/* ── CTA BUTTON (gold on dark: 10:1 AAA) ─────────────────────────────────── */
.cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--gold);
  color: var(--gold-text);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  letter-spacing: 0.015em;
}
.cta:hover { background: var(--gold-hover); color: var(--gold-text); }

/* ── CARD GRID ───────────────────────────────────────────────────────────── */
.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
  padding: 0;
  margin: 1rem 0 0;
}
.card-grid li {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-body);
}

/* ── TABLE ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 1rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }

/* ── SPECS / PAYMENT INFO ────────────────────────────────────────────────── */
.specs, .payment-info {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
}
.specs li, .payment-info-item {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
}
.payment-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.payment-info-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

/* ── FAQ ACCORDION ───────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
details {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
details[open] summary { border-bottom: 1px solid var(--border); }
summary {
  cursor: pointer;
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gold-dim);
  flex-shrink: 0;
  line-height: 1;
}
details[open] summary::after { content: '−'; }
details > p, details > div {
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}

/* ── BONUS HIGHLIGHTS ────────────────────────────────────────────────────── */
.bonus-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.bonus-list li {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--text);
}
.bonus-list li::before {
  content: '★ ';
  color: var(--gold);
}

/* ── REVIEW CARDS ────────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.review-card {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem;
}
.review-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.5rem; }
.review-body  { font-size: 0.875rem; color: var(--text-body); margin: 0 0 0.5rem; }
.review-author{ font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

/* ── STEPS ───────────────────────────────────────────────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.steps-list li {
  counter-increment: steps;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem 0.875rem 3.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-body);
}
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  background: var(--gold);
  color: var(--gold-text);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 2rem max(1.5rem, calc((100% - var(--max-width)) / 2 + 1.5rem)) 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text-body); }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
}

/* ── MISC ────────────────────────────────────────────────────────────────── */
address { font-style: normal; }
.author-byline { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; flex-direction: column; width: 100%; padding: 0.5rem 0; }
  .site-nav.open { display: flex; }
  main { padding: 2rem 1rem 3.5rem; }
  .hero { padding: 2.25rem 1.25rem 2rem; }
  section { padding: 1.5rem 1.25rem; }
}
