:root {
  --bg: #f0f7f6;
  --ink: #0c252c;
  --mut: #4a6b72;
  --teal: #0e6b72;
  --teal-hover: #0a555c;
  --fur: #c47a3a;
  --card: #ffffff;
  --line: #d0e0e0;
  --on: #ffffff;
  --shadow: 0 10px 30px -8px rgba(12, 37, 44, 0.12);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1e23;
    --ink: #e8f2f1;
    --mut: #8fadb3;
    --teal: #3ec9d0;
    --teal-hover: #2eb0b7;
    --fur: #e0a45a;
    --card: #132a31;
    --line: #1f3d46;
    --on: #062226;
    --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.05rem/1.65 "Source Serif 4", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .btn, nav a {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 { font-size: 1.5rem; margin: 0 0 .5rem; }
h3 { margin: .2rem 0 .5rem; font-size: 1.3rem; }

a { color: var(--teal); }


/* ===== NAV ===== */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.3rem 1rem;
  height: 72px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (prefers-color-scheme: dark) {
  .nav {
    background: rgba(11, 30, 35, 0.85);
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

.nav nav {
  position: absolute;
  right: 2rem;
}

nav a {
  margin-left: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--teal);
}


/* ===== MAIN ===== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.2rem) 4rem;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.lead {
  font-size: 1.22rem;
  color: var(--mut);
  max-width: 34em;
  margin-bottom: 1.8rem;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--on);
  border: 0;
  border-radius: 12px;
  padding: 1rem 1.8rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 107, 114, 0.35);
  transition: all 0.18s ease;
}

.btn:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 107, 114, 0.4);
}

.btn.ghost {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--teal);
  color: var(--on);
}

/* ===== TARJETA DEL PRONÓSTICO ===== */
.pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 1.2rem 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.pick small {
  color: var(--mut);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.odds {
  display: inline-block;
  margin-top: 0.6rem;
  font: 800 1.15rem "Bricolage Grotesque", sans-serif;
  color: var(--fur);
  background: color-mix(in srgb, var(--fur) 12%, transparent);
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
}

.locked {
  transform: rotate(1.2deg);
  border: 2px dashed var(--line);
}

.blur {
  filter: blur(7px);
  user-select: none;
  opacity: 0.85;
}

.lock {
  position: absolute;
  right: 1.3rem;
  bottom: 1.1rem;
  margin: 0;
  font: 700 0.85rem "Bricolage Grotesque", sans-serif;
  background: var(--ink);
  color: var(--bg);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== FORMULARIO ===== */
.chk {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.note {
  color: var(--mut);
  font-size: 0.93rem;
  margin-top: 1.2rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.2rem, 4vw, 3rem);
  color: var(--mut);
  font-size: 0.9rem;
  text-align: center;
  background: color-mix(in srgb, var(--bg) 80%, var(--line));
}

footer a {
  margin: 0 0.7rem;
  color: var(--mut);
  text-decoration: none;
}
footer a:hover { color: var(--teal); }

.age b {
  background: var(--ink);
  color: var(--bg);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  margin-right: 0.45rem;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 2rem;
  }
  .locked { transform: none; }
  .nav { padding: 0.9rem 1.2rem; }
}

@media (max-width: 820px) {
  .logo img {
    max-width: 240px;
    max-height: 100px;
  }

  .logo {
    font-size: 1.2rem;
  }
}

.nav {
  height: 64px;
}

.logo img {
  height: 48px;
}


/* CHECKS DE COMPRA */
.purchase-form {
  margin-top: 1.5rem;
}

.consents {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
}

.consents .chk {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--mut);
}

.consents .chk input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.consents .chk a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Orden de los elementos en móvil */
@media (max-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero > article {
    order: -1;
  }

  .hero > div {
    order: 1;
  }
}

