/* Mercado Pago Casino — base layout & tokens */
@import url("components.css");

:root {
  --bg: #f7f5f0;
  --bg-elevated: #ffffff;
  --border: #e2ddd4;
  --text: #1a1814;
  --muted: #5c574f;
  --accent: #00c2a8;
  --accent-strong: #009a85;
  --accent-h: 168;
  --gold: #c9a227;
  --gold-h: 43;
  --pitch: #121110;
  --link: #006b5c;
  --link-hover: #004d42;
  --link-on-dark: #7ee8d8;
  --link-on-dark-hover: #b8fff4;
  --on-accent: #0a0a0a;
  --on-pitch-muted: #b8b2a8;
  --font: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-meta: "IBM Plex Mono", "Courier New", monospace;
  --radius: 6px;
  --max: 1120px;
  --shadow: 0 2px 12px rgba(26, 24, 20, 0.08);
  --header-h: 3.5rem;
  --section-gap: clamp(2rem, 4vw, 3.5rem);
  --transition: 0.2s ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

a:hover {
  color: var(--link-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

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

.meta-label {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 1000;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--link);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  cursor: pointer;
}

.burger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: none;
}

.nav-menu.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 1.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  z-index: 850;
}

.nav-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.nav-list li {
  border-bottom: 1px solid var(--border);
}

.nav-list a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--link);
}

.header-cta {
  margin-top: auto;
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    inset: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    gap: 1.5rem;
  }

  .nav-list {
    display: flex;
    gap: 0.25rem 1rem;
    margin: 0;
    flex-wrap: wrap;
  }

  .nav-list li {
    border: 0;
  }

  .nav-list a {
    padding: 0.25rem 0;
    font-size: 0.9rem;
  }

  .header-cta {
    margin-top: 0;
    white-space: nowrap;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: 0;
}

.lede {
  font-size: 1.0625rem;
}

.section-intro {
  color: var(--muted);
  max-width: 42rem;
}

.breadcrumb {
  padding: 1rem 0 0.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--muted);
}

.breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--link);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-accent:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.pitch-band {
  background: var(--pitch);
  color: #fff;
}

.pitch-band a:not(.btn) {
  color: var(--link-on-dark);
}

.pitch-band a:not(.btn):hover {
  color: var(--link-on-dark-hover);
}

.accent-band {
  background: linear-gradient(135deg, rgba(0, 194, 168, 0.08), rgba(0, 194, 168, 0.02));
  border: 1px solid rgba(0, 194, 168, 0.2);
  border-radius: var(--radius);
  padding: var(--section-gap) 1.25rem;
  margin: var(--section-gap) 0;
}

.muted-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--section-gap) 1.25rem;
}

.compact-list {
  list-style: none;
  padding: 0;
}

.compact-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.compact-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.prose-compact h3 {
  margin-top: 1.5rem;
}

.disclaimer-list {
  font-size: 0.875rem;
  color: var(--muted);
  counter-reset: disc;
  list-style: none;
  padding: 0;
}

.disclaimer-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  counter-increment: disc;
}

.disclaimer-list li::before {
  content: counter(disc) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-meta);
  font-size: 0.75rem;
  color: var(--accent-strong);
}

.site-footer {
  max-width: none;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 2rem;
}

.site-footer .btn-accent:hover {
  background: var(--accent);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.footer-note,
.footer-copy {
  color: var(--on-pitch-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--link-on-dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--link-on-dark-hover);
}

.footer-copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  text-align: center;
}

@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .burger-bar {
    transition: none;
  }
}
