/* Sorteo del Roble: mismo sistema de diseño que la web de La Picada del Roble (turquesa oscuro, coral y crema;
   Baloo 2 para títulos y Figtree para el texto). Las letras se sirven desde este mismo sitio. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/sorteo-app/fuentes/baloo2-latin.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/sorteo-app/fuentes/figtree-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --surface: #faf6ee;
  --surface-alt: #f2ebdf;
  --card: #ffffff;
  --petrol: #013b4b;
  --petrol-dark: #012934;
  --ink: #1f2a2e;
  --muted: #5c6669;
  --brasa: #ab5c31;
  --brasa-dark: #8f4d29;
  --brasa-bright: #c76e3d;
  --espuma: #9ed1d5;
  --turquesa: #7ac0c6;
  --hairline: #e3d9c8;
  --ok: #1f6b3a;
  --error: #9f1c13;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.6 var(--font-body); }
a { color: var(--brasa-dark); }
h1, h2, h3 { font-family: var(--font-display); color: var(--petrol); line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; margin-top: 1.8rem; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 .85rem; }

.barra { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.barra-int { max-width: 720px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--petrol); font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; min-width: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--petrol); flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img { width: 75%; height: auto; display: block; }
.menu { display: flex; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.menu a { color: var(--petrol); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.menu a.activa { border-bottom-color: var(--brasa); }
.menu a:hover { color: var(--brasa-dark); }
@media (max-width: 520px) { .marca span:last-child { display: none; } }

main { max-width: 720px; margin: 0 auto; padding: 1.2rem 1rem 2rem; outline: none; }
.cargando { color: var(--muted); }
.pie { background: var(--ink); color: #d9e2e4; margin-top: 1rem; }
.pie-int { max-width: 720px; margin: 0 auto; padding: 1.4rem 1rem 2.4rem; font-size: .92rem; }
.pie a { color: var(--espuma); }
.pie p { margin: 0 0 .4rem; }

.tarjeta { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 1.15rem; margin: 0 0 1rem; }
.heroe { background: var(--petrol); border: 0; color: #fff; }
.heroe h1 { color: #fff; font-size: 2.3rem; }
.heroe p { color: #e8f3f4; }
.heroe .boton { background: var(--brasa); color: #fff; }
.heroe .boton:hover { background: var(--brasa-dark); }
.destacado { font-size: 1.1rem; font-weight: 600; }
.suave { color: var(--muted); font-size: .92rem; }
.centrado { text-align: center; }

.boton { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 1.2rem; border: 2px solid transparent; border-radius: 999px; background: var(--brasa); color: #fff; font: 600 1rem/1.4 var(--font-display); text-align: center; text-decoration: none; cursor: pointer; }
.boton:hover { background: var(--brasa-dark); }
.boton:disabled { opacity: .6; cursor: wait; }
.boton.claro { background: var(--petrol); color: #fff; }
.boton.claro:hover { background: var(--petrol-dark); }
.boton.discreto { background: transparent; color: var(--petrol); border-color: var(--hairline); font-weight: 500; min-height: 44px; }
.boton.discreto:hover { border-color: var(--petrol); background: transparent; }
.enlace { background: none; border: 0; padding: .5rem 0; color: var(--petrol); font: inherit; text-decoration: underline; cursor: pointer; }
.fila { display: grid; gap: .6rem; margin-top: .8rem; }

label { display: block; font-weight: 600; margin: .85rem 0 .25rem; }
input[type=text], input[type=tel], input[type=password], input[type=search], textarea { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1.5px solid var(--hairline); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 2px; }
.casilla { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; margin: .75rem 0; }
.casilla input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: none; accent-color: var(--brasa); }
.ayuda { font-size: .88rem; color: var(--muted); margin: .2rem 0 0; }
.aviso { padding: .75rem .95rem; border-radius: 10px; margin: .8rem 0; font-size: .96rem; }
.aviso.error { background: #fdeceb; color: var(--error); border: 1px solid #f1b9b4; }
.aviso.ok { background: #e6f4ea; color: var(--ok); border: 1px solid #a9d8b8; }
.aviso.info { background: var(--surface-alt); border: 1px solid var(--hairline); }

.cifra { font: 700 3.4rem/1 var(--font-display); color: var(--brasa); }
.cuenta { display: flex; gap: .6rem; margin: .7rem 0 .4rem; }
.cuenta div { flex: 1; text-align: center; background: rgba(255, 255, 255, .12); border-radius: 12px; padding: .5rem .2rem; }
.cuenta b { display: block; font: 700 1.7rem/1.1 var(--font-display); }
.cuenta span { font-size: .75rem; color: var(--espuma); }

ol.pasos { margin: 0; padding-left: 1.3rem; }
ol.pasos li { margin: .4rem 0; }
.premio { border-left: 5px solid var(--brasa); padding: .15rem 0 .15rem .85rem; margin: .85rem 0; }
.premio strong { display: block; font-family: var(--font-display); color: var(--petrol); font-size: 1.1rem; }
.historial { list-style: none; padding: 0; margin: 0; }
.historial li { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--hairline); font-size: .95rem; }
.bases { white-space: pre-wrap; font-size: .95rem; }
.secundario { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--hairline); }
.secundario h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
