/* San Cristóbal Corre · Sitio público */
:root {
  --azul: #111926; --azul-2: #1a2333; --azul-3: #2c3648; --naranja: #EA5C2C; --naranja-2: #ff7a4d;
  --crema: #f6f4f1; --gris: #4a5262; --gris-claro: #d5dae3; --linea: #e3e0da; --verde: #1a7f45; --rojo: #b3261e;
  --radio: 20px; --sombra: 0 10px 30px rgba(17, 25, 38, .12);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; color: var(--azul); background: var(--crema); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--naranja); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.contenedor { width: min(1200px, 100% - 40px); margin-inline: auto; }
.angosto { width: min(760px, 100% - 32px); margin-inline: auto; }
.oscuro { background: var(--azul); color: #fff; }
.oscuro a:not(.btn) { color: var(--naranja-2); }
.oscuro .muted, .muted-oscuro { color: var(--gris-claro); }
.muted { color: var(--gris); }
.seccion { padding: 72px 0; }
.seccion-sm { padding: 48px 0; }
.kicker { margin: 0 0 12px; color: var(--naranja); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--gris); max-width: 640px; }
.oscuro .lead { color: var(--gris-claro); }
.centro { text-align: center; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-naranja { background: var(--naranja); color: var(--azul); }
.btn-naranja:hover { background: var(--naranja-2); color: var(--azul); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-3); color: #fff; }
.btn-borde { background: transparent; border-color: currentColor; color: inherit; }
.btn-borde-azul { background: #fff; border-color: var(--azul); color: var(--azul); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-grande { min-height: 58px; padding: 16px 34px; font-size: 18px; }
.btn-bloque { width: 100%; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }

/* Navegación */
.nav { background: var(--azul); color: #fff; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--azul-3); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marca img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a { color: #fff; text-decoration: none; }
.nav-links a:hover { color: var(--naranja-2); }
.nav-links .btn { color: var(--azul); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; width: 48px; height: 48px; }
.nav-toggle span { display: block; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--azul); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 3px solid var(--naranja); }
  .nav-links.abierto { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--azul-3); }
  .nav-links .btn { margin-top: 12px; border-bottom: 0; }
}

/* Avisos */
.aviso { padding: 14px 0; font-weight: 600; }
.aviso-ok { background: #dcf4e4; color: #0f5a2a; }
.aviso-error { background: #fde3e1; color: #8c1b14; }
.caja-aviso { border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; background: #fff3cd; color: #6b4f00; font-weight: 600; }
.caja-aviso-verde { background: #dcf4e4; color: #0f5a2a; }
.caja-aviso-azul { background: #e5ecf7; color: #17345f; }

/* Portada */
.hero { position: relative; overflow: hidden; background: var(--azul); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-in { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 56px 0 72px; }
.hero-texto { flex: 999 1 520px; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(52px, 9vw, 116px); line-height: .92; font-weight: 800; font-style: italic; letter-spacing: -1.5px; text-transform: uppercase; }
.hero h1 span { color: var(--naranja); }
.hero .lead { margin-top: 22px; color: var(--gris-claro); }
.hero .botones { margin-top: 30px; }
.hero-ficha { flex: 1 1 300px; min-width: 0; border: 2px solid var(--naranja); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: rgba(17, 25, 38, .7); }
.dato small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #9aa3b2; text-transform: uppercase; }
.dato b { display: block; font-size: 22px; margin-top: 2px; }
.dato span { color: var(--gris-claro); font-size: 15px; }
.contador { background: var(--naranja); color: var(--azul); border-radius: 16px; padding: 16px 18px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.contador div { text-align: center; min-width: 52px; }
.contador b { display: block; font-size: 38px; line-height: 1; font-weight: 800; }
.contador small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hero-marca img { width: min(340px, 70vw); }

/* Tarjetas */
.rejilla { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rejilla-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tarjeta { background: #fff; border-radius: var(--radio); padding: 28px; }
.tarjeta-oscura { background: var(--azul); color: #fff; }
.tarjeta-oscura p { color: var(--gris-claro); }
.tarjeta .hora { font-size: 32px; font-weight: 800; color: var(--naranja); margin: 0 0 8px; }
.oscuro .tarjeta { background: var(--azul-2); color: #fff; }
.precio { border: 2px solid var(--azul-3); border-radius: var(--radio); padding: 26px; }
.precio small { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: #9aa3b2; text-transform: uppercase; display: block; }
.precio b { display: block; font-size: 42px; font-weight: 800; margin: 10px 0 2px; }
.precio span { font-size: 15px; color: var(--gris-claro); }
.precio-destacado { border-color: var(--naranja); }
.precio-relleno { background: var(--naranja); border-color: var(--naranja); color: var(--azul); }
.precio-relleno small, .precio-relleno span { color: var(--azul); font-weight: 700; }
.precio-gratis { border-style: dashed; }
.kit-item { background: var(--azul); border-radius: 16px; padding: 20px; font-weight: 700; font-size: 17px; }
.kit-item.acento { background: var(--naranja); color: var(--azul); }
.evento-card { background: #fff; border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--sombra); }
.evento-card .img { aspect-ratio: 16/9; background: var(--azul); display: flex; align-items: center; justify-content: center; }
.evento-card .img img { width: 100%; height: 100%; object-fit: cover; }
.evento-card .img img.logo-ev { width: 50%; height: auto; object-fit: contain; }
.evento-card .cuerpo { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.evento-card h3 { margin: 0; font-size: 22px; }
.etiqueta { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--crema); color: var(--azul); align-self: flex-start; }
.etiqueta-naranja { background: var(--naranja); color: var(--azul); }

/* Galería */
.galeria { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.galeria figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--azul-2); position: relative; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.galeria figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.galeria button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 24px; }
.video { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16/9; position: relative; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-enlace { display: flex; align-items: center; gap: 14px; background: var(--azul-2); color: #fff; padding: 18px; border-radius: 16px; text-decoration: none; font-weight: 700; }
.video-enlace span { width: 48px; height: 48px; border-radius: 50%; background: var(--naranja); display: flex; align-items: center; justify-content: center; color: var(--azul); flex: none; }
.visor { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.visor img { max-height: 90vh; border-radius: 8px; }
.visor button { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; }

/* Patrocinadores */
.logos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.logos a, .logos div { background: #fff; border-radius: 16px; height: 110px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.logos img { max-height: 78px; max-width: 100%; object-fit: contain; }
.logos-principal { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.logos-principal a, .logos-principal div { height: 150px; }
.logo-vacio { border: 2px dashed var(--azul-3); background: transparent !important; color: #9aa3b2; font-weight: 600; }

/* Preguntas */
.faq details { background: #fff; border-radius: 14px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--naranja); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--gris); }

/* Llamado */
.llamado { background: var(--naranja); color: var(--azul); }
.llamado-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 0; }
.llamado h2 { font-style: italic; margin: 0; }

/* Formularios */
.form-panel { background: #fff; border-radius: var(--radio); padding: 24px; margin-bottom: 18px; }
.form-panel h2 { font-size: 24px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.campo small { font-weight: 400; color: var(--gris); }
input, select, textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid #c9c3b9; border-radius: 12px; background: #fff; color: var(--azul); min-height: 48px; width: 100%; }
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(234, 92, 44, .25); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .dos { grid-template-columns: 1fr; } }
.check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 500; }
.check input { width: 24px; height: 24px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--naranja); }
.segmentado { display: flex; gap: 8px; }
.segmentado label { flex: 1; }
.segmentado input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmentado span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid #c9c3b9; border-radius: 12px; font-weight: 600; cursor: pointer; }
.segmentado input:checked + span { background: var(--azul); color: #fff; border-color: var(--azul); }
.segmentado input:focus-visible + span { outline: 3px solid var(--naranja); }
.trampa { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.pasos { display: flex; gap: 6px; margin: 0 0 20px; }
.pasos i { flex: 1; height: 6px; border-radius: 3px; background: #d9d4cc; }
.pasos i.hecho { background: var(--naranja); }
.persona { border: 1.5px solid var(--linea); border-radius: 16px; padding: 18px; margin-bottom: 14px; background: #fcfbf9; }
.persona-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.persona-cab h3 { margin: 0; font-size: 18px; }
.chip-edad { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--crema); white-space: nowrap; }
.chip-gratis { background: #dcf4e4; color: #0f5a2a; }
.quitar { background: none; border: 0; color: var(--rojo); font-weight: 700; cursor: pointer; min-height: 44px; padding: 0 8px; font: inherit; }
.resumen { background: var(--azul); color: #fff; border-radius: var(--radio); padding: 22px; }
.resumen .linea { display: flex; justify-content: space-between; gap: 12px; color: var(--gris-claro); font-size: 15px; margin-bottom: 6px; }
.resumen .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--azul-3); }
.resumen .total b { font-size: 32px; }
.resumen .ahorro { color: var(--naranja-2); font-weight: 700; font-size: 14px; margin: 6px 0 0; }

/* Página de inscripción */
.estado-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.badge-gris { background: #ececef; color: #333; }
.badge-azul { background: #e3eefc; color: #164f9b; }
.badge-amarillo { background: #fff2cc; color: #6b4f00; }
.badge-verde { background: #dcf4e4; color: #0f5a2a; }
.badge-rojo { background: #fde0e1; color: #8c1b14; }
.badge-negro { background: #222; color: #fff; }
.tabla-personas { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla-personas th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gris); padding: 8px 6px; border-bottom: 2px solid var(--linea); }
.tabla-personas td { padding: 10px 6px; border-bottom: 1px solid var(--linea); }
.dorsal { display: inline-block; background: var(--azul); color: #fff; font-weight: 800; border-radius: 8px; padding: 2px 10px; }
.cuenta { border: 1.5px solid var(--linea); border-left: 5px solid var(--naranja); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.cuenta b.numero { font-size: 20px; letter-spacing: .5px; }
.copiar { margin-left: 8px; }
.qr { width: min(260px, 80%); margin: 0 auto 12px; }
.codigo-grande { font-size: 32px; font-weight: 800; letter-spacing: 1px; }

/* Pie */
.pie { background: var(--azul); color: var(--gris-claro); padding: 48px 0 24px; font-size: 15px; }
.pie-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pie h4 { color: #fff; margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; }
.pie a { color: var(--gris-claro); text-decoration: none; }
.pie a:hover { color: var(--naranja-2); }
.pie-base { border-top: 1px solid var(--azul-3); margin-top: 32px; padding-top: 18px; font-size: 13px; }
.wa-flotante { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); z-index: 50; }
.reglamento { background: #fff; border-radius: var(--radio); padding: clamp(20px, 4vw, 40px); white-space: pre-line; }
@media print { .nav, .pie, .wa-flotante, .no-imprimir { display: none !important; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* v0.2: tarjeta destacada cuando hay un solo evento */
.rejilla-uno { grid-template-columns: 1fr; }
.evento-card .ver-evento { align-self: flex-start; margin-top: 14px; }
@media (min-width: 760px) {
  .rejilla-uno .evento-card { flex-direction: row; min-height: 320px; }
  .rejilla-uno .evento-card .img { aspect-ratio: auto; flex: 1 1 55%; }
  .rejilla-uno .evento-card .img img.logo-ev { width: 60%; max-height: 260px; }
  .rejilla-uno .evento-card .cuerpo { flex: 1 1 45%; justify-content: center; padding: 36px; }
  .rejilla-uno .evento-card h3 { font-size: 28px; }
}
/* v0.2: logo de la marca más compacto en el celular */
@media (max-width: 960px) { .hero-marca img { width: min(220px, 55vw); } }
/* v0.2: barra fija para inscribirse desde el celular */
.barra-inscribete { display: none; }
@media (max-width: 760px) {
  .barra-inscribete { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--azul); border-top: 3px solid var(--naranja); color: #fff; transform: translateY(110%); transition: transform .25s ease; }
  .barra-inscribete.visible { transform: none; }
  .barra-inscribete b { display: block; font-size: 15px; }
  .barra-inscribete small { color: var(--gris-claro); font-size: 12px; }
  .barra-inscribete .btn { padding: 12px 22px; }
  body.con-barra .wa-flotante { bottom: 86px; }
  body.con-barra { padding-bottom: 76px; }
}
