/* ========== Variables base ========== */
:root {
  --bg: #2a0555;
  --text: #ffffff;

  --num-size: 60px;
  --wrap: 1200px;

  /* Tamaño botones */
  --cta-btn-w: clamp(280px, 38vw, 460px);
  --cta-btn-pad-y: 18px;

  /* Botones primarios */
  --verde-1: #18c17a;
  --verde-2: #0e8e57;
  --azul-1: #199ed1;
  --azul-2: #177fa8;

  /* Colores por defecto para bloques */
  --panel: #241a5a;
  --linea: #6fa3ff;
  --num-bg: #3a2a7e;
  --title: #d9e2ff;
  --accent: #64d0ff;
  --num-fg: #eaf1ff;

  /* Tablas */
  --fila-bg: rgba(255, 255, 255, 0.05);
  --fila-bg-hover: rgba(255, 255, 255, 0.07);
  --fila-radius: 12px;

  /* Imágenes (defaults) */
  --img-desktop: 100%;
  --img-mobile: 100%;
  --img-max: none;
}

/* ========== Base ========== */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, Arial, sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px;
}
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ========== Hero ========== */
.hero {
  position: relative;
}
.hero picture,
.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== CTAs ========== */
.cta-band {
  background: linear-gradient(to bottom, #2a0555, #241a5a);
  scroll-margin-top: 72px;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.cta-left,
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.cta-note {
  opacity: 0.9;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--cta-btn-w);
  padding: var(--cta-btn-pad-y) 20px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 12px;
  color: #fff;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.btn--verde {
  background: linear-gradient(180deg, var(--verde-1), var(--verde-2));
}
.btn--azul {
  background: linear-gradient(180deg, var(--azul-1), var(--azul-2));
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
  filter: brightness(1.03);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Botón secundario */
.btn-sec {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    #ff4dff,
    #3c1d4e
  ); /* mismo degrade que círculos */
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-sec:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.btn-sec:active {
  transform: translateY(2px);
}

/* Badge */
.code-badge {
  background: #fff;
  color: #6b6cf6;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Bloque Premios — tarjetas coherentes con Pasos */
.info-premios .info-text {
  position: relative;
  background: var(--fila-bg);
  border-radius: var(--fila-radius);
  padding: 12px 16px 12px 34px; /* deja espacio para el ribete */
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Ribete vertical (mismo gradiente que Pasos) */
.info-premios .info-text::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px; /* escala con el alto del item */
  width: 3px; /* mismo grosor que ajustaste en Pasos */
  border-radius: 999px;
  background: linear-gradient(180deg, #b15cff 0%, #64d0ff 100%);
}

/* Opcional: reforzar los rótulos en negrita como “etiqueta” */
.info-premios .info-text b {
  font-weight: 800;
  color: var(--title);
}

.info-premios .info-text b {
  font-weight: 800;
  color: #e582ff; /* tu color */
}

/* Títulos */
.h3-mayus {
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(16px, 2.2vw, 24px);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}
.info-block .h3-mayus {
  color: var(--title);
}

/* ========== Bloques info ========== */
.info-block {
  background: var(--panel);
}
.info-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(280px, 40%) 1fr;
  gap: 28px;
}
.info-col {
  position: relative;
}
.info-header {
  border-top: 2px solid var(--linea);
  padding-top: 14px;
  position: relative;
}
.info-number {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--num-size);
  height: var(--num-size);
  background: var(--num-bg);
  color: var(--num-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 26px);
}
.info-title {
  margin: 0 0 14px calc(var(--num-size) + 14px);
  color: var(--title);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 38px);
}
.info-text {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
}
.info-text b {
  font-weight: 800;
}
.info-sub {
  margin: 8px 0 0;
  color: var(--accent);
}
.info-image {
  display: flex;
  justify-content: flex-end;
}
.pisa-fit {
  display: block;
  max-width: 100%;
}

/* Embeds */
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== Tablas / listas unificadas ========== */
.fc {
  display: grid;
  grid-template-columns: 0.9fr 0.7fr 1.4fr;
  gap: 12px 16px;
  font-size: clamp(14px, 1.6vw, 16px);
  font-variant-numeric: tabular-nums;
}
.fc__head {
  color: var(--title);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(12px, 1.4vw, 14px);
}
.fc__stage {
  font-weight: 800;
  color: #fff;
}
.fc__cell {
  line-height: 1.45;
}

/* Filas uniformes */
.fc > div:nth-child(n + 4) {
  background: var(--fila-bg);
  padding: 12px 14px;
}
.fc > div:nth-child(3n + 1) {
  border-radius: var(--fila-radius) 0 0 var(--fila-radius);
}
.fc > div:nth-child(3n) {
  border-radius: 0 var(--fila-radius) var(--fila-radius) 0;
}
@media (hover: hover) {
  .fc > div:nth-child(n + 4):hover {
    background: var(--fila-bg-hover);
  }
}

/* Bloque Pasos */
.info-funciona .info-text {
  position: relative;
  background: var(--fila-bg);
  border-radius: var(--fila-radius);
  padding: 12px 16px 12px 96px;
  margin-bottom: 12px;
}
.info-funciona .info-text b {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  background: radial-gradient(circle at 30% 30%, #ff4dff, #3c1d4e);
}
.info-funciona .info-text b::after {
  content: "";
  position: absolute;
  left: calc(100% + 10px);
  top: 0px;
  bottom: 0px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b15cff 0%, #64d0ff 100%);
}
@media (hover: hover) {
  .info-funciona .info-text:hover {
    background: var(--fila-bg-hover);
  }
}

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(to bottom, #241a5a, #2a0555);
}
.footer-wrap {
  text-align: center;
  padding: 24px;
}
.footer-title {
  color: var(--title);
  margin: 0 0 8px;
}
.footer-text {
  margin: 0 0 14px;
  opacity: 0.95;
}
.footer-actions {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}
.sponsors {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
}
.sponsors img {
  height: 40px;
}

/* ========== Imágenes por bloque (control desktop/mobile) ========== */
.info-block .info-image img {
  width: var(--img-desktop, 100%);
  height: auto;
  max-width: var(--img-max); /* none permite exceder el contenedor */
  object-fit: contain;
}

/* ========== Mobile (única media query) ========== */
@media (max-width: 900px) {
  :root {
    --num-size: 52px;
    --cta-btn-w: min(560px, 90vw);
  }
  .wrap {
    padding: 16px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .cta-right {
    order: -1;
    margin-bottom: 4px;
  }
  .cta-left,
  .cta-right {
    gap: 10px;
  }
  .cta-right .cta-note {
    margin-bottom: 26px;
  }

  .info-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .info-image {
    justify-content: center;
  }
  .info-col {
    padding: 0 24px;
  }

  .sponsors img {
    height: 32px;
  }

  /* En mobile forzamos el tamaño y tope */
  .info-block {
    --img-desktop: var(--img-mobile);
  }
  .info-block .info-image img {
    width: var(--img-mobile, 100%);
    max-width: 100%;
  }

  .btn-sec {
    display: block;
    width: 100%; /* igual que .info-text */
    margin-top: 12px;
  }
}

/* ========== Ajustes ópticos ========== */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
body {
  font-feature-settings: "kern" 1, "liga" 1;
}
h1,
h2,
h3,
h4,
.info-title {
  text-wrap: balance;
  letter-spacing: -0.005em;
}
.info-text,
p {
  letter-spacing: -0.003em;
  font-variant-numeric: proportional-nums;
}
.legal,
small {
  letter-spacing: 0.01em;
  line-height: 1.35;
}
