/* Lluvia de Sol · landing del en vivo. Paleta y tipografía de la guía de marca (Montserrat, degradado atardecer). */
:root {
  color-scheme: dark;
  --indigo: #231B3E;
  --indigo-2: #2D2452;
  --gold: #F6A64E;
  --coral: #FF7A66;
  --magenta: #D34B83;
  --purple: #8C5EA6;
  --blue: #4E4CC0;
  --highlight: #FAC93F;
  --text: #FFFFFF;
  --muted: rgba(255,255,255,.74);
  --line: rgba(255,255,255,.14);
  --field-line: rgba(255,255,255,.22);
  --surface: rgba(45,36,82,.9);
  --field: rgba(35,27,62,.85);
  --error-text: #FFB3A7;
  --ring: 0 0 0 3px rgba(255,122,102,.28);
  --sunset: linear-gradient(100deg, var(--gold), var(--coral), var(--magenta), var(--purple), var(--blue));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--text);
  background: var(--indigo);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- Cielo de fondo ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, rgba(211,75,131,.28), transparent 60%),
    radial-gradient(55vmax 45vmax at -10% 70%, rgba(78,76,192,.30), transparent 60%),
    radial-gradient(35vmax 30vmax at 70% 30%, rgba(246,166,78,.10), transparent 60%),
    var(--indigo);
}
.rueda { position: absolute; width: 150vmax; max-width: none; left: 50%; top: 32vh; opacity: .12;
  transform: translate(-50%,-50%); animation: spin 240s linear infinite; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
/* Estrellitas: posición, tamaño, color y ritmo vienen de cada <span> en index.html */
.spark { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--c); opacity: 0;
  clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
  animation: twinkle 5s ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }

/* ---------- Portada ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 20px 56px; max-width: 760px; margin: 0 auto; }
.hero-sun { position: relative; width: 170px; height: 130px; margin-bottom: 4px; }
.hero-sun img { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.sunburst { width: 300px; opacity: .45; animation: pulse 6s ease-in-out infinite; }
.sol { width: 290px; filter: drop-shadow(0 0 24px rgba(255,122,102,.45)); }
@keyframes pulse { 0%,100% { transform: translate(-50%,-50%) scale(.95); opacity: .35; } 50% { transform: translate(-50%,-50%) scale(1.05); opacity: .55; } }
.logo { width: min(320px, 72vw); height: auto; margin: 6px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--highlight);
  text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
h1 { font-size: clamp(32px, 7.5vw, 56px); line-height: 1.05; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; text-wrap: balance; }
.grad { font-weight: 700; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hosts { margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.date-pill { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px;
  padding: 12px 22px; border-radius: 999px; background: rgba(35,27,62,.7); font-size: 16px; }
.date-pill::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--sunset);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.date-pill strong { font-weight: 600; }
.date-pill span { color: var(--highlight); font-weight: 600; }
.countdown { display: flex; gap: 12px; margin: 22px 0 28px; }
.countdown div { min-width: 76px; padding: 10px 8px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.countdown b { display: block; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.hero-note { color: var(--muted); font-size: 14px; max-width: 360px; margin: 16px 0 0; }

.btn { display: inline-block; max-width: 100%; border: 0; border-radius: 999px; padding: 15px 34px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; color: #fff;
  background: var(--sunset); background-size: 140% 100%;
  box-shadow: 0 10px 30px -10px rgba(211,75,131,.7); transition: background-position .4s, transform .15s; }
.btn:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.btn.ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.btn[disabled] { opacity: .6; cursor: progress; }
:is(a, button, summary):focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }

/* ---------- Secciones ---------- */
main section { max-width: 760px; margin: 0 auto; padding: 56px 20px; }
h2 { font-size: clamp(24px, 5vw, 32px); font-weight: 600; line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
.about { text-align: center; }
.about > p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; font-size: 17px; }
.about em { font-style: normal; color: #fff; font-weight: 600; }
.participa { max-width: 560px; margin: 0 auto 40px; padding: 20px 22px 8px; border-radius: 22px;
  background: rgba(250,201,63,.07); border: 1px solid rgba(250,201,63,.34); }
.participa h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: var(--highlight); text-wrap: balance; line-height: 1.55; }
/* Resaltador dorado: marca el bloque de participación en vivo */
.participa h3 .hl { background: var(--highlight); color: #2A1E05; padding: .12em .4em; border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.participa p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.participa p.participa-tag { margin: 0 0 10px; color: var(--highlight); font-size: 11.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; }
.participa p b, .about > p b { color: #fff; font-weight: 600; }
.hosts-grid { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.host { margin: 0; }
.avatar { position: relative; width: 128px; height: 128px; border-radius: 50%; padding: 3px; background: var(--sunset); margin: 0 auto 12px; }
.avatar span, .avatar img { width: 100%; height: 100%; border-radius: 50%; }
.avatar span { display: grid; place-items: center; background: var(--indigo-2); font-weight: 700; font-size: 30px; letter-spacing: .05em; }
.avatar img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; }
.host strong { display: block; font-weight: 600; font-size: 17px; }
.host small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }

/* ---------- Formulario ---------- */
.card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px 22px; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--sunset); }
.lead { color: var(--muted); margin: 0 0 8px; }
.req-note { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.req { color: var(--coral); font-weight: 700; }
.opt { font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-left: 6px; }

.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: #fff; background: var(--field);
  border: 1px solid var(--field-line); border-radius: 14px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral); box-shadow: var(--ring); }
textarea { resize: vertical; }

.phone { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 8px; }
.phone select { text-overflow: ellipsis; padding-right: 8px; }


.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--coral); }
.check input:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; box-shadow: none; }
.check a { color: #fff; }
.field > .check { margin-bottom: 0; }

/* Errores: el campo se marca en coral y el mensaje queda justo debajo */
.field-msg { position: relative; margin: 8px 0 0; padding-left: 25px; font-size: 13.5px; line-height: 1.45; color: var(--error-text); }
.field-msg::before { content: "!"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 17px; height: 17px;
  border-radius: 50%; background: var(--coral); color: var(--indigo); font-size: 11px; font-weight: 700; }
[aria-invalid="true"]:not([type=checkbox]), .has-error select { border-color: var(--coral); box-shadow: var(--ring); }
.has-error .check { color: #fff; }
.has-error .check input { outline: 2px solid var(--coral); outline-offset: 2px; }
.field-hint { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.fix { font: inherit; font-weight: 700; color: var(--highlight); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.error { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: #fff;
  background: rgba(255,122,102,.14); border: 1px solid rgba(255,122,102,.5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#ok-view { text-align: center; padding: 10px 0; }
#ok-view h2:focus { outline: none; }
#ok-view p { color: var(--muted); margin: 0 0 24px; }
#ok-view .again { margin: 18px 0 0; font-size: 14px; }
.ok-sol { width: 200px; margin: -30px auto -20px; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

/* ---------- Videos ---------- */
.videos { text-align: center; }
.video-grid { display: grid; gap: 18px; margin: 22px 0 26px; align-items: start; }
.yt { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); text-align: left; }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; overflow: hidden; background: #000; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumb:hover img { transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; transform: translate(-50%,-50%); border-radius: 50%;
  background: var(--sunset); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.play::before { content: ""; position: absolute; left: 24px; top: 18px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.yt-title { margin: 0; padding: 14px 16px 16px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer { text-align: center; padding: 30px 20px 50px; color: var(--muted); font-size: 13px; }
footer .bar { width: 120px; height: 4px; border-radius: 4px; background: var(--sunset); margin: 0 auto 18px; }
.seal { letter-spacing: .2em; font-weight: 600; color: #fff; }

/* ---------- Tamaños ---------- */
@media (min-width: 720px) {
  .card { padding: 44px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .hero-sun { width: 200px; height: 140px; }
  .sol { width: 300px; }
  .sunburst { width: 340px; }
}
@media (max-width: 380px) {
  .countdown div { min-width: 64px; }
  /* la bajada es larga: a 15px cabe en 2 lineas y no empuja el boton fuera de pantalla */
  .hosts { font-size: 15px; }
  .participa h3 { font-size: 17.5px; }
}
@media (max-width: 360px) {
  .phone { grid-template-columns: 1fr; }
}
/* Pantallas bajas (celular con barras del navegador, portátil): que el botón quede a la vista */
@media (max-height: 820px) {
  .hero { justify-content: flex-start; padding-top: 28px; }
  .hero-sun { height: 96px; }
  .logo { width: min(260px, 64vw); margin-bottom: 18px; }
  .hosts { margin-bottom: 18px; }
  .countdown { margin: 16px 0 20px; }
}
@media (max-height: 700px) {
  .hero { padding-top: 16px; padding-bottom: 32px; }
  .hero-sun { height: 72px; }
  .sol { width: 220px; }
  .sunburst { width: 230px; }
  .logo { width: min(210px, 56vw); margin: 0 0 12px; }
  h1 { font-size: clamp(28px, 7vw, 40px); }
  .date-pill { padding: 8px 18px; }
  .countdown { margin: 12px 0 16px; }
  .countdown div { padding: 6px 8px; }
  .countdown b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
