:root {
  --green-primary: #2E7D32;
  --green-accent: #66BB6A;
  --bg: #FFFFFF;
  --bg-soft: #F7F9F7;
  --text-primary: #212121;
  --text-secondary: #4A4A4A;
  --border: #E0E5E0;
  --banner-bg: #1B5E20;
  --banner-text: #FFFFFF;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green-primary: #66BB6A;
    --green-accent: #81C784;
    --bg: #1C1C1E;
    --bg-soft: #2A2A2C;
    --text-primary: #F5F5F5;
    --text-secondary: #B5B5B5;
    --border: #3A3A3C;
    --banner-bg: #0F3D12;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
}

a {
  color: var(--green-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3 {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; margin-top: 2em; }
h3 { font-size: 1.1rem; margin-top: 1.4em; }

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  display: none;
  background: var(--banner-bg);
  color: var(--banner-text);
  padding: 6px 14px;
  font-size: 0.8rem;
  line-height: 1.3;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-banner a,
.cookie-banner button {
  color: var(--banner-text);
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.cookie-banner button:hover,
.cookie-banner a:hover {
  opacity: 0.85;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.brand {
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--green-primary);
  letter-spacing: -0.01em;
}

.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--green-primary);
}

/* ===== Layout ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.hero {
  text-align: center;
  padding: 30px 0 16px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.hero p.lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 1.6em;
}

/* ===== Play badge ===== */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: not-allowed;
  user-select: none;
  position: relative;
}

.play-badge__icon {
  display: inline-block;
  width: 18px;
  height: 20px;
  background: linear-gradient(135deg, var(--green-accent), var(--green-primary));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0.75;
}

.play-badge__pill {
  display: inline-block;
  background: var(--green-primary);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

/* ===== "Cómo funciona" ===== */
.how {
  margin-top: 36px;
}

.how h2 {
  text-align: center;
  margin-bottom: 1em;
}

.how__grid {
  display: grid;
  gap: 16px;
}

.how__step {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.how__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how__step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.how__step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Legal pages ===== */
.legal h1 {
  margin-bottom: 0.3em;
}

.legal__updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.6em;
}

.legal h2 {
  border-top: 1px solid var(--border);
  padding-top: 1.4em;
}

.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* ===== Contact ===== */
.contact-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 18px;
}

.contact-card a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 22px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.site-footer__links {
  margin-top: 6px;
}

.site-footer__links a {
  color: var(--text-secondary);
  margin: 0 4px;
}

.site-footer__links a:hover {
  color: var(--green-primary);
}

/* ===== Responsive ===== */
@media (min-width: 600px) {
  .how__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .how__step {
    flex-direction: column;
    text-align: left;
  }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.4rem; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .how__step {
    text-align: center;
    align-items: center;
  }
}
