/* ==========================================================================
   Innovation Days 2026 — Fundació BIT
   Hoja de estilos principal. Mobile-first, sin dependencias.

   1.  Tipografía
   2.  Tokens de diseño
   3.  Reset y base
   4.  Utilidades
   5.  Botones
   6.  Cabecera
   7.  Drawer móvil
   8.  Hero
   9.  Qué son / Descripción / Cifras
   10. Programa
   11. Ponentes
   12. Footer
   13. Volver arriba
   14. Animaciones de entrada
   15. Preferencias de movimiento
   16. Impresión
   ========================================================================== */

/* 1. Tipografía ========================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens de diseño ==================================================== */

:root {
  /* Color */
  --c-ink: #000000;
  --c-blue: #0246CA;
  --c-sky: #73C7FE;
  --c-aqua: #00EAE1;
  --c-white: #ffffff;
  --c-surface: #F5F8FD;
  --c-border: rgba(2, 70, 202, 0.14);
  --c-border-strong: rgba(2, 70, 202, 0.26);
  --c-muted: rgba(0, 0, 0, 0.64);

  /* Tipografía */
  --font-sans: "Space Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.5rem, 7vw, 4.75rem);
  --fs-h2: clamp(1.75rem, 3.6vw, 2.875rem);
  --fs-h3: clamp(1.15rem, 1.9vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Métrica */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-btn: 5px;
  --radius-card: 14px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(2, 70, 202, 0.07);
  --shadow-2: 0 18px 48px rgba(2, 70, 202, 0.16);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 280ms;
}

/* 3. Reset y base ======================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--c-blue);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--c-sky);
  color: var(--c-ink);
}

/* 4. Utilidades ========================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  transition: transform 200ms var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__title {
  font-size: var(--fs-h2);
  text-wrap: balance;
}

.section__intro {
  margin-top: 1rem;
  color: var(--c-muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-aqua));
}

.prose p {
  margin-bottom: 1.15rem;
  color: var(--c-muted);
  line-height: 1.72;
}

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

.prose strong {
  color: var(--c-ink);
  font-weight: 500;
}

.prose--wide {
  max-width: 48rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-weight: 500;
  color: var(--c-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: gap var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.link-arrow:hover {
  gap: 0.9rem;
  border-bottom-color: currentColor;
}

.link-arrow__icon {
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover .link-arrow__icon {
  transform: translateX(2px);
}

.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--c-aqua);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* 5. Botones ============================================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn::after {
  content: "↗";
  font-size: 0.9em;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--c-blue);
  color: var(--c-white);
  box-shadow: 0 10px 26px rgba(2, 70, 202, 0.34);
}

.btn--primary:hover {
  background: #01339A;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2, 70, 202, 0.42);
}

.btn--secondary {
  background: var(--c-aqua);
  color: var(--c-ink);
  box-shadow: 0 10px 26px rgba(0, 234, 225, 0.28);
}

.btn--secondary:hover {
  background: #5DF3EC;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 234, 225, 0.36);
}

.btn:active {
  transform: translateY(0);
}

/* 6. Cabecera ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  /* Por encima del drawer: el botón hamburguesa sigue visible y sirve
     también para cerrarlo (se convierte en una X). */
  z-index: 70;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* Sin soporte de backdrop-filter la cabecera es opaca para no dejar
   transparentarse el contenido que pasa por debajo. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--c-white);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 6px 26px rgba(2, 70, 202, 0.08);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__logo {
  width: auto;
  height: clamp(36px, 4.6vw, 52px);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.25rem);
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-aqua));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover::after,
.nav__link.is-current::after {
  transform: scaleX(1);
}

.nav__link.is-current {
  color: var(--c-blue);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-white);
}

.lang-switch__btn {
  padding: 0.3rem 0.62rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lang-switch__btn:hover {
  background: rgba(115, 199, 254, 0.4);
}

.lang-switch__btn.is-active {
  background: var(--c-blue);
  color: var(--c-white);
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  background: var(--c-white);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.burger:hover {
  border-color: var(--c-border-strong);
  background: var(--c-surface);
}

.burger__box {
  display: grid;
  gap: 5px;
  width: 18px;
}

.burger__line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* A partir de 900px la navegación principal sustituye al menú hamburguesa. */
@media (min-width: 900px) {
  .nav {
    display: block;
  }

  .burger {
    display: none;
  }
}

/* 7. Drawer móvil ======================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.drawer[hidden] {
  display: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  animation: drawer-fade 260ms var(--ease);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  /* El padding superior deja libre la cabecera, que queda por encima. */
  padding: 6.25rem var(--gutter) 2.5rem;
  background: var(--c-white);
  box-shadow: var(--shadow-2);
  animation: drawer-slide 300ms var(--ease);
  overflow-y: auto;
}

.drawer__list {
  display: grid;
  gap: 0.25rem;
}

.drawer__link {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}

.drawer__link:hover {
  color: var(--c-blue);
}

.drawer__lang {
  display: flex;
  gap: 0.75rem;
}

.drawer__lang-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.drawer__lang-btn.is-active {
  border-color: var(--c-blue);
  background: var(--c-blue);
  color: var(--c-white);
}

.drawer__lang-btn:hover {
  border-color: var(--c-border-strong);
  background: var(--c-surface);
}

.drawer__lang-btn.is-active:hover {
  background: var(--c-blue);
}

@keyframes drawer-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawer-slide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* 8. Hero ================================================================ */

/* La imagen del hero es un banner de 2522×757 (3,33:1). Para que se vea
   COMPLETA en cualquier pantalla, la banda se dimensiona con la proporción
   real del archivo (aspect-ratio) y la imagen nunca se recorta
   (background-size: 100% auto). Nada de cover: cover recortaba el 79,6% de
   la imagen a 390px de ancho y solo encajaba a partir de ~1333px. */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #1C0E05;
}

/* Móvil: la banda va en flujo y el contenido debajo. A 390px la imagen
   completa solo mide 117px de alto: los CTA no caben encima. */
.hero__media {
  position: relative;
  z-index: -2;
  flex: none;
  width: 100%;
  aspect-ratio: 2522 / 757;
  background-image: url("../images/hero.jpg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 62%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--gutter) var(--gutter) clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* La imagen de fondo ya lleva el wordmark del evento en el lado izquierdo,
   así que el copy se ancla abajo a la derecha, sobre la zona oscura. */
.hero__content {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.hero__eyebrow {
  color: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  /* Escritorio: la banda vuelve a flotar y el alto del hero lo fija la
     propia imagen. min-height: min-content impide que el copy se recorte
     si algún día necesita más espacio que la banda. */
  .hero {
    aspect-ratio: 2522 / 757;
    min-height: min-content;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    width: auto;
    height: 100%;
    aspect-ratio: auto;
  }

  /* Tablet (768–1199px): el wordmark viene impreso en el 48,5% izquierdo de
     la banda, así que el copy se ancla a la derecha y se limita a la mitad
     derecha para no pisarlo. Si los dos CTA no caben en una fila, envuelven. */
  .hero__content {
    width: 47%;
    justify-items: end;
    text-align: right;
  }
}

/* PC y laptop (≥1200px): los CTA vuelven a su sitio original, abajo a la
   derecha y en una sola fila, sobre la zona oscura de la imagen. A partir de
   1200px la mitad derecha de la banda (51,4%) da para los dos botones, así
   que no hace falta contenerlos ni dejar que envuelvan. */
@media (min-width: 1200px) {
  .hero__content {
    width: auto;
    justify-items: end;
    text-align: right;
  }

  .hero__actions {
    flex-wrap: nowrap;
  }
}

/* 9. Qué son / Descripción / Cifras ======================================= */

.about {
  background: var(--c-white);
}

.about__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.about__copy {
  max-width: 44rem;
}

.about__aside {
  align-self: start;
}

.org-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.org-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-sky));
}

.org-card__title {
  font-size: var(--fs-h3);
  margin-bottom: 1.25rem;
}

.org-card__list {
  display: grid;
  gap: 1.15rem;
}

.org-card__item {
  display: grid;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--c-aqua);
}

.org-card__name {
  font-weight: 500;
  line-height: 1.35;
}

.org-card__desc {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.overview {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--c-border);
}

.overview__lead {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--c-ink);
}

.overview .prose {
  margin-top: 1.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.stats__item {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem;
  background: var(--c-white);
}

.stats__value {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-blue);
  font-variant-numeric: tabular-nums;
}

.stats__label {
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.95fr);
  }
}

/* 10. Programa =========================================================== */

.program {
  background: var(--c-surface);
}

.tabs__list {
  position: relative;
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--c-border);
}

.tabs__tab {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.95rem 1.1rem 1.15rem;
  border: 0;
  background: none;
  text-align: left;
  color: var(--c-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.tabs__tab:hover {
  color: var(--c-ink);
}

.tabs__tab.is-active {
  color: var(--c-ink);
}

.tabs__day {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tabs__date {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.tabs__tab.is-active .tabs__date {
  color: var(--c-blue);
}

.tabs__indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--c-blue), var(--c-aqua));
  transition: transform var(--dur) var(--ease);
}

.tabs__panel {
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.tabs__panel[hidden] {
  display: none;
}

.tabs__subtitle {
  max-width: 52rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-ink);
}

.timeline {
  position: relative;
  display: grid;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--c-border-strong);
}

.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 9px;
  width: 2px;
  height: var(--progress, 0%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c-blue), var(--c-aqua));
  transition: height 160ms linear;
}

.session {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  row-gap: 0.35rem;
  padding-bottom: 1.75rem;
}

.session:last-child {
  padding-bottom: 0;
}

.session__marker {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: start;
  margin-top: 0.55rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-white);
  border: 3px solid var(--c-blue);
  box-shadow: 0 0 0 4px var(--c-surface);
  z-index: 1;
}

.session--break .session__marker {
  border-color: var(--c-aqua);
}

/* Momentos que NO son sesiones: inscripciones, acreditaciones, pausas café y
   networking. Se distinguen del contenido con un marcador más pequeño y hueco,
   y con el titular en tono secundario. */
.session--nonsession .session__marker,
.session--break .session__marker {
  width: 9px;
  height: 9px;
  margin-top: 0.78rem;
  border-width: 2px;
  background: var(--c-surface);
}

.session--nonsession .session__marker {
  border-color: var(--c-border-strong);
}

.session--nonsession .session__title,
.session--break .session__title {
  color: var(--c-muted);
  font-weight: 400;
}

.session--forum .session__marker {
  border-color: var(--c-sky);
  background: var(--c-sky);
}

.session__time {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-blue);
  font-variant-numeric: tabular-nums;
}

.session__content {
  grid-column: 2;
  grid-row: 2;
}

.session__type {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.session--forum .session__type {
  border-color: transparent;
  background: var(--c-blue);
  color: var(--c-white);
}

.session--break .session__type {
  border-color: transparent;
  background: rgba(0, 234, 225, 0.22);
  color: var(--c-ink);
}

.session__title {
  font-size: var(--fs-h3);
  line-height: 1.32;
  text-wrap: pretty;
}

.session__desc {
  margin-top: 0.45rem;
  max-width: 46rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.62;
}

.session__people {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.1rem;
}

.session__speaker {
  font-weight: 500;
  font-size: var(--fs-sm);
}

.session__role {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

@media (min-width: 700px) {
  .session {
    grid-template-columns: 20px 96px minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: 0;
  }

  .session__marker {
    grid-row: 1;
  }

  .session__time {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0.2rem;
  }

  .session__content {
    grid-column: 3;
    grid-row: 1;
  }
}

/* 11. Bloque de inscripción =============================================== */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--c-blue);
  color: var(--c-white);
  text-align: center;
}

/* Degradados en las esquinas: el centro mantiene el azul puro y el texto
   blanco conserva el contraste (7,7:1). */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(65% 110% at 12% 0%, rgba(115, 199, 254, 0.35), transparent 62%),
    radial-gradient(60% 110% at 88% 100%, rgba(0, 234, 225, 0.28), transparent 62%);
}

.cta__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.cta__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.cta__title {
  font-size: var(--fs-h2);
  color: var(--c-white);
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.cta__lead {
  max-width: 42rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

@media (min-width: 600px) {
  .cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Sobre fondo azul, el botón principal se invierte a blanco. */
.cta .btn--primary {
  background: var(--c-white);
  color: var(--c-blue);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.cta .btn--primary:hover {
  background: var(--c-sky);
  color: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.cta .btn--secondary {
  background: var(--c-aqua);
  color: var(--c-ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.cta .btn--secondary:hover {
  background: #5df3ec;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

/* 12. Footer ============================================================= */

.site-footer {
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
}

.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  display: flex;
  justify-content: center;
}

.site-footer__logos {
  width: min(100%, 920px);
  height: auto;
  /* Con loading="lazy" el texto alternativo se pinta mientras carga: se
     tipografía en pequeño para que no parezca un contenido roto. */
  color: var(--c-muted);
  font-size: var(--fs-xs);
}

/* 13. Volver arriba ====================================================== */

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-blue);
  font-size: 1.15rem;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.to-top[hidden] {
  display: none;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}

/* 14. Animaciones de entrada ============================================= */

/* Fail-safe por construcción: el contenido solo se oculta si JavaScript lo ha
   marcado explícitamente como "pendiente" por estar fuera de pantalla. Si el
   script no llega a ejecutarse, o el observer falla, nada queda invisible. */
.js .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js .reveal[data-reveal-pending] {
  opacity: 0;
  transform: translateY(20px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--ease) var(--reveal-delay, 0ms),
    transform 620ms var(--ease) var(--reveal-delay, 0ms);
}

/* 15. Preferencias de movimiento ========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .js .reveal[data-reveal-pending] {
    opacity: 1;
    transform: none;
  }

  .to-top {
    opacity: 1;
    transform: none;
  }
}

/* 16. Impresión ========================================================== */

@media print {
  .site-header,
  .drawer,
  .to-top,
  .skip-link,
  .tabs__list {
    display: none !important;
  }

  .tabs__panel[hidden] {
    display: block !important;
  }

  .hero {
    min-height: auto;
    aspect-ratio: auto;
  }

  .hero__media {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 2522 / 757;
  }

  body {
    font-size: 11pt;
  }
}
