/* ============================================================
   Revelación de Esperanza 2026
   Paleta tomada de las miniaturas de la campaña: azul noche
   profundo, oro y un cielo estrellado de fondo.
   ============================================================ */

:root {
  --noche: #060d22;
  --noche-2: #0b1738;
  --noche-3: #11224d;
  --azul: #1d3f8f;
  --azul-claro: #3a63c8;
  --oro: #e9b53c;
  --oro-claro: #f5cd6b;
  --oro-tenue: rgba(233, 181, 60, .14);

  --texto: #f3f6ff;
  --texto-2: #b8c6e8;
  --texto-3: #7f90b8;
  --linea: rgba(160, 190, 255, .14);

  --vivo: #ff3b30;
  --ok: #34c759;

  --radio: 16px;
  --radio-lg: 22px;
  --wrap: 1140px;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --cuerpo: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* La barra de estado es fija; sin esto, saltar a #ahora deja el
     título escondido detrás de ella. */
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: var(--noche);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--oro-claro); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--angosto { max-width: 760px; }

.h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5.5vw, 50px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.sub {
  color: var(--texto-2);
  max-width: 620px;
  margin: 0 0 34px;
}

.seccion { padding: 72px 0; }
.seccion--alt {
  background:
    linear-gradient(180deg, rgba(29, 63, 143, .10), rgba(29, 63, 143, 0) 55%),
    var(--noche-2);
  border-block: 1px solid var(--linea);
}

/* ============================================================
   Barra de estado
   ============================================================ */

.estado {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 18px;
  font-size: 14.5px;
  color: var(--texto-2);
  background: rgba(6, 13, 34, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
}
.estado strong { color: var(--texto); font-weight: 600; }
.estado a {
  color: var(--oro-claro);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 205, 107, .45);
}

.estado--vivo {
  color: #ffe3e1;
  background: linear-gradient(90deg, rgba(255, 59, 48, .22), rgba(6, 13, 34, .9) 65%);
  border-bottom-color: rgba(255, 59, 48, .35);
}
.estado--vivo i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--vivo);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, .7);
  animation: latir 1.8s infinite;
}
@keyframes latir {
  70%  { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* ============================================================
   Encabezado
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 86px) 20px clamp(56px, 8vw, 92px);
  text-align: center;
  background:
    radial-gradient(900px 620px at 50% 8%, rgba(29, 63, 143, .55) 0%, rgba(29, 63, 143, 0) 65%),
    linear-gradient(180deg, #0d1f4c 0%, #081436 48%, var(--noche) 100%);
}

.hero__cielo { position: absolute; inset: 0; pointer-events: none; }
.hero__cielo i {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
  animation: titilar var(--d, 4s) ease-in-out infinite;
  animation-delay: var(--r, 0s);
}
@keyframes titilar {
  0%, 100% { opacity: .25; }
  50%      { opacity: 1; }
}

/* Resplandor dorado bajo el logo, como en las miniaturas. */
.hero__brillo {
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(760px, 105vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(233, 181, 60, .16), rgba(233, 181, 60, 0) 72%);
  pointer-events: none;
}

.hero__caja { position: relative; max-width: 900px; margin: 0 auto; }

.hero__logo {
  width: clamp(190px, 30vw, 290px);
  height: auto;
  margin: 0 auto 10px;
  /* El arte viene sobre fondo negro con resplandor: 'screen' borra el
     negro y deja el logo flotando sobre el azul, sin recortes. */
  mix-blend-mode: screen;
}

/* El nombre del evento es largo: con el tracking suelto de un eyebrow
   corto se desarmaba en tres renglones en móvil. Menos separación,
   ancho tope y quiebre equilibrado. */
.hero__cinta {
  font-family: var(--display);
  font-size: clamp(13px, 2.1vw, 16px);
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--oro);
  margin: 0 0 8px;
}

.hero__titulo {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .88;
  margin: 0 0 20px;
}
.hero__titulo span {
  display: block;
  font-size: clamp(24px, 5.5vw, 46px);
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--texto-2);
}
.hero__titulo b {
  display: block;
  font-size: clamp(52px, 13vw, 118px);
  letter-spacing: .005em;
  /* Blanco casi puro, como en las miniaturas: un degradado más marcado
     se leía gris apagado sobre el azul. */
  background: linear-gradient(180deg, #fff 60%, #dbe6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 46px rgba(10, 30, 80, .75));
}

.hero__lead {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--texto-2);
  font-size: clamp(15.5px, 2.2vw, 18px);
}

.hero__datos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 0 auto 34px;
  background: var(--linea);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
}
.dato {
  padding: 16px 18px;
  background: rgba(8, 18, 46, .72);
  text-align: left;
}
.dato span {
  display: block;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--texto-3);
  margin-bottom: 3px;
}
.dato strong {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
}
.dato i {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: var(--texto-3);
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============================================================
   Botones
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--cuerpo);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--oro {
  background: linear-gradient(180deg, var(--oro-claro), var(--oro));
  color: #2a1c00;
  box-shadow: 0 8px 26px rgba(233, 181, 60, .26);
}
.btn--oro:hover { background: linear-gradient(180deg, #ffdb8a, var(--oro-claro)); }

.btn--linea {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(180, 205, 255, .28);
  color: var(--texto);
}
.btn--linea:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(180, 205, 255, .5);
}

.btn--grande { padding: 16px 30px; font-size: 16px; }

/* ============================================================
   Destacado
   ============================================================ */

.destacado {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
@media (max-width: 880px) {
  .destacado { grid-template-columns: 1fr; gap: 22px; }
}

.marco {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: var(--noche-3);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.marco img { width: 100%; height: 100%; object-fit: cover; }
.marco:hover {
  border-color: rgba(233, 181, 60, .45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.marco--sinvideo { cursor: default; }
.marco--sinvideo img { opacity: .55; }

.marco__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.marco__play-bg { fill: rgba(0, 0, 0, .62); transition: fill .2s ease; }
.marco:hover .marco__play-bg { fill: #f00; }

.marco__vivo {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--vivo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.marco__vivo i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: parpadeo 1.4s infinite;
}
@keyframes parpadeo { 50% { opacity: .25; } }

.destacado__top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pill--vivo { background: rgba(255, 59, 48, .16); color: #ff8a82; }
.pill--vivo i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--vivo);
  animation: parpadeo 1.4s infinite;
}
.pill--proxima { background: var(--oro-tenue); color: var(--oro-claro); }
.pill--lista { background: rgba(120, 160, 255, .14); color: #9db6ee; }

.viendo { font-size: 13.5px; color: var(--texto-3); }

.destacado__num {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texto-3);
}
.destacado__titulo {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 12px;
}
.destacado__desc {
  color: var(--texto-2);
  margin: 0 0 16px;
  font-size: 15.5px;
}
.destacado__cuando {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--oro-claro);
  font-size: 14.5px;
  font-weight: 500;
}

.cuenta {
  display: flex;
  gap: 9px;
  margin: 0 0 22px;
}
.cuenta__item {
  flex: 1;
  max-width: 88px;
  padding: 11px 6px;
  text-align: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--linea);
  border-radius: 12px;
}
.cuenta__item b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  /* Los dígitos no bailan al cambiar el segundo. */
  font-variant-numeric: tabular-nums;
}
.cuenta__item span {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.destacado__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   Agenda
   ============================================================ */

.agenda {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 22px;
}

.cargando { color: var(--texto-3); }

.tarjeta {
  display: flex;
  flex-direction: column;
  background: rgba(10, 22, 54, .68);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tarjeta:hover {
  transform: translateY(-3px);
  border-color: rgba(160, 190, 255, .3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.tarjeta--vivo {
  border-color: rgba(255, 59, 48, .45);
  box-shadow: 0 0 0 1px rgba(255, 59, 48, .2), 0 18px 44px rgba(255, 59, 48, .12);
}

.tarjeta__media { position: relative; }

.tarjeta__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--noche-3);
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.tarjeta__btn img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta__btn--off { cursor: default; }
.tarjeta__btn--off img { opacity: .42; filter: grayscale(.35); }

.tarjeta__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.tarjeta__play svg {
  width: 46px; height: 46px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
}
.tarjeta:hover .tarjeta__play { opacity: 1; }

/* Franja oscura al pie de la miniatura: el número y el estado van sobre
   ella. Arriba no caben, ahí la miniatura ya trae el logo y el título
   de la campaña. */
.tarjeta__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(4, 9, 26, 0), rgba(4, 9, 26, .82));
  pointer-events: none;
}

.tarjeta__n {
  position: absolute;
  left: 12px; bottom: 10px;
  z-index: 2;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
  pointer-events: none;
}

.chip {
  position: absolute;
  right: 11px; bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.chip--vivo { background: var(--vivo); color: #fff; }
.chip--vivo i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: parpadeo 1.4s infinite;
}
.chip--proxima { background: rgba(233, 181, 60, .92); color: #33240a; }
.chip--lista { background: rgba(10, 22, 54, .82); color: var(--texto-2); }
.chip--sinvideo {
  background: rgba(10, 22, 54, .8);
  color: var(--texto-3);
  border: 1px solid var(--linea);
}

.tarjeta__cuerpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 17px 15px;
}
.tarjeta__cuando {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texto-3);
}
.tarjeta__titulo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 5px;
}
.tarjeta__tema {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--oro);
}
.tarjeta__tema em { font-style: normal; color: var(--texto-3); font-weight: 500; }
.tarjeta__desc {
  margin: 0 0 15px;
  font-size: 14.2px;
  color: var(--texto-2);
  line-height: 1.55;
}

.tarjeta__pie {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--linea);
}

.enlace {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--oro-claro);
  text-decoration: none;
}
.enlace:hover { text-decoration: underline; }
.enlace--btn {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--cuerpo);
  cursor: pointer;
}
.enlace--off { color: var(--texto-3); cursor: help; }
.enlace--off:hover { text-decoration: none; }

/* ============================================================
   Invitar
   ============================================================ */

.seccion--invitar { text-align: center; }
.seccion--invitar .sub { margin-inline: auto; }

.invitar__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}
.invitar__nota { color: var(--texto-3); font-size: 14px; margin: 0; }
.invitar__nota em { color: var(--texto-2); font-style: normal; }

.aviso {
  padding: 16px 18px;
  background: rgba(233, 181, 60, .08);
  border: 1px solid rgba(233, 181, 60, .25);
  border-radius: var(--radio);
  color: var(--texto-2);
}

/* ============================================================
   Pie
   ============================================================ */

.pie {
  padding: 46px 0 40px;
  text-align: center;
  border-top: 1px solid var(--linea);
  background: #04091a;
}
.pie__logo { width: 74px; margin: 0 auto 12px; mix-blend-mode: screen; opacity: .9; }
.pie__titulo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 4px;
}
.pie__txt { margin: 0 0 16px; color: var(--texto-3); font-size: 14px; }
.pie__enlaces { display: flex; gap: 22px; justify-content: center; margin: 0; }
.pie__enlaces a { color: var(--texto-2); font-size: 14px; text-decoration: none; }
.pie__enlaces a:hover { color: var(--oro-claro); }

/* ============================================================
   Modales
   ============================================================ */

.visor, .hoja {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
}
.visor::backdrop, .hoja::backdrop {
  background: rgba(2, 6, 18, .88);
  backdrop-filter: blur(6px);
}

.visor {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}
.visor:not([open]) { display: none; }

.visor__caja {
  position: relative;
  width: min(1120px, 94vw);
}
.visor__marco {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.visor__marco iframe { width: 100%; height: 100%; border: 0; display: block; }

.visor__x {
  position: absolute;
  top: -46px; right: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.visor__x:hover { background: rgba(255, 255, 255, .22); }

/* Hoja de compartir: centrada en escritorio, pegada abajo en celular
   (donde el pulgar la alcanza sin estirarse). */
.hoja {
  margin: auto;
  width: min(420px, 92vw);
}
.hoja:not([open]) { display: none; }

.hoja__caja {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--noche-2);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.hoja__x {
  position: absolute;
  top: 12px; right: 14px;
  border: 0;
  background: none;
  color: var(--texto-3);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.hoja__x:hover { color: var(--texto); }

.hoja__titulo {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-right: 28px;
}

.hoja__redes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}
.red {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 4px 11px;
  border: 1px solid var(--linea);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  color: var(--texto);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.red:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.red--wa svg { color: #25d366; }
.red--fb svg { color: #4a8cf7; }
.red--tg svg { color: #37aee2; }
.red--x  svg { color: #e8ecf7; }

.copiar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(180, 205, 255, .32);
  border-radius: 13px;
  background: none;
  color: var(--texto-2);
  font-family: var(--cuerpo);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.copiar:hover { border-color: rgba(180, 205, 255, .55); color: var(--texto); }
.copiar.is-ok { border-color: var(--ok); border-style: solid; color: var(--ok); }

@media (max-width: 560px) {
  .hoja {
    width: 100vw;
    max-width: 100vw;
    margin: auto auto 0;
  }
  .hoja__caja {
    border-radius: var(--radio-lg) var(--radio-lg) 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .visor__x { top: -44px; }
  .seccion { padding: 54px 0; }
  .hero__acciones .btn, .invitar__botones .btn { width: 100%; }
  .dato { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
