/* ==========================================================================
   Biotech Week Puerto Varas 2026 — design tokens
   Paleta real de marca (L&F Biotech Week 2026 / Save the Date), verificada
   contra el poster oficial: verde oscuro #305441 (fondo/superficie oscura),
   cian #09E1CD (título BIOTECH WEEK), rosa #FF2577 (rayos/acentos),
   verde vivo #04AF20 (CTA, píldoras "Día X"). Tipografías sin cambios
   (Outfit/Manrope/IBM Plex Mono) — a pedido se mantienen las originales.
   Nombres de variables (--purple, --olive) se mantienen por compatibilidad
   con el resto del CSS; ver valores reales más abajo. Un solo radio por
   familia de componente (pill en botones, 14px en tarjetas/inputs,
   20px en imágenes).
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color — paleta real de marca (Save the Date / L&F Biotech Week 2026) */
  --ink: #14181a;
  --ink-soft: #454f4c;
  --ink-faint: #6b736f;
  --paper: #f6f7f2;
  --paper-alt: #ececE4;
  --white: #ffffff;

  --purple: #305441;       /* verde oscuro — superficie oscura de marca (nav, focus, acentos) */
  --purple-deep: #16281f;  /* verde casi negro — extremo de gradientes */
  --purple-soft: #e3f9f5;  /* tinte claro de cian, para fondos suaves */

  --olive: #04af20;        /* verde vivo — CTA primario */
  --olive-deep: #037c18;   /* verde vivo, hover/oscurecido */
  --forest: #037c18;

  --cian: #09e1cd;         /* cian — título BIOTECH WEEK, acentos grandes */
  --rosa: #ff2577;         /* rosa/magenta — detalles, rayos, hover alternativo */

  --line: rgba(20, 24, 26, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.18);

  --brand-gradient: linear-gradient(135deg, #234436 0%, var(--purple) 55%, var(--purple-deep) 100%);

  /* type */
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* shape */
  --radius-card: 14px;
  --radius-image: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(20, 24, 26, 0.06), 0 12px 32px -12px rgba(43, 30, 74, 0.18);

  --max-w: 1320px;
  --max-w-narrow: 760px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture { max-width: 100%; display: block; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.wrap--narrow { max-width: var(--max-w-narrow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reveal-on-scroll (motivated: sequences the page so content arrives with
   the same left-to-right reading order as the layout, not decoration)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Buttons — one shape system: full pill, one accent color
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: var(--olive);
  color: var(--white);
}
.btn--primary:hover { background: var(--forest); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-on-dark);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* on light sections, ghost needs dark ink border/text */
.form-card .btn--primary { width: 100%; }

/* ==========================================================================
   Chips / micro-labels — rationed to hero + inscripción only
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.chip--mono {
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid var(--line-on-dark);
}
.chip--on-dark { background: rgba(255, 255, 255, 0.14); }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--purple);
  border-bottom: 1px solid var(--line-on-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 80px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  line-height: 1;
  font-family: var(--font-display);
  margin-right: auto;
}
.brand-mark__text { display: flex; flex-direction: column; line-height: 1; }
.brand-mark__icon {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.brand-mark__icon--white { filter: brightness(0) invert(1); }
.brand-mark__line1 { font-size: 1rem; font-weight: 400; color: var(--white); }
.brand-mark__line1 strong { font-weight: 800; }
.brand-mark__line2 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-top: 2px; }

@media (max-width: 640px) {
  .brand-mark__icon { height: 50px; }
}
@media (max-width: 420px) {
  .brand-mark__icon { height: 44px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  font-size: 0.85rem;
  font-weight: 600;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a { color: var(--white); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--olive); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--line-on-dark);
  background: var(--purple);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: var(--sp-3) 0; font-weight: 600; font-size: 1.05rem; color: var(--white); border-bottom: 1px solid var(--line-on-dark); }
.mobile-menu .btn { margin-top: var(--sp-3); }

@media (max-width: 1300px) {
  .nav-links { gap: var(--sp-4); font-size: 0.8rem; }
}

@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero — full-bleed real photo, duotone brand overlay, asymmetric text block
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 20, 16, 0.92) 0%, rgba(22, 40, 31, 0.55) 45%, rgba(35, 55, 45, 0.35) 100%),
    linear-gradient(120deg, rgba(48, 84, 65, 0.55), rgba(9, 225, 205, 0.18));
  mix-blend-mode: normal;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 108px;
  padding-bottom: var(--sp-9);
  max-width: 760px;
}
.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.7rem);
  font-weight: 800;
  margin-top: var(--sp-4);
  text-wrap: balance;
}
.hero__subtext {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin-top: var(--sp-4);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero__actions-caption {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 640px) {
  .hero__inner { padding-bottom: var(--sp-7); }
}

/* ==========================================================================
   Organiza strip
   ========================================================================== */
.organiza-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.organiza-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-block: var(--sp-5);
}
.organiza-strip__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.organiza-strip__logos { display: flex; align-items: center; gap: var(--sp-7); }
.organiza-strip__logos img { height: 44px; width: auto; object-fit: contain; }

/* ==========================================================================
   Section rhythm
   ========================================================================== */
section { padding-block: var(--sp-9); }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 18ch;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: var(--sp-3);
}
.lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
}

/* ==========================================================================
   Manifiesto — split text/image, single focused message stacked vertically
   ========================================================================== */
.manifesto { background: var(--paper-alt); color: var(--ink); }
.manifesto .lede { color: var(--ink); }
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-9);
  align-items: stretch;
}
.manifesto__text { display: flex; flex-direction: column; justify-content: center; }
.manifesto__text p + p { margin-top: var(--sp-5); color: var(--ink-soft); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; }

.manifesto__figure {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
  min-height: 320px;
}
.manifesto__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.manifesto__figure img.is-active { opacity: 1; }

@media (max-width: 900px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  /* width:100% primero: con solo min-height + aspect-ratio, un item de grid
     resolvia el ancho a partir del alto (260px * 16/10 = 416px) sin respetar
     el ancho disponible del track y se salia de la pantalla. */
  .manifesto__figure { order: -1; width: 100%; min-height: 260px; aspect-ratio: 16/10; }
}

.manifesto-parte { background: var(--brand-gradient); color: var(--white); padding-block: var(--sp-9); }
.manifesto-parte .section-title { color: var(--white); max-width: 46ch; margin-bottom: var(--sp-5); }
.manifesto__parte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.manifesto__parte-text-col { display: flex; flex-direction: column; justify-content: center; }
.manifesto__parte-text { font-size: 1.05rem; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.manifesto__parte-boxes { display: grid; gap: var(--sp-4); }
.parte-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-image);
  padding: var(--sp-5);
}
.parte-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--olive);
  margin-bottom: var(--sp-3);
}
.parte-box__icon svg { width: 22px; height: 22px; }
.parte-box h3 { color: var(--white); font-size: 1.05rem; margin-bottom: var(--sp-2); }
.parte-box p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }

@media (max-width: 900px) {
  .manifesto__parte-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pilares — zigzag split (x2) then a full-bleed band (breaks the pattern)
   ========================================================================== */
.pilares { padding-block: var(--sp-9); }
.pilares > .wrap { margin-bottom: var(--sp-8); }

/* Sticky stack: each .pilar pins at top:0 and the next one, later in
   source order, paints over it and pushes it off — no JS required. */
.pilares-stack { position: relative; }

.pilar {
  position: sticky;
  top: 0;
  min-height: min(100vh, 720px);
  display: flex;
  align-items: center;
  background: var(--paper);
}
.pilares-stack .pilar:nth-child(even) { background: var(--white); }

.pilar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  width: 100%;
}
.pilar--reverse .pilar__grid { direction: rtl; }
.pilar--reverse .pilar__text, .pilar--reverse .pilar__figure { direction: ltr; }

.pilar__index {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 1;
  color: var(--cian);
}
.pilar__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: var(--sp-3); max-width: 16ch; }
.pilar__text p { margin-top: var(--sp-4); color: var(--ink-soft); max-width: 52ch; }
.pilar__figure img { border-radius: var(--radius-image); aspect-ratio: 5/4; object-fit: cover; }

@media (max-width: 900px) {
  /* El gap grande entre el titulo "Tres focos" y la tarjeta 01 solo se nota
     en mobile (en desktop el sticky-stack ya trae su propio ritmo visual). */
  .pilares > .wrap { margin-bottom: var(--sp-4); }

  /* Sticky-stack is a desktop flourish — on mobile/tablet it just adds scroll
     jank (each card pins briefly then releases), so drop back to normal flow. */
  .pilar { position: static; min-height: auto; padding-block: var(--sp-8); }
  .pilar__grid { grid-template-columns: 1fr; }
  .pilar--reverse .pilar__grid { direction: ltr; }
  .pilar__index { font-size: clamp(3rem, 16vw, 4.5rem); }

  /* Always text-then-photo on mobile/tablet, regardless of --reverse
     (which swaps the DOM order for the desktop zigzag). */
  .pilar__text { order: 1; }
  .pilar__figure { order: 2; }
}

/* ==========================================================================
   Programa — tabs + timeline (long-list alternative to card grids)
   ========================================================================== */
.programa { background: var(--paper-alt); }
.tabs { margin-top: var(--sp-7); }
.tabs__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.tabs__tab {
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.tabs__day { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.tabs__theme { font-weight: 700; font-size: 1.02rem; }
.tabs__subtitle { font-size: 0.8rem; color: var(--ink-soft); }
.tabs__tab:hover { border-color: var(--purple); }
.tabs__tab.is-active { background: var(--purple); border-color: var(--purple); }
.tabs__tab.is-active .tabs__day { color: rgba(255, 255, 255, 0.7); }
.tabs__tab.is-active .tabs__theme { color: var(--white); }
.tabs__tab.is-active .tabs__subtitle { color: rgba(255, 255, 255, 0.75); }

.tabs__panel { background: var(--white); border-radius: var(--radius-card); padding: var(--sp-6) var(--sp-6); border: 1px solid var(--line); animation: tabsPanelIn 0.4s var(--ease); }
.tabs__panel-lead { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px dashed var(--line); }

@keyframes tabsPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tabs__panel { animation: none; }
}

.tabs__hint {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-soft);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  margin-bottom: var(--sp-4);
  width: fit-content;
}
.tabs__hint svg { width: 16px; height: 16px; flex: 0 0 auto; animation: tabsHintBounce 1.6s ease-in-out infinite; }
@keyframes tabsHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .tabs__hint svg { animation: none; }
}

.tabs__nav-mobile { display: none; }
.tabs__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.tabs__nav-btn svg { width: 16px; height: 16px; }
.tabs__nav-btn:hover:not(:disabled) { border-color: var(--purple); }
.tabs__nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 68px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--olive), var(--purple));
  opacity: 0.35;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-4);
}
.timeline li + li { border-top: 1px dashed var(--line); }
.timeline time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--purple); font-weight: 600; padding-top: 2px; }
.timeline li > div { display: flex; flex-direction: column; gap: 2px; }
.timeline strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.timeline span { color: var(--ink-soft); font-size: 0.92rem; }
.timeline em { color: var(--ink-faint); font-style: italic; }

@media (max-width: 1024px) {
  .tabs__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .tabs__list { grid-template-columns: 1fr; }
  .tabs__hint { display: flex; }
  .tabs__nav-mobile { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-5); }
}

@media (max-width: 640px) {
  .timeline::before { left: 52px; }
  .timeline li { grid-template-columns: 52px 1fr; gap: var(--sp-3); }
}

/* ==========================================================================
   Trayectoria — testimonios
   ========================================================================== */
.trayectoria { background: var(--brand-gradient); color: var(--white); }
.trayectoria .section-title { color: var(--white); }
.testimonios { max-width: 720px; margin-inline: auto; margin-top: var(--sp-8); text-align: center; }
.testimonios__track { position: relative; min-height: 220px; }
.testimonio {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.testimonio.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.testimonio blockquote { margin: 0; font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, 0.94); font-style: italic; max-width: 60ch; }
.testimonio figcaption { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); font-style: normal; }
.testimonio figcaption cite { font-style: normal; }

.testimonios__dots { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-6); }
.testimonios__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.testimonios__dots button.is-active { background: var(--white); transform: scale(1.25); }

@media (max-width: 760px) {
  .testimonios__track { min-height: 280px; }
}

/* ==========================================================================
   Aliados — logo wall, grouped, logo-only
   ========================================================================== */
.aliados { background: var(--white); }
.aliados .section-title { margin-bottom: var(--sp-8); }
.logo-group + .logo-group { margin-top: var(--sp-6); }
.logo-group__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.logo-group__sub { margin-top: var(--sp-2); font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6) var(--sp-7);
  margin-top: var(--sp-5);
}

@media (max-width: 900px) {
  .logo-wall { gap: var(--sp-4) var(--sp-5); }
}
.logo-wall img {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.logo-group--dark {
  background: var(--brand-gradient);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
}
.logo-group--dark .logo-group__label { color: rgba(255, 255, 255, 0.75); }
.logo-group--dark .logo-wall img { height: 60px; }
.logo--invert { filter: brightness(0) invert(1); }
.logo-chip {
  background: var(--white);
  border-radius: 10px;
  padding: 12px 18px;
  box-sizing: content-box;
  height: 46px !important;
}

.logo-group--organiza .logo-wall img { height: 72px; }

@media (max-width: 640px) {
  .logo-wall img { height: 40px; max-width: 120px; }
}

/* ==========================================================================
   Inscripción — the priority section: brand gradient + floating form card
   ========================================================================== */
.inscripcion {
  background: var(--brand-gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.inscripcion__stack { display: flex; flex-direction: column; align-items: center; }
.inscripcion__intro--centered { text-align: center; max-width: 46ch; }
.inscripcion__intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: var(--sp-4); }
.inscripcion__intro > p { margin-top: var(--sp-4); color: rgba(255, 255, 255, 0.88); font-size: 1.02rem; }

.inscripcion .wrap--narrow { max-width: 920px; }
.inscripcion .form-card { width: 100%; margin-top: var(--sp-7); }

/* Countdown: used in the hero (on the photo) and reused wherever a dark
   background needs it; layout stays identical, only spacing changes. */
.countdown { display: flex; gap: var(--sp-3); }
.countdown__unit {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  padding: var(--sp-3) var(--sp-3);
  min-width: 68px;
  text-align: center;
}
.countdown__unit span { display: block; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; }
.countdown__unit small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.countdown__caption { margin-top: var(--sp-3); font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

.countdown--hero { margin-top: var(--sp-6); }
.hero .countdown__caption { margin-bottom: var(--sp-2); }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: var(--sp-7);
  box-shadow: var(--shadow-card);
  position: relative;
  min-height: 560px;
}
.form-card__eyebrow {
  /* .site-nav es sticky (80px) y tapa el borde superior del viewport: sin este
     scroll-margin, cualquier scroll-to-here (JS o link con #) deja el titulo
     escondido detras de la barra, y se ve como si el scroll "cayera mal". */
  scroll-margin-top: 100px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--sp-5);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-5); min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); }
.field-row .field { margin-bottom: 0; }
.field-row + .field, .field + .field-row { margin-top: 0; }
.field-row { margin-bottom: var(--sp-5); }

.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.field__optional { font-weight: 400; color: var(--ink-faint); }

.field input, .field select {
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23454f4c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.4rem; }
.field select:disabled { opacity: 0.55; cursor: not-allowed; }

.field__error { display: none; font-size: 0.8rem; color: #a4243b; }
.field.is-invalid input, .field.is-invalid select { border-color: #a4243b; background: #fbeff1; }
.field.is-invalid .field__error { display: block; }
.field__hint { font-size: 0.78rem; color: var(--ink-faint); }

.field__tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: var(--ink-faint);
  cursor: help;
  position: relative;
  vertical-align: -3px;
}
.field__tooltip svg { width: 16px; height: 16px; display: block; }
.field__tooltip:hover, .field__tooltip:focus { color: var(--purple); outline: none; }
.field__tooltip:hover::after, .field__tooltip:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  z-index: 5;
  white-space: normal;
  text-align: left;
}

/* ==========================================================================
   Stepper (paso 1 de 4 ... etc)
   ========================================================================== */
.stepper {
  display: flex;
  list-style: none;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-6);
  padding: 0;
}
.stepper__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-align: center;
  transition: color 0.2s var(--ease);
}
.stepper__item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-faint);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.stepper__item.is-active { color: var(--purple); font-weight: 800; }
.stepper__item.is-active span {
  border-color: var(--olive);
  color: var(--white);
  background: var(--olive);
  box-shadow: 0 0 0 4px var(--purple-soft);
}
.stepper__item.is-done span { border-color: var(--purple); background: var(--purple); color: var(--white); }

/* Check/X: solo en dias ya visitados y distintos del paso activo — indica si
   quedaron actividades marcadas o no (ver refreshStepperStatus en script.js). */
.stepper__item.has-selection span { border-color: var(--olive); background: var(--olive); color: var(--white); }
.stepper__item.no-selection span { border-color: var(--line); background: var(--paper); color: var(--ink-faint); font-weight: 700; }

.stepper__legend {
  text-align: center;
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin: -2px 0 var(--sp-5);
}
.stepper__legend b { color: var(--olive-deep); font-weight: 700; }
.stepper__legend i { color: var(--ink-soft); font-style: normal; font-weight: 700; }

@media (max-width: 480px) {
  .stepper__item { font-size: 0.64rem; }
  .stepper__item span { width: 30px; height: 30px; font-size: 0.82rem; }
}

.form-card__legal { font-size: 0.78rem; color: var(--ink-faint); margin-top: var(--sp-4); text-align: center; }

.form-card__error { font-size: 0.85rem; color: #c0392b; margin-top: var(--sp-3); text-align: center; font-weight: 600; }
.form-card__error[hidden] { display: none; }

.form-card__success {
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-8, 3.5rem);
  gap: var(--sp-4);
}
.form-card__success svg { color: var(--purple); width: 56px; height: 56px; }
.form-card__success h3 { font-size: 1.4rem; }
.form-card__success p { color: var(--ink-soft); max-width: 34ch; font-size: 1rem; line-height: 1.6; }
.form-card__success[hidden] { display: none; }

/* ==========================================================================
   Paso 2 — seleccion de actividades
   ========================================================================== */
.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover { background: var(--paper); }

.form-step__hint { font-size: 0.85rem; color: var(--ink-faint); margin: -0.5rem 0 var(--sp-5); }
.form-step__actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.form-step__actions .btn--outline { flex: 0 0 auto; }
.form-step__actions .btn--primary { flex: 1 1 auto; }

.activities__error, .activities__loading, .activities__empty { font-size: 0.9rem; color: var(--ink-faint); }

.activities__group { margin-top: var(--sp-5); }
.activities__group-title { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: var(--sp-2); }

/* Lista lineal, sin cajas: filas separadas por una linea, no cards */
.activities__list { display: flex; flex-direction: column; }

.activity-row { border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: none; }

.activity-row__control {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.1rem;
  cursor: pointer;
}
.activity-row--disabled { opacity: 0.5; cursor: not-allowed; }
.activity-row__control input[type="radio"],
.activity-row__control input[type="checkbox"] {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.activity-row__text { display: flex; flex-direction: column; gap: 2px; }
.activity-row__name { font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.activity-row__name--muted { font-weight: 400; color: var(--ink-faint); }
.activity-row__badge { font-style: normal; font-weight: 600; font-size: 0.72rem; color: var(--purple); }
.activity-row__meta { font-size: 0.78rem; color: var(--ink-faint); font-family: var(--font-mono); }
.activity-row__cupo--bajo { color: #a6740a; font-weight: 700; }
.activity-row__cupo--agotado { color: var(--ink-faint); font-weight: 600; }

.activity-card__extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-4) 1.9rem;
  padding: var(--sp-4);
  background: var(--paper-alt);
  border-radius: 10px;
}
.activity-card__extra .field { margin-bottom: 0; }
.activity-card__extra[hidden] { display: none; }
@media (max-width: 640px) {
  .activity-card__extra { grid-template-columns: 1fr; margin-left: 0; }
}

.btn--submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; }
.btn--submit:disabled { opacity: 0.85; cursor: not-allowed; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner[hidden] { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .field-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .form-card { padding: var(--sp-5); min-height: 480px; }
  .form-card__success { padding: var(--sp-6, 2rem); }
}
@media (max-width: 420px) {
  .countdown { gap: var(--sp-2); }
  .countdown__unit { min-width: 58px; padding: var(--sp-2); }
}

/* ==========================================================================
   FAQ — native accordion
   ========================================================================== */
.faq { background: var(--paper-alt); }
.accordion { margin-top: var(--sp-7); border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); padding-block: var(--sp-4); }
.accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { flex: 1; min-width: 0; }
.accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--rosa);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { margin-top: var(--sp-3); color: var(--ink-soft); max-width: 62ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.86); padding-block: var(--sp-8) var(--sp-5); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand p { margin-top: var(--sp-4); color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }
.brand-mark--footer { flex-direction: column; align-items: flex-start; gap: 0; margin-right: 0; }
.brand-mark--footer .brand-mark__line1 { color: var(--white); font-size: 1.1rem; }
.brand-mark--footer .brand-mark__line2 { color: var(--olive); }
.footer__icon {
  height: 84px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: var(--sp-5);
  margin-left: -4px;
}

@media (max-width: 760px) {
  .footer__icon { height: 68px; }
}

.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a { color: rgba(255, 255, 255, 0.75); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--white); }

.footer__organiza .logo-group__label { color: rgba(255, 255, 255, 0.5); }
.footer__organiza-logos { display: flex; align-items: center; gap: var(--sp-6); margin-top: var(--sp-4); flex-wrap: wrap; }
.footer__organiza-logos img { height: 52px; width: auto; object-fit: contain; }
.footer__social { display: flex; gap: var(--sp-5); margin-top: var(--sp-5); }
.footer__social a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.footer__social a:hover { color: var(--white); }

.footer__bottom { padding-top: var(--sp-5); }
.footer__bottom p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}
