/* Landing pública del evento: 3 temas. --color lo pone el organizador. */
:root { --color: #ff2fd0; --font: "Manrope", system-ui, -apple-system, sans-serif; --radius: 16px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); line-height: 1.5; background: var(--bg); color: var(--text); }
a { color: var(--color); }
img { max-width: 100%; }

/* ---- temas ---- */
.tema-aurora {
  --bg: #050016; --surface: rgba(5, 0, 22, 0.85); --surface-2: #0a041f; --text: #fff; --muted: #b6b4c9; --border: rgba(255,255,255,0.14);
  background: radial-gradient(circle at top, color-mix(in srgb, var(--color) 22%, #050016) 0, #050016 45%, #02000b 100%);
}
.tema-claro { --bg: #fafafa; --surface: #fff; --surface-2: #f1f1f4; --text: #111118; --muted: #5d5d6b; --border: #e6e6ec; }
.tema-noche { --bg: #09090b; --surface: #121214; --surface-2: #1a1a1e; --text: #f4f4f5; --muted: #a1a1aa; --border: #27272a; }

/* ---- hero ----
   .lado  = la imagen se ve entera junto al texto, nunca tapada (default; pensado para flyers que ya traen texto)
   .fondo = la imagen va detrás del título (para fotos sin texto) */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 1.5rem; }
.hero:not(.con-imagen) { padding-block: clamp(4rem, 12vh, 8rem); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* resplandor de fondo con los colores de la propia imagen */
.hero-bg { position: absolute; inset: -15%; z-index: -1; background: var(--hero-img, none) center / cover no-repeat; filter: blur(70px) saturate(1.4); opacity: 0; pointer-events: none; }
.hero.lado .hero-bg { opacity: .38; }
.hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; justify-items: center; text-align: center; }
.hero-content { max-width: 760px; min-width: 0; }
.hero-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--color); margin: 0 0 .9rem; }
.hero-title { font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 1rem; text-wrap: balance; }
.hero-subtitle { margin: 0 0 1rem; font-size: 1.15rem; color: var(--muted); }
.hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.hero-pill { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: color-mix(in srgb, var(--color) 16%, transparent); color: var(--text); font-weight: 600; font-size: .9rem; }
.countdown { display: flex; justify-content: center; gap: .6rem; margin: 1.75rem 0; flex-wrap: wrap; }
.count-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem .9rem; min-width: 72px; text-align: center; }
.count-item span { display: block; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.count-item small { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* imagen / slides */
.hero-media { margin: 0; width: 100%; order: -1; }
.slides { display: grid; justify-items: center; align-items: center; }
.slide { grid-area: 1 / 1; margin: 0; max-width: 100%; opacity: 0; pointer-events: none; transition: opacity .8s; }
.slide.activo { opacity: 1; pointer-events: auto; }
.slide img { display: block; width: auto; max-width: 100%; height: auto; max-height: 76vh; border-radius: 20px; }
.slide figcaption { margin-top: .7rem; font-size: .9rem; color: var(--muted); text-align: center; }
.slide-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .8rem; }
.slide-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--text) 28%, transparent); }
.slide-dots button.activo { background: var(--color); }

/* Aurora: texto a la izquierda, imagen flotando a la derecha con brillo del color de marca */
.tema-aurora .hero::before { background: radial-gradient(circle at top left, color-mix(in srgb, var(--color) 30%, transparent), transparent 55%), radial-gradient(circle at bottom right, rgba(65,255,123,0.14), transparent 60%); }
.tema-aurora .hero:not(.fondo) .hero-title { background: linear-gradient(100deg, #fff 30%, color-mix(in srgb, var(--color) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tema-aurora .hero.lado .slide img { box-shadow: 0 30px 90px -20px color-mix(in srgb, var(--color) 70%, transparent), 0 0 0 1px rgba(255,255,255,.14); }

/* Claro: imagen arriba como póster, datos centrados abajo */
.tema-claro .hero { background: linear-gradient(160deg, color-mix(in srgb, var(--color) 12%, #fff), #fff 60%); }
.tema-claro .hero.lado .hero-bg { opacity: .16; }
.tema-claro .hero-kicker { display: inline-block; background: color-mix(in srgb, var(--color) 12%, #fff); padding: .4rem .95rem; border-radius: 999px; }
.tema-claro .hero.lado .slide img { max-height: 64vh; box-shadow: 0 30px 70px -30px rgba(17,17,24,.45); }

/* Noche: editorial. Imagen a la izquierda con bloque de color, contador sin cajas */
.tema-noche .hero { border-bottom: 1px solid var(--border); }
.tema-noche .hero-title { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
.tema-noche .hero.lado .hero-bg { opacity: .22; }
.tema-noche .hero.lado .slides { padding: 0 12px 12px 0; }
.tema-noche .hero.lado .slide img { border-radius: 6px; box-shadow: 0 0 0 1px var(--border), 12px 12px 0 0 var(--color); }
.tema-noche .count-item { background: none; border: 0; border-left: 2px solid var(--color); border-radius: 0; text-align: left; padding: .2rem 1rem .2rem .8rem; }
.tema-noche .hero .btn-primary { border-radius: 10px; }

@media (min-width: 900px) {
  .tema-aurora .hero.lado .hero-inner, .tema-noche .hero.lado .hero-inner { text-align: left; justify-items: start; }
  .tema-aurora .hero.lado .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .tema-noche .hero.lado .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .tema-aurora .hero.lado .hero-media { order: 0; }
  .tema-aurora .hero.lado .hero-pills, .tema-aurora .hero.lado .countdown,
  .tema-noche .hero.lado .hero-pills, .tema-noche .hero.lado .countdown { justify-content: flex-start; }
}

/* modo fondo: imagen detrás, velo oscuro y texto blanco en los tres temas */
.hero.fondo { min-height: 72vh; display: grid; align-items: center; color: #fff; }
.hero.fondo::before { z-index: 1; background: linear-gradient(rgba(5,0,22,0.45), rgba(5,0,22,0.86)); }
.hero.fondo .hero-inner { position: static; }
.hero.fondo .hero-content { position: relative; z-index: 2; }
.hero.fondo .hero-media { position: absolute; inset: 0; z-index: 0; order: 0; }
.hero.fondo .slides, .hero.fondo .slide { width: 100%; height: 100%; max-width: none; }
.hero.fondo .slide img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
.hero.fondo .slide figcaption { position: absolute; left: 0; right: 0; bottom: 2.2rem; z-index: 2; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero.fondo .slide-dots { position: absolute; left: 0; right: 0; bottom: .9rem; z-index: 2; margin: 0; }
.hero.fondo .slide-dots button { background: rgba(255,255,255,.4); }
.hero.fondo .slide-dots button.activo { background: #fff; }
.hero.fondo .hero-subtitle { color: #e4e4ea; }
.hero.fondo .hero-kicker { background: none; padding: 0; color: #fff; }
.hero.fondo .hero-pill { background: rgba(255,255,255,.16); color: #fff; }
.hero.fondo .count-item { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.25); color: #fff; }
.hero.fondo .count-item small { color: #ddd; }

/* ---- secciones ---- */
.section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-title { text-align: center; font-size: 1.9rem; font-weight: 800; margin: 0 0 .5rem; letter-spacing: -0.01em; }
.section-intro { text-align: center; max-width: 650px; margin: 0 auto 2rem; color: var(--muted); }
.hero-desc { max-width: 760px; margin: 0 auto; font-size: 1.1rem; line-height: 1.65; }
.hero-desc p { margin: 0 0 .6em; }
.hero-desc h2, .hero-desc h3 { margin: .8em 0 .4em; line-height: 1.2; }
.hero-desc h2 { font-size: 1.6rem; color: var(--color); }
.hero-desc ol, .hero-desc ul { padding-left: 1.5em; }
.hero-desc li[data-list="bullet"] { list-style: disc; }
.hero-desc li[data-list="ordered"] { list-style: decimal; }
.hero-desc .ql-align-center { text-align: center; } .hero-desc .ql-align-right { text-align: right; } .hero-desc .ql-align-justify { text-align: justify; }

.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.galeria a { display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galeria a:hover img { transform: scale(1.04); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.videos iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }

/* sponsors (idea de la maratón: main grande arriba, partners abajo) */
.sponsors { text-align: center; border-top: 1px solid var(--border); }
.sponsors .kicker { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.sponsors .fila { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2.75rem; }
.sponsors .grupo + .grupo { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.sponsors .logo img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.sponsors .grupo-main .logo img { height: 80px; max-width: 320px; }
.sponsors .logo.placa { background: #fff; padding: 8px 14px; border-radius: 6px; }
.sponsors .nombre { font-weight: 700; font-size: 1.1rem; }
.sponsors .grupo-main .nombre { font-size: 1.8rem; }

/* ---- módulos ---- */
.modulos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.mod { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.mod h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.mod .tipo { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--color); font-weight: 700; }
.mod p.desc { color: var(--muted); margin: .25rem 0 1rem; }
.opciones { display: grid; gap: .5rem; }
.opcion { text-align: left; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.opcion:hover { border-color: var(--color); }
.opcion.elegida { border-color: var(--color); background: color-mix(in srgb, var(--color) 18%, var(--surface-2)); }
.barra { position: relative; height: 34px; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin-bottom: .5rem; }
.barra i { position: absolute; inset: 0 auto 0 0; background: var(--color); opacity: .85; transition: width .6s; }
.barra span { position: relative; display: flex; justify-content: space-between; padding: 0 .75rem; line-height: 34px; font-weight: 600; font-size: .9rem; }
.nube { display: flex; flex-wrap: wrap; gap: .4rem .9rem; justify-content: center; align-items: baseline; padding: .5rem 0; }
.nube span { font-weight: 700; line-height: 1; opacity: .9; }
.montos { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.montos .opcion { flex: 1 1 90px; text-align: center; font-weight: 700; }
.progreso { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .5rem 0; }
.progreso i { display: block; height: 100%; background: var(--color); }
.ganadores { list-style: none; padding: 0; margin: .5rem 0 0; }
.ganadores li { padding: .5rem .75rem; border-radius: 8px; background: var(--surface-2); margin-bottom: .4rem; font-weight: 600; }
.mini { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; margin: .75rem 0; }
.mini input { width: 100%; }
.mod-msg { font-size: .9rem; margin-top: .5rem; min-height: 1.2em; }

/* ---- formulario y botones ---- */
.form { max-width: 650px; margin: 0 auto; background: var(--surface); padding: 2rem 1.5rem; border-radius: 24px; border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-group.check { flex-direction: row; align-items: center; gap: .5rem; }
.form-group.check input { width: auto; }
label { font-size: .85rem; margin-bottom: .35rem; color: var(--muted); }
input, select, textarea { padding: .7rem .85rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color); }
.btn-primary { display: inline-block; padding: .9rem 2.2rem; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; font-size: .95rem; background: var(--color); color: var(--on-color, #fff); box-shadow: 0 10px 28px color-mix(in srgb, var(--color) 45%, transparent); transition: transform .15s, filter .15s; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-full { width: 100%; }
.btn-sm { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.form-message { margin-top: 1rem; font-size: .95rem; text-align: center; min-height: 1.2em; }
.ok { color: #22c55e; } .error { color: #f87171; }
.precio { text-align: center; font-size: 1.1rem; margin: -1rem auto 1.5rem; }
.precio strong { font-size: 1.6rem; color: var(--color); }
.aviso { max-width: 650px; margin: 0 auto 1.5rem; padding: 1rem 1.25rem; border-radius: 12px; background: color-mix(in srgb, var(--color) 15%, var(--surface)); border: 1px solid var(--color); text-align: center; }

.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2.5rem 1rem; border-top: 1px solid var(--border); }
.footer .hands { margin-top: .5rem; font-size: .75rem; opacity: .7; }
.footer .hands a { color: inherit; }
.hidden { display: none !important; }
@media (max-width: 640px) { .mini { grid-template-columns: 1fr; } }

/* paso de preguntas dentro del formulario de inscripción */
.paso { border: 0; padding: 0; margin: 0; min-width: 0; }
.paso-kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--color); margin: 0 0 1rem; }
.paso-bloque h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.paso-desc { color: var(--muted); margin: 0 0 1rem; }
.paso-bloque + .paso-bloque { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.btn-volver { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; padding: 0; margin: 0 0 1rem; }
.btn-volver:hover { color: var(--text); }
