/* Predixa México — hoja de estilos */

:root {
  --paper: #ffffff;
  --paper-2: #f1f3ee;
  --ink: #16211b;
  --ink-2: #4a5650;
  --line: #d9ded9;
  --verde: #0e6b47;
  --verde-oscuro: #0a3d2a;
  --verde-suave: #e3efe8;
  --rosa: #d6206e;
  --rosa-suave: #fbe4ee;
  --sube: #16a34a;
  --baja: #dc2626;
  --max: 1120px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-variation-settings: "wdth" 88;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--rosa);
  outline-offset: 3px;
}

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

/* Botones */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--verde-oscuro);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--verde-oscuro);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn:hover { background: var(--verde); border-color: var(--verde); }
.btn-ghost {
  background: transparent;
  color: var(--verde-oscuro);
}
.btn-ghost:hover { background: var(--verde-suave); border-color: var(--verde-oscuro); }
.btn-small { padding: 10px 18px; font-size: .95rem; }

/* Barra superior */

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.wordmark {
  font-weight: 800;
  font-size: 2rem;
  font-variation-settings: "wdth" 88;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.logo-x {
  display: inline-block;
  width: 0.447em;
  height: 0.48em;
  margin: 0 0.04em;
  vertical-align: 0;
  overflow: visible;
}
.topnav { display: flex; gap: 28px; }
.topnav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-2);
}
.topnav a:hover { color: var(--ink); }

/* Hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--ink-2);
}

/* Tarjeta de mercado */

.market {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 22px 22px 20px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--verde-suave);
}
.market-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.market-tag {
  background: var(--paper-2);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.market-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
}
.market-live i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--verde);
  display: inline-block;
}
.market-q {
  margin-top: 16px;
  font-size: 1.45rem;
  font-weight: 700;
  font-variation-settings: "wdth" 95;
  line-height: 1.2;
}
.market-prob {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.market-prob strong {
  font-size: 2.6rem;
  font-weight: 800;
  font-variation-settings: "wdth" 88;
  color: var(--verde);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.market-prob span { color: var(--ink-2); font-size: .95rem; }
.spark {
  width: 100%;
  height: 80px;
  margin-top: 10px;
  display: block;
}
.spark-line {
  fill: none;
  stroke: var(--verde);
  stroke-width: 2.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.market-buttons {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.side {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  border: 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: default;
}
.side b {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.side-si { background: var(--verde-suave); color: var(--verde-oscuro); }
.side-no { background: var(--rosa-suave); color: var(--rosa); }
.market-meta {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: .9rem;
}
.market-meta div { display: flex; gap: 10px; }
.market-meta dt { color: var(--ink-2); min-width: 8.5em; }
.market-meta dd { margin: 0; font-weight: 500; }

/* Cinta de mercados */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  font-size: .95rem;
}
.ticker-track {
  display: inline-block;
  animation: ticker 46s linear infinite;
  max-height: 999999px; /* evita que Chrome en Android agrande el texto */
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-copy { display: inline-block; }
.ticker-track span { padding: 0 16px; }
.ticker-track b { font-weight: 700; margin-left: 5px; }
.ticker-track .si { color: var(--verde); }
.ticker-track .no { color: var(--rosa); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .ticker-track { animation-duration: 36s; }
  .ticker-track span { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Con "Reducir movimiento" activado no hay animación:
     queda una sola línea que se puede deslizar con el dedo. */
  .ticker { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker-track { animation: none; }
  .ticker-copy[aria-hidden="true"] { display: none; }
}

/* Secciones */

.section { padding: 88px 24px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }
.section-lead {
  margin-top: 16px;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 36em;
}
.section-alt { background: var(--paper-2); }
.section-dark {
  background: var(--verde-oscuro);
  color: #fff;
}
.section-dark .section-lead { color: #c9dccf; }
.section-cta { background: var(--verde-suave); }

/* Pasos (es una secuencia real, por eso van numerados) */

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--verde);
  margin-bottom: 10px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); }

/* Comparativa */

.compare {
  margin-top: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare-row + .compare-row { border-top: 1px solid rgba(255,255,255,.18); }
.compare-row > div { padding: 20px 24px; }
.compare-row > div:first-child {
  color: #b8cabe;
  border-right: 1px solid rgba(255,255,255,.18);
}
.compare-head > div {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(255,255,255,.07);
}
.compare-head > div:first-child { color: #fff; }

/* Categorías */

.cats {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.cats li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cats svg {
  width: 48px;
  height: 48px;
  grid-row: span 2;
  fill: none;
  stroke: var(--verde);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cats p { color: var(--ink-2); }

/* Hecho en México */

.mexico {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plain li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.plain li:first-child { padding-top: 0; }
.plain b { color: var(--ink); font-weight: 700; }

/* Preguntas */

#preguntas details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
#preguntas details:first-of-type { margin-top: 32px; border-top: 1px solid var(--line); }
#preguntas summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
#preguntas summary::-webkit-details-marker { display: none; }
#preguntas summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--verde);
  flex: none;
}
#preguntas details[open] summary::after { content: "–"; }
#preguntas details p {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 40em;
}

/* Lista de espera */

.waitlist {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.waitlist input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font: inherit;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}
.waitlist .form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.waitlist button:disabled { opacity: .65; cursor: wait; }
.form-ok {
  margin-top: 28px;
  font-weight: 600;
  color: var(--verde-oscuro);
}
.form-error {
  margin-top: 18px;
  font-weight: 600;
  color: #9b2c2c;
}

/* Pie */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 48px;
  font-size: .9rem;
  color: var(--ink-2);
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand {
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-brand .wordmark { font-size: 1.4rem; margin: 0; }
.footer-pais { font-weight: 600; color: var(--ink-2); margin-left: 4px; }
.footer-legal { max-width: 60em; }
.footer-contact { margin-top: 14px; }

/* Responsivo */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .mexico { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topnav { display: none; }
  .cats { grid-template-columns: 1fr; gap: 0; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .compare-head { display: none; }
  .compare-row > div::before {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #c9dccf;
  }
  .compare-row > div:first-child::before { content: "Casa de apuestas"; }
  .compare-row > div:last-child::before { content: "Predixa"; }
  .waitlist { flex-direction: column; }
  .market { box-shadow: 6px 6px 0 var(--verde-suave); }
}
