/* =========================================================
   TSC Panamá 2023 – estilos base
   ========================================================= */
:root {
  --red: #e30613;
  --ink: #222;
  --ink-soft: #444;
  --white: #fff;

  --font-nav: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-head: "Montserrat", Helvetica, Arial, sans-serif;
  --font-body: "Questrial", Helvetica, Arial, sans-serif;
  --green: #00a651;
  --text: #555;

  --header-h: 90px;
  --slide-delay: 9s;              /* tiempo por foto del hero */
  --ease-wipe: cubic-bezier(.77, 0, .18, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-head);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, .08); }

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 2vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
  flex-shrink: 0;
}
.brand__biorad { width: 110px; }
.brand__diamed { width: 86px; margin-top: -4px; }

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-nav__list {
  display: flex;
  gap: clamp(12px, 1.3vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__list a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .25s ease;
}
.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.main-nav__list a:hover,
.main-nav__list a.is-active { color: #000; }
.main-nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.lang svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  flex-shrink: 0;
}
.lang:hover { color: var(--red); }
.lang--mobile { display: none; }

.nav-toggle { display: none; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 12 / 5;          /* mismo formato que las fotos (2400×1000) */
  background: #d9dde2;
  isolation: isolate;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__slide {
  visibility: hidden;
  z-index: 0;
}
.hero__slide picture,
.hero__slide img {
  width: 100%;
  height: 100%;
}
.hero__slide img {
  object-fit: cover;
  object-position: center;
  /* el zoom sale desde la esquina inferior derecha para no mover la curva blanca */
  transform-origin: 100% 100%;
  will-change: transform;
}

/* Foto saliente: queda debajo mientras entra la nueva */
.hero__slide.is-prev {
  visibility: visible;
  z-index: 1;
}
.hero__slide.is-prev img { animation: kenburns-out 1.2s ease forwards; }

/* Foto activa: barrido diagonal (misma inclinación que la curva del logo) + Ken Burns */
.hero__slide.is-active {
  visibility: visible;
  z-index: 2;
  animation: wipe 1.15s var(--ease-wipe) both;
}
.hero__slide.is-active img {
  animation: kenburns calc(var(--slide-delay) + 1.5s) cubic-bezier(.25, .1, .25, 1) both;
}
.hero.is-first .hero__slide.is-active { animation: fade-in 1s ease both; }

@keyframes wipe {
  from { clip-path: polygon(0% 0%, 0% 0%, -25% 100%, -25% 100%); }
  to   { clip-path: polygon(0% 0%, 125% 0%, 100% 100%, -25% 100%); }
}
@keyframes kenburns {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
@keyframes kenburns-out {
  from { transform: var(--kb-from, scale(1)); filter: brightness(1); }
  to   { transform: var(--kb-from, scale(1)) scale(1.03); filter: brightness(.75); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Franja roja que viaja en el borde del barrido */
.hero__sweep {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-20%);
  opacity: 0;
}
.hero__sweep span {
  position: absolute;
  top: -5%;
  bottom: -5%;
  left: 0;
  width: 8px;
  background: linear-gradient(180deg, rgba(227, 6, 19, 0) 0%, var(--red) 25%, var(--red) 75%, rgba(227, 6, 19, 0) 100%);
  box-shadow: 0 0 28px 6px rgba(227, 6, 19, .45);
  transform: skewX(-31deg);
}
.hero__sweep.is-running { animation: sweep 1.15s var(--ease-wipe) both; }

@keyframes sweep {
  0%   { transform: translateX(-12.5%); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(112.5%); opacity: 0; }
}

/* Curva blanca + logo HD (fijo) */
.hero__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 37.5%;                  /* 450 / 1200 */
  aspect-ratio: 450 / 190;
  animation: badge-in 1s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.hero__swoosh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--white);
}
.hero__logo {
  position: absolute;
  left: 4.6%;
  top: 8.2%;
  width: 65.5%;
  animation: logo-in .9s .45s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes badge-in {
  from { transform: translate(-6%, -10%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes logo-in {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Texto */
.hero__caption {
  position: absolute;
  left: 50%;
  bottom: 21%;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2.35vw, 46px);
  line-height: 1.2;
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 3px rgba(0, 0, 0, .55), 0 0 22px rgba(0, 0, 0, .35);
}
.hero__caption span { display: inline-block; }
.hero__caption.is-animating span { animation: caption-in 1s .35s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes caption-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); letter-spacing: .06em; }
  to   { opacity: 1; transform: none; filter: blur(0); letter-spacing: normal; }
}

/* =========================================================
   CONTROLES DE SLIDER (hero y galería)
   ========================================================= */
.hero,
.gallery {
  cursor: pointer;
  touch-action: pan-y;           /* deja el scroll vertical, captura el deslizar horizontal */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Flechas */
.sl-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}
.sl-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sl-arrow--prev { left: 24px; transform: translate(-12px, -50%); }
.sl-arrow--next { right: 24px; transform: translate(12px, -50%); }
.hero:hover .sl-arrow,
.gallery:hover .sl-arrow,
.sl-arrow:focus-visible { opacity: 1; transform: translate(0, -50%); }
.sl-arrow:hover { background: var(--red); }

/* Indicadores con barra de progreso */
.sl-dots {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 6;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.sl-dot {
  position: relative;
  width: 44px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.sl-dot::before,
.sl-dot i {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
}
.sl-dot::before {
  right: 0;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.sl-dot i {
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
.sl-dot.is-done i { transform: scaleX(1); background: var(--white); }
.sl-dot.is-active i { animation: progress var(--slide-delay) linear both; }
.is-paused .sl-dot.is-active i { animation-play-state: paused; }

@keyframes progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}


/* =========================================================
   UTILIDADES
   ========================================================= */
.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 44px);
}

/* Aparición al hacer scroll (solo si hay JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal--right { transform: translateX(40px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Fundido suave al cambiar de idioma */
[data-i18n] { transition: opacity .25s ease; }
.is-switching [data-i18n] { opacity: 0; }

/* =========================================================
   CIERRE (antes: contador)
   ========================================================= */
.farewell {
  padding: clamp(64px, 8vw, 110px) 16px;
  text-align: center;
  font-family: var(--font-body);
}
.farewell__drop {
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0 auto 26px;
  border-radius: 0 50% 50% 50%;
  background: var(--red);
  rotate: 45deg;
}
.farewell__drop::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--red);
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.7); opacity: .7; }
  100% { transform: scale(2.1); opacity: 0; }
}
.farewell__eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #888;
  --d: .1s;
}
.farewell__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
  --d: .2s;
}
.farewell__title span {
  color: var(--green);
  background: linear-gradient(90deg, var(--green), #6fd49c, var(--green));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: -200% 0; }
}

/* =========================================================
   BIENVENIDA
   ========================================================= */
.welcome {
  padding: 0 0 clamp(60px, 7vw, 110px);
  font-family: var(--font-body);
  color: var(--text);
  scroll-margin-top: var(--header-h);
}
.welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: clamp(28px, 2.5vw, 40px);
  align-items: start;
}
.welcome__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(24px, 1.6vw, 28px);
  line-height: 1.2;
  color: #111;
}
.welcome__subtitle {
  margin: 4px 0 20px;
  font-size: clamp(18px, 1.2vw, 21px);
  color: #222;
  --d: .1s;
}
.welcome__subtitle strong { color: #111; }
.welcome__body { --d: .2s; }
.welcome__body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.68;
}

.welcome__media {
  position: relative;
  margin: 63px 0 0;
  overflow: hidden;
  --d: .15s;
}
.welcome__media > img:first-child {
  width: 100%;
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.welcome__media:hover > img:first-child { transform: scale(1.04); }
.welcome__icon {
  position: absolute;
  top: 4.5%;
  left: 50%;
  width: 25%;
  translate: -50% 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  50% { transform: translateY(-8px); }
}

/* Íconos */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: clamp(50px, 5vw, 76px);
}
.feature {
  text-align: center;
  color: var(--green);
}
.feature:nth-child(2) { --d: .15s; }
.feature__icon {
  height: 140px;
  width: auto;
  margin: 0 auto 22px;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.feature__icon--stream { height: 112px; margin-top: 28px; }
.feature:hover .feature__icon { transform: translateY(-6px) scale(1.04); }
.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   SEDE: HOTEL
   ========================================================= */
.hotel {
  padding: 0 0 clamp(60px, 7vw, 110px);
  font-family: var(--font-body);
  color: var(--text);
  scroll-margin-top: var(--header-h);
}
.hotel__grid {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: clamp(28px, 2.5vw, 44px);
  align-items: start;
}
.hotel__title {
  margin: 44px 0 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 1.3vw, 23px);
  text-align: center;
  color: #111;
}
.hotel__logo {
  width: 200px;
  margin: 46px auto 26px;
  --d: .1s;
}
.hotel__body { --d: .2s; }
.hotel__body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.68;
}
.hotel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hotel__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.62;
}
.hotel__list li + li { margin-top: 2px; }
.hotel__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 0 50% 50% 50%;
  background: var(--red);
  rotate: 45deg;
}

/* Galería */
.gallery {
  --slide-delay: 7s;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e8ecef;
}
.gallery__slides,
.gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
}
.gallery__slide { visibility: hidden; }
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__slide.is-prev { visibility: visible; z-index: 1; }
.gallery__slide.is-prev img { animation: gallery-out 1s ease forwards; }
.gallery__slide.is-active {
  visibility: visible;
  z-index: 2;
  animation: curtain-next 1s var(--ease-wipe) both;
}
.gallery[data-dir="prev"] .gallery__slide.is-active { animation-name: curtain-prev; }
.gallery.is-first .gallery__slide.is-active { animation: none; }
.gallery__slide.is-active img {
  animation: gallery-in calc(var(--slide-delay) + 1s) cubic-bezier(.25, .1, .25, 1) both;
}

@keyframes curtain-next {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes curtain-prev {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes gallery-in {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
@keyframes gallery-out {
  to { transform: scale(1.08); filter: brightness(.6); }
}

.gallery .sl-dots { bottom: 4%; gap: 6px; }
.gallery .sl-dot { width: 30px; }
.gallery .sl-arrow { width: 44px; height: 44px; }
.gallery .sl-arrow--prev { left: 14px; }
.gallery .sl-arrow--next { right: 14px; }

/* =========================================================
   CONFERENCISTAS
   ========================================================= */
.speakers {
  padding: clamp(40px, 5vw, 70px) 0 clamp(60px, 7vw, 100px);
  font-family: var(--font-body);
  scroll-margin-top: var(--header-h);
}

.section-head {
  display: flex;
  align-items: center;
  gap: clamp(20px, 7vw, 110px);
  margin-bottom: clamp(40px, 5vw, 70px);
}
.section-head__icon {
  width: 92px;
  flex-shrink: 0;
}
.section-head__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 1.4vw, 23px);
  color: #111;
}
.section-head__subtitle {
  margin: 4px 0 0;
  font-size: clamp(18px, 1.3vw, 22px);
  color: #222;
}

.speakers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 70px) clamp(40px, 5vw, 84px);
  max-width: 1500px;
  margin: 0 auto;
}
/* El último impar queda centrado */
.speaker:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - clamp(40px, 5vw, 84px) / 2);
}

.speaker {
  --accent: #8dc63f;
  display: flex;
  flex-direction: column;
  background: #e8e8e8;
  border-right: 4px solid var(--accent);
  transition: box-shadow .5s ease, translate .5s cubic-bezier(.2, .8, .2, 1);
}
.speaker:nth-child(even) { --accent: #ff6a00; }
.speaker:nth-child(even).reveal { --d: .12s; }

.speaker__head {
  position: relative;
  height: clamp(300px, 22vw, 360px);
  overflow: hidden;
}
/* línea de color inferior que se "llena" al pasar el mouse */
.speaker__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent);
  z-index: 2;
}
.speaker__head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  transition: height .6s cubic-bezier(.2, .8, .2, 1);
}
.speaker__photo {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: auto;
  max-width: 60%;
  height: calc(var(--h, .95) * (100% - 4px));
  object-fit: contain;
  object-position: right bottom;
  transform-origin: 70% 100%;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s ease;
  filter: saturate(.92);
}
.speaker__name {
  position: absolute;
  left: 8px;
  bottom: 30px;
  z-index: 1;
  max-width: 45%;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(22px, 1.6vw, 27px);
  line-height: .95;
  letter-spacing: -.01em;
  color: #111;
}
.speaker__name::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.speaker__bio {
  margin: 0;
  padding: 20px 8px 30px;
  font-size: 13px;
  line-height: 1.75;
  color: #222;
}
.speaker__bio strong { color: #000; }

@media (hover: hover) {
  .speaker:hover {
    translate: 0 -6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .1);
  }
  .speaker:hover .speaker__photo { transform: scale(1.05); filter: saturate(1.05); }
  .speaker:hover .speaker__head::before { height: 45%; }
  .speaker:hover .speaker__name::before { transform: scaleX(1); }
}

/* =========================================================
   PUNTUALIDAD
   ========================================================= */
.punctuality {
  padding: clamp(40px, 6vw, 90px) 0 clamp(70px, 8vw, 120px);
  font-family: var(--font-body);
}
.punctuality__inner {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 860px);
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 9vw, 160px);
}
.punctuality__art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.clock-hand {
  transform-box: view-box;
  transform-origin: 541px 147px;
}
.clock-hand line {
  stroke: #536cb1;
  stroke-width: 8;
  stroke-linecap: round;
}
.clock-hand--minute { animation: spin 6s linear infinite; }
.clock-hand--hour { animation: spin 72s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.punctuality__text { --d: .12s; }
.punctuality__text p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #111;
}
.punctuality__text .punctuality__highlight {
  margin-top: 14px;
  font-weight: 700;
  color: var(--red);
}

/* =========================================================
   AGENDA
   ========================================================= */
.agenda {
  padding: clamp(30px, 4vw, 60px) 0 clamp(60px, 7vw, 100px);
  font-family: var(--font-body);
  color: #222;
  scroll-margin-top: var(--header-h);
}

.agenda__day {
  --accent: #8dc63f;
  display: grid;
  grid-template-columns: minmax(0, 20%) minmax(0, 1fr);
  align-items: start;
}
.agenda__day:nth-of-type(even) { --accent: #ff6a00; }
.agenda__day + .agenda__day { margin-top: clamp(50px, 6vw, 100px); }

.agenda__date {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding-top: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--accent);
}
.agenda__date-num {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.agenda__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.agenda__row {
  display: grid;
  grid-template-columns: minmax(0, 25%) minmax(0, 1fr);
  align-items: center;
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid #cfcfcf;
  transition: background-color .3s ease;
}
.agenda__time {
  padding-left: 4px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #333;
  transition: color .3s ease;
}
.agenda__talk {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.45;
}
.agenda__talk strong {
  display: block;
  font-weight: 700;
  color: #111;
}

/* Fotos de los ponentes */
.avatars {
  display: flex;
  flex-shrink: 0;
  padding-left: 10px;
}
.avatar {
  position: relative;
  width: 42px;
  height: 42px;
  margin-left: -10px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transition: transform .3s ease;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar--client { background: #fff; }
.avatar--client::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--red);
}
.avatars--many .avatar { width: 34px; height: 34px; margin-left: -12px; }

.agenda__row--break { background: #f7f7f7; }
.agenda__row--break .agenda__talk { gap: 10px; }
.agenda__break-icon {
  width: 20px;
  height: 20px;
  margin-left: 4px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z'/%3E%3Cpath d='M6 2v2M10 2v2M14 2v2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z'/%3E%3Cpath d='M6 2v2M10 2v2M14 2v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (hover: hover) {
  .agenda__row:not(.agenda__row--break):hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
  }
  .agenda__row:hover .agenda__time { color: var(--accent); }
  .agenda__row:hover .avatar { transform: translateY(-3px); }
}

/* =========================================================
   REGISTRO FINALIZADO
   ========================================================= */
.registration {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 20vw, 380px);
  display: flex;
  align-items: flex-end;
  font-family: var(--font-body);
  color: #fff;
  isolation: isolate;
}
.registration__bg {
  position: absolute;
  inset: -18% 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .15) 100%),
    url("../img/registro.jpg") center 35% / cover no-repeat;
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}
.registration__inner {
  padding-top: 60px;
  padding-bottom: clamp(36px, 3vw, 44px);
  padding-left: clamp(16px, 10vw, 190px);
}
.registration__title {
  margin: 0 0 clamp(40px, 3.5vw, 58px);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.registration__foot {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  --d: .15s;
}
.registration__line {
  width: min(745px, 45vw);
  height: 3px;
  margin-bottom: 4px;
  background: var(--green);
  transform-origin: left;
  transition: transform 1.2s .3s cubic-bezier(.77, 0, .18, 1);
}
.js .registration__foot:not(.is-visible) .registration__line { transform: scaleX(0); }
.registration__foot p {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* =========================================================
   ORGANIZADORES
   ========================================================= */
.partners { padding: clamp(40px, 4vw, 60px) 0; }
.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px clamp(60px, 14vw, 230px);
}
.partners__row img { height: auto; }
.partners__row img:nth-child(1) { width: 116px; }
.partners__row img:nth-child(2) { width: 118px; --d: .1s; }
.partners__row img:nth-child(3) { width: 242px; --d: .2s; }

/* =========================================================
   HOTELES SUGERIDOS
   ========================================================= */
.stay {
  padding: clamp(50px, 7vw, 110px) 0 clamp(60px, 7vw, 100px);
  font-family: var(--font-body);
  color: #222;
  text-align: center;
}
.stay__head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 1.4vw, 22px);
  color: #111;
}
.stay__head p {
  margin: 8px 0 0;
  font-size: clamp(17px, 1.3vw, 20px);
}

.stay__hotels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: clamp(24px, 15vw, 250px);
  margin: clamp(40px, 5vw, 70px) 0 clamp(40px, 5vw, 80px);
}
.stay__hotel {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 20px 30px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  transition: box-shadow .4s ease, translate .4s cubic-bezier(.2, .8, .2, 1), border-color .4s ease;
}
.stay__hotel:nth-child(2) { --d: .12s; }
.stay__hotel img { width: auto; max-width: 100%; max-height: 100%; }
.stay__hotel:nth-child(1) img { width: 300px; }
.stay__hotel:nth-child(2) img { width: 190px; }
.stay__hotel:hover {
  translate: 0 -4px;
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .1);
}

.stay__contact {
  font-style: normal;
  font-size: 15px;
}
.stay__contact p { margin: 0 0 18px; }
.stay__contact .sep { margin: 0 2px; color: #999; }
.stay__contact a:not(.stay__mail):hover { color: var(--green); }
.stay__mail {
  color: #1a73e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stay__mail:hover { color: var(--green); }

/* =========================================================
   ENLACES DE INTERÉS
   ========================================================= */
.links {
  padding: clamp(40px, 5vw, 70px) 0 clamp(60px, 7vw, 100px);
  font-family: var(--font-body);
  color: #222;
  scroll-margin-top: var(--header-h);
}
.links__title {
  margin: 0 0 clamp(40px, 5vw, 80px);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 1.4vw, 22px);
  text-align: center;
  color: #111;
}
.links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 50px);
  max-width: 1600px;
  margin: 0 auto;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 190px;
  padding: 26px 24px;
  border-radius: 10px;
  text-align: center;
  transition: box-shadow .45s ease, translate .45s cubic-bezier(.2, .8, .2, 1), background-color .45s ease;
}
.link-card:nth-child(3n+2) { --d: .1s; }
.link-card:nth-child(3n) { --d: .2s; }
.link-card__logo {
  --logo-h: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--logo-h);
}
.link-card__logo--tall { --logo-h: 190px; }
.link-card__logo img {
  width: auto;
  height: auto;
  max-width: min(100%, 440px);
  max-height: var(--logo-h);
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.link-card__text { font-size: 13px; line-height: 1.5; }
.link-card__eyebrow { font-weight: 700; font-size: 15px; color: #111; }

a.link-card:hover {
  translate: 0 -5px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .09);
}
a.link-card:hover .link-card__logo img { transform: scale(1.04); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--green);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 166, 81, .25);
  transition: background-color .3s ease, translate .3s ease, box-shadow .3s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:hover {
  background: #008a43;
  translate: 0 -2px;
  box-shadow: 0 10px 22px rgba(0, 166, 81, .35);
}
.btn:hover svg { animation: nudge .8s ease infinite; }
@keyframes nudge { 50% { transform: translateY(2px); } }

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */
.faq {
  padding: clamp(30px, 4vw, 60px) 0 clamp(70px, 8vw, 120px);
  font-family: var(--font-body);
  scroll-margin-top: var(--header-h);
}
.faq__list {
  max-width: 972px;
  margin: 0 auto;
}
.faq__item { border-bottom: 1px solid #d9d9d9; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 18px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: #111;
  list-style: none;
  cursor: pointer;
  transition: color .3s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }
.faq__item summary i {
  position: relative;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ff6a00;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
}
.faq__item summary i::before,
.faq__item summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 1.6px;
  margin: -.8px 0 0 -3.5px;
  border-radius: 1px;
  background: #fff;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item.is-open summary i { transform: rotate(180deg); background: var(--green); }
.faq__item.is-open summary i::after { transform: rotate(0deg); }

.faq__answer { overflow: hidden; }
.faq__answer p {
  margin: 0;
  padding: 0 18px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #ff6a00;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { font-family: var(--font-body); }
.site-footer__band {
  background: var(--green);
  color: #fff;
}
.site-footer__inner {
  padding-top: clamp(60px, 6vw, 104px);
  padding-bottom: clamp(60px, 6vw, 104px);
  padding-left: clamp(16px, 10vw, 190px);
}
.site-footer__title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(26px, 1.9vw, 32px);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  --d: .12s;
}
.site-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.3;
}
.site-footer__list li:first-child { text-transform: uppercase; }
.site-footer__list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer__list a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .4s ease;
}
.site-footer__list a:hover { background-size: 100% 2px; }
.site-footer__copy {
  margin: 0;
  padding: 44px 16px 50px;
  font-family: var(--font-nav);
  font-size: 13px;
  text-align: center;
  color: #444;
}

/* Botón volver arriba */
.to-top {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity .35s ease, translate .35s ease, visibility 0s .35s, background-color .3s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity .35s ease, translate .35s ease, visibility 0s, background-color .3s ease;
}
.to-top:hover { background: var(--red); }
.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-head__subtitle,
.stay__head p,
.hotel__title,
.faq__item summary span,
.link-card__text { text-wrap: balance; }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1100px) {
  .brand__biorad { width: 92px; }
  .brand__diamed { width: 72px; }
  .main-nav__list a { font-size: 12px; }
}

/* =========================================================
   MÓVIL
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .site-header__inner { justify-content: space-between; }
  .brand__biorad { width: 92px; }
  .brand__diamed { width: 70px; }

  .lang--desktop { display: none; }

  /* botón hamburguesa */
  .nav-toggle {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .35s ease, opacity .2s ease, top .35s ease;
  }
  .nav-toggle span:nth-child(1) { top: 15px; }
  .nav-toggle span:nth-child(2) { top: 21px; }
  .nav-toggle span:nth-child(3) { top: 27px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  /* panel desplegable */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 8px 16px 20px;
    background: var(--white);
    border-top: 3px solid var(--red);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .45s cubic-bezier(.77, 0, .18, 1), visibility 0s .45s;
  }
  .main-nav.is-open {
    clip-path: inset(0 0 -40px 0);
    visibility: visible;
    transition: clip-path .45s cubic-bezier(.77, 0, .18, 1), visibility 0s;
  }
  .main-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .main-nav__list li { border-bottom: 1px solid #eee; }
  .main-nav__list a {
    padding: 14px 4px;
    font-size: 16px;
  }
  .main-nav__list a::after { display: none; }
  .main-nav__list a.is-active { color: var(--red); }

  .lang--mobile {
    display: inline-flex;
    margin-top: 16px;
    padding: 4px;
    font-size: 15px;
  }
}

/* Tablet vertical: evitar columnas apretadas */
@media (max-width: 900px) {
  .welcome__grid,
  .hotel__grid { grid-template-columns: 1fr; }
  .welcome__media { margin-top: 8px; }
  .welcome__media,
  .gallery { width: 100%; max-width: 560px; justify-self: center; }
  .hotel__title { margin-top: 12px; }

  .speakers__grid { grid-template-columns: 1fr; max-width: 640px; }
  .speaker:last-child:nth-child(odd) { width: auto; justify-self: stretch; }

  .links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-card--poster { grid-row: span 2; }

  /* objetivos táctiles cómodos */
  .stay__contact a,
  .site-footer__list a { display: inline-block; padding: 7px 0; }
  .brand { padding: 8px 0; }
}

@media (max-width: 767px) {
  /* Fotos verticales dedicadas para móvil */
  .hero {
    aspect-ratio: auto;
    height: min(128vw, calc(100svh - var(--header-h) - 24px));
    min-height: 440px;
  }
  .hero__slide img { object-position: center 60%; }

  .hero__badge {
    width: min(84%, 380px);
  }

  .hero__caption {
    bottom: 15%;
    width: calc(100% - 32px);
    font-size: clamp(21px, 6vw, 28px);
    text-wrap: balance;
  }

  .hero .sl-arrow { display: none; }

  .hero__dots { bottom: 5%; }
  .sl-dot { width: 36px; height: 28px; }

  .hero__sweep span { width: 6px; transform: skewX(-12deg); }

  .farewell__eyebrow { font-size: 12px; letter-spacing: .12em; line-height: 1.5; padding: 0 8px; }

  .welcome__grid { grid-template-columns: 1fr; }
  .welcome__media { margin-top: 8px; }
  .js .reveal--right { transform: translateY(28px); }
  .welcome__body p { font-size: 15px; line-height: 1.7; }

  .features { grid-template-columns: 1fr; gap: 48px; }

  .hotel__grid { grid-template-columns: 1fr; }
  .hotel__title { margin-top: 12px; }
  .hotel__logo { width: 170px; margin: 28px auto 24px; }
  .gallery { margin-top: 8px; }
  .gallery .sl-arrow { opacity: 1; transform: translate(0, -50%); width: 38px; height: 38px; }
  .gallery .sl-arrow svg { width: 18px; height: 18px; }
  .gallery .sl-dot { width: 22px; }

  .section-head { flex-direction: column; text-align: center; gap: 16px; }
  .section-head__icon { width: 76px; }

  .speakers__grid { grid-template-columns: 1fr; }
  .speaker:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .speaker__head { height: min(78vw, 320px); }
  .speaker__name { font-size: 20px; bottom: 22px; max-width: 42%; text-shadow: 0 0 12px #e8e8e8, 0 0 4px #e8e8e8; }
  .speaker__photo { max-width: 56%; }
  .speaker__name::before { transform: scaleX(1); }
  .speaker__bio { padding: 18px 16px 24px; font-size: 14px; line-height: 1.7; }

  .punctuality__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .punctuality__art { width: 170px; }

  .agenda__day { grid-template-columns: 1fr; }
  .agenda__date {
    z-index: 3;
    top: var(--header-h);
    padding: 10px 0;
    background: #fff;
    border-bottom: 3px solid var(--accent);
  }
  .agenda__date-num { font-size: 34px; }
  .agenda__row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .agenda__row--break { padding: 12px 10px; }
  .agenda__time {
    justify-self: start;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    background: var(--accent);
  }
  .agenda__row--break .agenda__time { color: #333; background: #e4e4e4; }
  .agenda__talk { align-items: flex-start; gap: 12px; }
  .avatars { padding-top: 2px; }
  .avatars--many { flex-wrap: wrap; max-width: 110px; row-gap: 4px; }

  .registration { min-height: 320px; }
  .registration__inner { padding-left: 16px; }
  .registration__foot { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .registration__line { width: 120px; }

  .partners__row { gap: 28px 40px; }
  .partners__row img:nth-child(3) { flex-basis: 100%; max-width: 230px; }

  .stay__hotels { grid-template-columns: 1fr; gap: 18px; }
  .stay__hotel { height: 130px; }
  .stay__contact .sep { display: none; }
  .stay__contact p { line-height: 1.6; }
  .stay__contact p a { display: block; padding: 6px 0; }
  .stay__contact .stay__mail { display: inline-block; padding: 6px 0; }
  .site-footer__list a { display: inline-block; padding: 5px 0; }
  .site-footer__list li { margin-top: 8px; }
  .site-footer__list svg { margin-top: 6px; }
  .to-top { width: 40px; height: 40px; }
  .brand { padding: 8px 0; }

  .links__grid { grid-template-columns: 1fr; gap: 12px; }
  .link-card { min-height: 0; padding: 22px 16px; }
  .link-card__logo { --logo-h: 80px; }
  .link-card__logo--tall { --logo-h: 170px; }
  .link-card__logo img { max-width: min(100%, 300px); }

  .faq__item summary { padding: 20px 4px; }
  .faq__answer p { padding: 0 4px 20px; }

  .site-footer__inner { padding-left: 16px; }
  .site-footer__list li:nth-child(2) > span { display: flex; flex-direction: column; }
  .site-footer__sep { display: none; }
  .site-footer__list li { word-break: break-word; }
  .feature__icon { height: 110px; }
  .feature__icon--stream { height: 88px; margin-top: 0; }
  .feature p { max-width: 300px; margin: 0 auto; font-size: 15px; }
}

/* =========================================================
   Accesibilidad: menos movimiento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide.is-active { animation: fade-in .6s ease both; }
  .hero__slide.is-active img,
  .hero__slide.is-prev img { animation: none; }
  .hero__sweep { display: none; }
  .gallery__slide.is-active,
  .gallery[data-dir="prev"] .gallery__slide.is-active { animation: fade-in .6s ease both; }
  .gallery__slide.is-active img,
  .gallery__slide.is-prev img { animation: none; }
  .hero__badge,
  .hero__logo,
  .hero__caption.is-animating span { animation: fade-in .6s ease both; }
  .js .reveal { transform: none; transition-duration: .4s; }
  .farewell__drop::after,
  .farewell__title span,
  .welcome__icon,
  .clock-hand { animation: none; }
  .faq__answer { transition: none !important; }
}
