/* ==========================================================================
   MonteVIDEO Tech — Design System
   Fuente: Manrope (igual que el original)
   Dos temas de marca:
     .theme-mvt    → MonteVIDEO Tech  (header negro, acento teal #4CBCAC)
     .theme-summer → Summer Camp      (header blanco, acento morado #2C0450 + magenta #F21990)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Tipografía */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Tinta (extraídas del sitio original) */
  --ink: #151515;
  --ink-soft: #3f3f3f;
  --ink-mid: #33373d;
  --ink-muted: #96989b;
  --white: #ffffff;
  --black: #000000;

  /* Marca MonteVIDEO Tech */
  --teal: #4cbcac;
  --teal-dark: #3aa695;
  --teal-soft: #e8f7f4;

  /* Marca Summer Camp */
  --purple: #2c0450;
  --purple-soft: #f3edf9;
  --magenta: #f21990;
  --magenta-dark: #d1157d;
  --magenta-soft: #fde7f3;
  --blue: #49b4f9;
  --violet: #8601fe;
  --yellow: #f9c739;

  /* Superficies */
  --surface: #ffffff;
  --surface-alt: #f7f7f8;
  --line: rgba(21, 21, 21, 0.12);
  --line-soft: rgba(21, 21, 21, 0.07);

  /* Acento por tema (lo sobreescribe cada theme) */
  --accent: var(--teal);
  --accent-dark: var(--teal-dark);
  --accent-soft: var(--teal-soft);
  --on-accent: #ffffff;

  /* Layout */
  --container: 1140px;
  --container-wide: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Ritmo vertical */
  --section-y: clamp(3rem, 6vw, 5.5rem);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(21, 21, 21, 0.06);
  --shadow: 0 8px 30px rgba(21, 21, 21, 0.09);
  --shadow-lg: 0 20px 60px rgba(21, 21, 21, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.theme-mvt {
  --accent: var(--teal);
  --accent-dark: var(--teal-dark);
  --accent-soft: var(--teal-soft);
  --on-accent: #ffffff;
}

.theme-summer {
  --accent: var(--purple);
  --accent-dark: #1d0335;
  --accent-soft: var(--purple-soft);
  --on-accent: #ffffff;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* El post-proceso envuelve cada <img> en <picture> para servir WebP.
   `display: contents` hace que el <img> siga siendo el hijo directo a efectos de
   layout, así ninguna regla de grid/flex se rompe por el wrapper. */
picture { display: contents; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

button { font: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; }
/* Las listas que son UI (navegación, iconos, logos, grillas) no llevan viñeta.
   Las listas de contenido (dentro de .prose) sí la conservan. */
.social-row li,
.logo-row li,
.nav li,
.footer-list li,
.footer-editions li,
.people li,
.gallery li,
.grid > li,
.avatars li,
.faq li:not(.prose li) { list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Salto de accesibilidad */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 820px; margin-inline: auto; }
/* Columna de texto angosta pero alineada a la izquierda: sin esto el bloque se
   centra y el margen izquierdo de la página salta de sección en sección. */
.measure { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--alt { background: var(--surface-alt); }
.section--ink { background: var(--ink); color: var(--white); }
.section--accent-soft { background: var(--accent-soft); }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.grid--split-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--split,
  .grid--split-wide { grid-template-columns: minmax(0, 1fr); }
  .grid--split.is-reversed > *:first-child { order: 2; }
}

.center { text-align: center; }
.center-x { margin-inline: auto; }
.flex { display: flex; gap: 1rem; flex-wrap: wrap; }
.flex--center { justify-content: center; align-items: center; }
.flex--between { justify-content: space-between; align-items: center; }

/* ---------- 4. Tipografía ---------- */
/* Patrón de la marca: peso liviano + palabra en <strong> (igual que el original) */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: inherit;
  text-wrap: balance;
}
h1 strong, h2 strong, h3 strong, h4 strong,
.display strong, .h2 strong { font-weight: 800; }

h1, .h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; }
h4, .h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.3; font-weight: 700; }

.display {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 400;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-mid);
}
.body-soft { color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section--ink .eyebrow { color: var(--teal); }

.accent { color: var(--accent); }
.accent-magenta { color: var(--magenta); }
.accent-blue { color: var(--blue); }
.accent-yellow { color: var(--yellow); }
.accent-violet { color: var(--violet); }

/* Enlaces dentro de texto corrido */
.prose a,
.link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.prose a:hover,
.link:hover { color: var(--accent-dark); }
.section--ink .prose a,
.section--ink .link { color: var(--teal); }

/* Un .btn dentro de .prose seguía tomando el color de enlace por especificidad
   (.prose a gana sobre .btn), y el texto quedaba teal sobre fondo teal: invisible.
   Le devolvemos su propio color y le sacamos el subrayado. */
.prose a.btn,
.section--ink .prose a.btn {
  color: var(--btn-fg);
  text-decoration: none;
}
/* Las variantes que definen su propio color lo declaran directamente, no vía
   --btn-fg, así que la regla de arriba se los comía: un .btn--outline dentro de
   .prose quedaba con texto blanco sobre transparente. */
.prose a.btn--outline,
.section--ink .prose a.btn--outline { color: var(--accent); }
.prose a.btn--outline:hover,
.section--ink .prose a.btn--outline:hover { color: var(--on-accent); }
.prose a.btn--light,
.section--ink .prose a.btn--light { color: var(--ink); }
.section--ink .prose a.btn--outline { color: var(--teal); }

/* Subrayado decorativo tipo marcador */
.marker {
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding-inline: 0.1em;
}

/* Título de sección con línea (patrón "Our events" del original) */
/* El título va dentro de .section-title__t a propósito: .section-title es flex y,
   sin ese envoltorio, cada <strong> del titular se vuelve un ítem más y el gap de
   1.5rem se mete DENTRO del texto ("How to · get involved · ?"). */
.section-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-title__t { min-width: 0; }
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-title--center { justify-content: center; }
.section-title--center::after { display: none; }

/* ---------- 5. Botones ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--btn-bg) 35%, transparent);
}
.btn:active { transform: translateY(0); }

.btn--magenta { --btn-bg: var(--magenta); --btn-fg: #fff; }
.btn--teal    { --btn-bg: var(--teal);    --btn-fg: #fff; }
.btn--purple  { --btn-bg: var(--purple);  --btn-fg: #fff; }
.btn--ink     { --btn-bg: var(--ink);     --btn-fg: #fff; }
.btn--yellow  { --btn-bg: var(--yellow);  --btn-fg: var(--ink); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: currentColor;
}
.btn--outline:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--lg { padding: 1.05rem 2.25rem; font-size: 1.02rem; }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row--center { justify-content: center; }

/* Pill informativa no clickeable */
.pill {
  display: inline-flex;
  /* Dentro de una tarjeta flex la píldora se blockifica y se estira de punta a
     punta. Con esto conserva el ancho de su texto en cualquier contexto. */
  align-self: flex-start;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}
.pill--magenta { background: var(--magenta-soft); color: var(--magenta-dark); }
.pill--outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink-soft); }

/* ---------- 6. Tarjetas ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card--flat { box-shadow: none; }
.card--plain { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card--tint { background: var(--accent-soft); border-color: transparent; }
.card--ink { background: var(--ink); color: #fff; border-color: transparent; }

a.card:hover,
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.card__title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.card__text { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.card__media { margin: calc(-1 * clamp(1.5rem, 3vw, 2.1rem)); margin-bottom: 0.35rem; }
/* Ratio fijo para que dos tarjetas hermanas alineen sus imágenes aunque los archivos
   originales tengan proporciones distintas. */
.card__media img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card__media--tall img { aspect-ratio: 4 / 3; }
.card__media--free img { aspect-ratio: auto; }
.card__foot { margin-top: auto; padding-top: 0.75rem; }

/* Número/estadística */
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- 7. Media ---------- */
.media { border-radius: var(--radius-lg); overflow: hidden; }
.media img, .media video { width: 100%; }
.media--shadow { box-shadow: var(--shadow); }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-9 > img, .ratio-4-3 > img, .ratio-1-1 > img { width: 100%; height: 100%; object-fit: cover; }

/* Fachada de YouTube: no carga el iframe hasta el click (mejora LCP/TBT) */
.yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f0f0f center / cover no-repeat;
  cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.25s var(--ease), transform 0.4s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt__play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 68px; height: 48px;
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.82);
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease), scale 0.2s var(--ease);
}
.yt:hover .yt__play { background: #f00; scale: 1.08; }
.yt__play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Fila de avatares (asistentes) */
.avatars { display: flex; flex-wrap: wrap; align-items: center; }
.avatars img,
.avatars .avatars__more {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin-left: -14px;
  box-shadow: var(--shadow-sm);
}
.avatars > *:first-child,
.avatars > *:first-child img { margin-left: 0; }
.avatars__more {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Logos / partners */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 3.5rem);
}
.logo-row img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}
.logo-row--muted img {
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.logo-row--muted img:hover { filter: none; opacity: 1; }

/* Galería */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- 8. Personas (panel / speakers) ---------- */
.people { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.person { text-align: center; }
.person__photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 0.9rem; background: var(--surface-alt); }
.person__photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.person__name { font-size: 1.08rem; font-weight: 400; line-height: 1.25; }
.person__name strong { font-weight: 800; }
.person__role { font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.15rem; }
.person__social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.person__social:hover { color: var(--accent-dark); }
.person__social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- 9. Timeline / agenda ---------- */
.timeline { position: relative; display: grid; gap: 1.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline__item { position: relative; padding-left: 3rem; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.timeline__day { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.timeline__title { font-size: 1.1rem; font-weight: 700; margin-top: 0.15rem; }
.timeline__text { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.25rem; }

/* Pasos numerados */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { position: relative; padding-left: 4rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1.05rem;
}

/* ---------- 10. FAQ (details/summary nativo — accesible y sin JS) ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq__group-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 1.75rem 0 0.35rem;
}
.faq__group-title:first-child { margin-top: 0; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow-sm); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  margin-top: 0.45rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  rotate: 45deg;
  transition: rotate 0.25s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; }
.faq summary:hover { color: var(--accent); }

.faq__answer { padding: 0 1.35rem 1.3rem; color: var(--ink-soft); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- 11. Cinta superior de anuncio ---------- */
.ticker {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.ticker a {
  display: block;
  padding: 0.65rem var(--gutter);
  color: inherit;
}
.ticker a:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.ticker--magenta { background: var(--magenta); }

/* ---------- 12. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

/* Variante negra (MonteVIDEO Tech) */
.site-header--ink {
  background: var(--black);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  padding-block: 0.65rem;
}
.site-header__logo img { height: 34px; width: auto; }
.site-header--ink .site-header__logo img { height: 30px; }

/* Navegación */
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav > li { list-style: none; position: relative; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.site-header--ink .nav a { color: #fff; }
.site-header--ink .nav a:hover { color: var(--teal); background: rgba(255, 255, 255, 0.08); }

/* Submenú */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: none;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.nav__toggle::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate 0.25s var(--ease);
}
.nav__toggle[aria-expanded="true"]::after { rotate: -135deg; translate: 0 1px; }
.nav__toggle:hover { color: var(--accent); background: var(--accent-soft); }

.nav__submenu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 288px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity 0.2s var(--ease), translate 0.2s var(--ease), visibility 0.2s;
}
.nav__submenu li { list-style: none; }
.nav__submenu a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.93rem;
  color: var(--ink);
}
.nav__item.is-open .nav__submenu,
.nav__item:hover .nav__submenu { opacity: 1; visibility: visible; translate: 0 0; }

/* Iconos sociales circulares (patrón del header negro original) */
.social-row { display: flex; align-items: center; gap: 0.6rem; }
.social-row a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.social-row a:hover { transform: translateY(-2px); background: var(--teal-dark); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

/* El CTA vive duplicado en el markup: uno para el header de desktop y otro dentro
   del panel de nav para mobile. Cada breakpoint muestra sólo el suyo. */
.site-header__nav .site-header__cta { display: none; }

/* Botón hamburguesa */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  border-radius: 10px;
  position: relative;
  color: inherit;
}
.nav-burger span,
.nav-burger::before,
.nav-burger::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: 0.25s var(--ease);
}
.nav-burger::before { top: 15px; }
.nav-burger span { top: 21px; }
.nav-burger::after { top: 27px; }
.nav-burger[aria-expanded="true"]::before { top: 21px; rotate: 45deg; }
.nav-burger[aria-expanded="true"] span { opacity: 0; }
.nav-burger[aria-expanded="true"]::after { top: 21px; rotate: -45deg; }

@media (max-width: 940px) {
  .nav-burger { display: block; }
  .site-header__nav {
    position: fixed;
    inset: 68px 0 auto 0;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem var(--gutter) 1.75rem;
    display: none;
  }
  .site-header__nav.is-open { display: block; }
  .site-header--ink .site-header__nav { background: #111; }
  .nav { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav a, .nav__toggle { width: 100%; justify-content: space-between; padding: 0.85rem 1rem; font-size: 1.02rem; }
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    translate: 0;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.5rem 0.75rem;
    min-width: 0;
    display: none;
  }
  .nav__item.is-open .nav__submenu { display: block; }
  .nav__item:hover .nav__submenu { display: none; }
  .nav__item.is-open .nav__submenu { display: block; }
  .site-header__cta { display: none; }
  .site-header__nav .site-header__cta { display: flex; margin-top: 1rem; }
}

/* ---------- 13. Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero--center { text-align: center; }
.hero__kicker { margin-bottom: 1rem; }
.hero p.lead { max-width: 62ch; }
.hero--center p.lead { margin-inline: auto; }
.hero__actions { margin-top: 2rem; }
.hero--center .hero__actions { justify-content: center; }

.hero--image {
  position: relative;
  color: #fff;
  background: var(--ink) center / cover no-repeat;
  border-radius: 0;
  isolation: isolate;
}
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.68));
  z-index: -1;
}
.hero--image .eyebrow { color: var(--teal); }

/* Máquina de escribir del hero de Summer Camp (replica del original) */
.typewriter { color: var(--magenta); font-weight: 800; }
.typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: currentColor;
  margin-left: 2px;
  translate: 0 0.1em;
  animation: caret 1s steps(2, start) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.94rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s var(--ease); }
.site-footer a:hover { color: #fff; }

.site-footer__top {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

.site-footer__brand img { height: 32px; width: auto; margin-bottom: 1.1rem; }
.site-footer__tagline { max-width: 34ch; color: rgba(255, 255, 255, 0.6); }

.footer-col__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-list { display: grid; gap: 0.6rem; }
.footer-list li { list-style: none; }

.footer-editions { display: grid; gap: 0.55rem; }
.footer-editions li { list-style: none; }
.footer-editions a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.footer-editions .year {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--teal);
  min-width: 3.1em;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__hosted { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__hosted img { height: 26px; width: auto; }

.site-footer .social-row a { background: rgba(255, 255, 255, 0.12); }
.site-footer .social-row a:hover { background: var(--teal); }

/* Volver arriba */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: 0.25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.to-top::after {
  content: "";
  width: 10px; height: 10px;
  border-left: 2.5px solid currentColor;
  border-top: 2.5px solid currentColor;
  rotate: 45deg;
  translate: 0 2px;
}

/* ---------- 15. Aviso de edición pasada / archivo ---------- */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--ink);
  font-size: 0.96rem;
}
.notice strong { font-weight: 700; }
.notice--archive { background: #fff8e6; border-color: #f0d48a; }

/* Cinta de edición pasada */
.archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(21, 21, 21, 0.07);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 16. Animación de entrada ---------- */
.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  will-change: opacity, translate;
}
.reveal.is-in { opacity: 1; translate: 0 0; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Sin JavaScript nadie agrega .is-in y el contenido se quedaría invisible.
   Con esto aparece igual. */
@media (scripting: none) {
  .reveal { opacity: 1; translate: 0 0; }
}

@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;
  }
  .reveal { opacity: 1; translate: 0 0; }
  .typewriter::after { animation: none; }
}

/* ---------- 17. Impresión ---------- */
@media print {
  .site-header, .site-footer, .ticker, .to-top, .yt__play { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* Banner a ancho completo (Summer Camp 2024): sale del contenedor, sin bordes
   redondeados ni sombra, como en el sitio original. */
.banner-full { margin-top: clamp(2rem, 4vw, 3rem); }
.banner-full img { width: 100%; height: auto; display: block; }

/* Marca "soon" en la edición que todavía no ocurrió */
.footer-editions em {
  font-style: normal;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--magenta);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
