/* ============================================================
   Hoja compartida por gracias.html, terminos.html y privacidad.html.
   Es un subconjunto de la hoja de index.html, que mantiene la suya
   propia inline porque ya esta probada. Si cambia la paleta de marca,
   hay que cambiarla en los dos lugares.
   ============================================================ */

:root {
  --fondo:        #fcfcf9;
  --superficie:   #ffffff;
  --muted:        #f0f1f3;
  --borde:        #e2e2e2;
  --navy:         #3d5a80;
  --navy-hondo:   #2e4460;
  --coral:        #ee6c4d;
  --coral-hover:  #d95b3e;
  --tinta:        #23272f;
  --tinta-2:      #4b5563;
  --tinta-3:      #6b7280;
  --ancho: 1080px;
  --ancho-texto: 720px;
  --radio: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo:      #1a1b1e;
    --superficie: #25262b;
    --muted:      #202126;
    --borde:      #373a40;
    --navy:       #7fa3cc;
    --navy-hondo: #141517;
    --tinta:      #e9eaed;
    --tinta-2:    #b6bac2;
    --tinta-3:    #8d93a0;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--fondo);
  color: var(--tinta);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}

a { color: inherit; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em; background: var(--muted);
  padding: 2px 6px; border-radius: 5px;
}

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 36px; border-radius: 100px;
  font-size: 1.03rem; font-weight: 700;
  text-decoration: none; border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.boton--comprar { background: var(--coral); color: #fff; }
.boton--comprar:hover { background: var(--coral-hover); }
.boton--linea { border-color: var(--borde); color: var(--tinta); }
.boton--linea:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Barra ---------- */
.barra { background: var(--fondo); border-bottom: 1px solid var(--borde); }
.barra__interior { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.marca { font-weight: 800; letter-spacing: -0.03em; text-decoration: none; font-size: 1.02rem; }
.marca span { color: var(--coral); }

main { flex: 1; padding: 72px 0 88px; }

/* ---------- Confirmacion de compra ---------- */
.sello {
  width: 62px; height: 62px; border-radius: 100px;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 700; margin-bottom: 26px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.14; letter-spacing: -0.035em; font-weight: 800;
  margin-bottom: 18px;
}

.bajada { font-size: 1.13rem; color: var(--tinta-2); max-width: 620px; margin-bottom: 46px; }

h2 { font-size: 1.32rem; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 22px; }

.pasos { list-style: none; counter-reset: paso; max-width: 700px; margin-bottom: 44px; }
.pasos li {
  counter-increment: paso;
  position: relative; padding-left: 52px; margin-bottom: 24px;
  color: var(--tinta-2);
}
.pasos li::before {
  content: counter(paso);
  position: absolute; left: 0; top: 1px;
  width: 32px; height: 32px; border-radius: 100px;
  background: var(--muted); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.pasos strong { color: var(--tinta); font-weight: 600; }

.aviso {
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 26px 28px;
  max-width: var(--ancho-texto); margin-bottom: 20px;
}
.aviso h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.aviso p { color: var(--tinta-2); font-size: 0.97rem; }
.aviso a { color: var(--navy); font-weight: 600; }

.letra-chica { color: var(--tinta-3); font-size: 0.88rem; max-width: var(--ancho-texto); margin-bottom: 42px; }

/* ---------- Documentos legales ---------- */
.doc { max-width: var(--ancho-texto); }
.doc .fecha { color: var(--tinta-3); font-size: 0.9rem; margin-bottom: 44px; }
.doc h2 {
  margin-top: 46px; margin-bottom: 14px;
  font-size: 1.18rem; padding-top: 26px;
  border-top: 1px solid var(--borde);
}
.doc h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.doc p { color: var(--tinta-2); margin-bottom: 16px; }
.doc ul { color: var(--tinta-2); margin: 0 0 16px 22px; }
.doc li { margin-bottom: 10px; }
.doc strong { color: var(--tinta); font-weight: 600; }
.doc a { color: var(--navy); font-weight: 600; }

/* ---------- Pie ---------- */
.pie { background: var(--navy-hondo); color: rgba(255,255,255,0.55); padding: 34px 0; font-size: 0.88rem; }
.pie__interior { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.pie a { color: rgba(255,255,255,0.75); text-decoration: none; }
.pie a:hover { color: #fff; }
.pie__enlaces { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 900px) {
  main { padding: 52px 0 64px; }
}
