/* =========================================================
   Prodigi Academy — Landing "La Nueva Era del Profesional
   Digital en 2026". Depende de /brand/tokens.css (colores y
   fuentes de marca). Este archivo es específico de esta página.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: var(--pa-coarse-wool);
  --bg-raised: #21222f;
  --text: var(--pa-titanium-white);
  --text-muted: rgba(227, 227, 227, 0.72);
  --text-dim: rgba(227, 227, 227, 0.5);
  --border: rgba(227, 227, 227, 0.12);

  --cyan: var(--pa-blue-dacnis);
  --orange: var(--pa-yamabuki-gold);
  --purple: var(--pa-bluish-purple);

  --container: 1120px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --fs-kicker: 0.8125rem;
  --fs-h1: clamp(2.1rem, 1.5rem + 2.8vw, 3.75rem);
  --fs-h2: clamp(1.6rem, 1.35rem + 1.3vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-small: 0.9375rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--pa-font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--pa-font-heading);
  font-stretch: 125%; /* eje wdth al máximo = "Mona Sans Wide" del brandbook */
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

p { margin: 0; }

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Kicker / eyebrow ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cyan);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(89, 239, 239, 0.18);
}

/* ---------- CTA button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-family: var(--pa-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--pa-coarse-wool);
  box-shadow: 0 8px 24px -8px rgba(255, 164, 0, 0.55);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(255, 164, 0, 0.7);
}

.btn-small {
  padding: 0.6em 1.25em;
  font-size: 0.8125rem;
}

/* ---------- Sticky header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.75rem;
  background: rgba(24, 25, 38, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-header__logo {
  height: 28px;
  width: auto;
}

/* ---------- Hero ---------- */

.text-accent { color: var(--orange); }

.hero {
  padding-block: var(--space-5);
  text-align: center;
  position: relative;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(circle at 20% 20%, rgba(131, 56, 236, 0.35), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(89, 239, 239, 0.25), transparent 55%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--space-5);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__kicker {
  justify-content: center;
  margin-bottom: var(--space-2);
}

.hero__timezones {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.hero__timezones strong {
  color: var(--text);
  font-weight: 700;
}

.hero h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.hero__subtitle {
  max-width: 52ch;
  margin: var(--space-3) auto 0;
  color: var(--text-muted);
  font-size: var(--fs-body);
}

.hero__cta {
  margin-top: var(--space-4);
}

.hero__video {
  margin-top: var(--space-4);
  width: 100%;
}

.hero__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(131, 56, 236, 0.25), rgba(89, 239, 239, 0.12)),
    var(--bg-raised);
  overflow: hidden;
}

.hero__video-play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--pa-coarse-wool);
  font-size: 1.2rem;
  box-shadow: 0 8px 24px -8px rgba(255, 164, 0, 0.6);
}

.hero__video-caption {
  font-size: var(--fs-small);
  color: var(--text-dim);
  padding-inline: var(--space-3);
  text-align: center;
}

.hero__form-card {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-4);
}

@media (min-width: 960px) {
  .hero { text-align: left; }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-5);
  }

  .hero__content { align-items: flex-start; }

  .hero__kicker { justify-content: flex-start; }

  .hero h1 { margin-inline: 0; }

  .hero__subtitle { margin: var(--space-3) 0 0; }

  .hero__form-card {
    position: sticky;
    top: calc(64px + var(--space-3));
  }
}

/* ---------- Media strip ---------- */

.media-strip {
  padding-block: var(--space-4);
}

.media-strip__label {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--text-dim);
  margin-bottom: var(--space-3);
}

.media-strip__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-5);
}

.media-strip__logos img {
  height: 20px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.media-strip__logos img:hover {
  opacity: 1;
}

@media (min-width: 640px) {
  .media-strip__logos img { height: 26px; }
}

/* ---------- Section scaffolding ---------- */

section {
  padding-block: var(--space-6);
}

.section__header {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto var(--space-5);
}

.section__label {
  display: block;
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--space-2);
}

.section__header h2 {
  margin-bottom: var(--space-2);
}

.section__header p {
  color: var(--text-muted);
}

.section--alt {
  background: var(--bg-raised);
  border-block: 1px solid var(--border);
}

/* ---------- Agenda ---------- */

.agenda-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 720px) {
  .agenda-grid { grid-template-columns: repeat(2, 1fr); }
}

.agenda-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent, var(--cyan));
  border-radius: var(--radius-m);
  padding: var(--space-3);
}

.agenda-card:nth-child(1) { --accent: var(--cyan); }
.agenda-card:nth-child(2) { --accent: var(--orange); }
.agenda-card:nth-child(3) { --accent: var(--purple); }
.agenda-card:nth-child(4) { --accent: var(--cyan); }

.agenda-card__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--accent, var(--cyan));
  margin-bottom: var(--space-1);
}

.agenda-card h3 {
  font-family: var(--pa-font-body);
  font-stretch: normal;
  font-variation-settings: normal;
  margin-bottom: var(--space-2);
}

.agenda-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

/* ---------- Ponentes ---------- */

#ponentes {
  position: relative;
  z-index: 0;
  overflow: clip;
}

#ponentes::before {
  content: "";
  position: absolute;
  inset: 0 -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(circle at 20% 20%, rgba(131, 56, 236, 0.35), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(89, 239, 239, 0.25), transparent 55%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.speakers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 780px) {
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }
}

.speaker-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-4);
}

.speaker-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.speaker-card__avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid;
}

.speaker-card--geni .speaker-card__avatar { border-color: var(--orange); }
.speaker-card--eva .speaker-card__avatar { border-color: var(--cyan); }

.speaker-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.2em;
}

.speaker-card__role {
  font-size: var(--fs-small);
  font-weight: 600;
}

.speaker-card--geni .speaker-card__role { color: var(--orange); }
.speaker-card--eva .speaker-card__role { color: var(--cyan); }

.speaker-card__bio p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-2);
}

.speaker-card__bio p:last-child { margin-bottom: 0; }

/* ---------- Registro / formulario Keap ---------- */

.registro {
  text-align: center;
}

/*
 * === Componente aislado: formulario de Keap ===
 * Cuando tengas el embed de Keap (script o iframe), pegalo
 * dentro de #keap-form-mount, reemplazando el placeholder.
 * Este bloque está deliberadamente separado del resto del
 * layout (sin heredar tipografías ni selectores globales
 * agresivos) para que el HTML/CSS que inyecte Keap no choque
 * con los estilos de la página.
 */
.keap-form {
  all: initial;
  display: block;
  font-family: var(--pa-font-body);
}

.keap-form__placeholder {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-3);
  color: var(--text-dim);
  font-family: var(--pa-font-body);
  font-size: var(--fs-small);
}

.keap-form__placeholder strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.4em;
}

.registro__legal {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: var(--space-4);
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer img {
  height: 22px;
  margin-inline: auto;
  margin-bottom: var(--space-2);
  opacity: 0.8;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary:hover, .btn-primary:focus-visible { transform: none; }
}
