/* Link Capital — versión scrollytelling (demo)
   Sistema visual del skill landing-page-design (B1–B11) con la paleta de la marca.
   La historia se cuenta con escenarios pegajosos (sticky) controlados por un observador de intersección. */

:root {
  /* superficies (B4, tema oscuro) */
  --bg: #000000;
  --surface-1: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #272727;
  --linea: #272727;

  /* texto */
  --texto: #ffffff;
  --texto-2: #b3b3b3;

  /* acentos de marca */
  --cian: #00ccff;
  --naranja: #ff8100;

  /* compatibilidad con nombres anteriores */
  --navy: #ffffff;
  --navy-2: #ffffff;
  --tinta: #ffffff;
  --gris: #b3b3b3;
  --fondo: #000000;
  --crema: #1f1f1f;
  --madera: #00ccff;
  --verde: #2f9e6b;
  --ambar: #d99a2b;
  --rojo: #c8463d;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px;
  --s-200: 16px; --s-300: 24px; --s-400: 32px; --s-500: 40px;
  --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --r-sm: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px; --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --d: 500ms;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cian); }

/* ---------- estilos de texto nombrados (B1) ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--texto); text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- layout ---------- */
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--s-900); }
section[id] { scroll-margin-top: 96px; }
.section--alt { background: var(--surface-1); }
.section--navy { background: var(--surface-1); }
.section--navy h2, .section--navy h3 { color: var(--texto); }
.section--navy p { color: var(--texto-2); }

.eyebrow {
  display: inline-block;
  margin-block-end: var(--s-200);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cian);
}
.eyebrow--claro { color: #d8b48c; }

.skip {
  position: fixed;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-100) var(--s-200);
  border-radius: var(--r-sm);
  background: var(--cian);
  color: #000000;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--d) var(--ease);
}
.skip:focus { transform: translateY(0); }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--cian);
  outline-offset: 2px;
}

/* ---------- navegación flotante (B7) ---------- */
.nav-wrap {
  position: fixed;
  inset: var(--s-200) 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  max-width: min(1160px, 100% - 32px);
  padding: var(--s-75) var(--s-200) var(--s-75) var(--s-300);
  border: 1px solid var(--linea);
  border-radius: var(--r-full);
  background: rgba(24, 24, 24, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__brand img { width: 132px; height: auto; }
.nav__links { display: flex; align-items: center; gap: var(--s-300); }
.nav__links a {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--tinta);
  text-decoration: none;
  transition: color var(--d) var(--ease);
}
.nav__links a:hover { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--d) var(--ease), opacity var(--d) var(--ease);
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn--claro { background: var(--surface-2); color: var(--navy); }
.btn--ghost { background: transparent; border-color: var(--surface-3); color: var(--texto); }
.btn--sm { padding: var(--s-50) var(--s-100); font-size: 14px; line-height: 20px; }

.link-arrow {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: transform var(--d) var(--ease);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { transform: translateX(4px); }

.nav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--surface-3);
  border-radius: var(--r-full);
  background: var(--surface-2);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--navy);
  transition: transform var(--d) var(--ease), opacity var(--d) var(--ease);
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: center;
  gap: var(--s-300);
  padding: var(--s-400);
  background: rgba(24, 24, 24, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d) var(--ease), visibility var(--d) var(--ease);
}
.menu[data-open="true"] { opacity: 1; visibility: visible; }
.menu a {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--d) var(--ease), transform var(--d) var(--ease);
}
.menu[data-open="true"] a { opacity: 1; transform: translateY(0); }

/* ---------- riel de capítulos ---------- */
.rail {
  position: fixed;
  right: var(--s-300);
  top: 50%;
  z-index: 30;
  display: grid;
  gap: var(--s-100);
  transform: translateY(-50%);
}
.rail a {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.24);
  transition: transform var(--d) var(--ease), opacity var(--d) var(--ease);
}
.rail a[data-activo="true"] { background: var(--cian); transform: scale(1.6); }

/* ---------- portada ---------- */
.hero { padding-block: 96px var(--s-700); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-600);
  align-items: center;
}
.hero__title {
  max-width: 680px;
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  background-image: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 680px;
  margin-block-start: var(--s-300);
  font-size: 18px;
  line-height: 28px;
  color: var(--gris);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s-300);
  flex-wrap: wrap;
  margin-block-start: var(--s-400);
}
.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  height: auto;
  max-height: 460px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-2xl);
}
.cue {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  margin-block-start: var(--s-600);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--gris);
}
.cue__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--cian);
  animation: latido 2000ms var(--ease) infinite;
}
@keyframes latido {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
}

/* contador de pasos del escenario */
.stage__count {
  position: absolute;
  top: var(--s-300);
  right: var(--s-300);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gris);
}

/* ---------- capítulos de la historia ---------- */
.story { position: relative; padding-block: var(--s-800); }
.story--alt { background: var(--surface-1); }
.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-600);
  align-items: start;
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}
.stage {
  position: sticky;
  top: 112px;
  min-width: 0;
  display: grid;
  place-items: center stretch;
  min-height: 0;
  padding: var(--s-300);
  border: 1px solid var(--linea);
  border-radius: var(--r-2xl);
  background: var(--surface-2);
  overflow: hidden;
}
.panel {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  pointer-events: none;
}
.panel[data-activo="true"] { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.panel__num {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--madera);
  margin-block-end: var(--s-200);
}
.panel h3 { margin-block-end: var(--s-100); }
.panel p { color: var(--gris); }
.panel ul { margin: var(--s-300) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-200); }
.panel li {
  display: grid;
  gap: var(--s-50);
  padding: var(--s-200);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 20px;
  color: var(--gris);
}
.panel li strong { color: var(--tinta); font-weight: 600; }
.panel__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-block-end: var(--s-300);
}

.steps { display: grid; gap: var(--s-300); min-width: 0; }
.step {
  min-height: 52vh;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  align-content: center;
  padding-block: var(--s-500);
  padding-inline: var(--s-400);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  opacity: 0.6;
}
.step[data-visto="true"] { opacity: 0.8; }
.step[data-activo="true"] { opacity: 1; border-color: var(--cian); background: var(--surface-2); }
.step h3 { margin-block-end: var(--s-100); }
.step p { color: var(--gris); }
.step__tag {
  display: inline-block;
  margin-block-end: var(--s-100);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--madera);
}

/* tablero del capítulo de inteligencia */
.board { display: grid; gap: var(--s-75); }
.board__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr 16px;
  gap: var(--s-100);
  align-items: center;
  padding: var(--s-100);
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  opacity: 0.62;
  transform: translateX(-8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.board__row[data-activo="true"] { opacity: 1; transform: translateX(0); border-color: rgba(0, 204, 255, 0.36); }
.board__row span:nth-child(2), .board__row span:nth-child(3) { text-align: right; }
.board__row--head { font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); opacity: 1; transform: none; }
.dot { width: 8px; height: 8px; border-radius: var(--r-full); justify-self: end; }
.dot--verde { background: var(--verde); }
.dot--ambar { background: var(--ambar); }
.dot--rojo { background: var(--rojo); }
.board__note {
  margin-block-start: var(--s-200);
  padding-inline-start: var(--s-200);
  border-inline-start: 3px solid var(--madera);
  font-size: 14px;
  line-height: 20px;
  color: var(--gris);
}

/* ---------- tagline reveal (B11) ---------- */
.tagline { padding-block: var(--s-800); background: var(--bg); }
.tagline__text {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  color: #ffffff;
}
.tagline__text .w { opacity: 0.3; transition: opacity 600ms var(--ease); }
.tagline__text .w[data-on="true"] { opacity: 1; }

/* ---------- método con línea de progreso ---------- */
.track { position: relative; margin-block-start: var(--s-500); padding-inline-start: var(--s-500); }
.track__line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: var(--r-full);
  background: var(--linea);
}
.track__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: var(--r-full);
  background: var(--cian);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 700ms var(--ease);
}
.track__list { display: grid; gap: var(--s-500); margin: 0; padding: 0; list-style: none; }
.track__list li { display: grid; gap: var(--s-100); }
.track__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--crema);
  color: var(--navy);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin-block-end: var(--s-100);
}
.track__list p { color: var(--gris); }

/* ---------- equipo ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-300); margin-block-start: var(--s-500); }
.person { padding: var(--s-400); border: 1px solid var(--linea); border-radius: var(--r-xl); background: var(--surface-2); }
.person__avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-block-end: var(--s-300);
  border-radius: var(--r-full);
  background: var(--crema);
  color: var(--navy);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.person p { color: var(--gris); }
.person__role { margin-block: var(--s-50) var(--s-200); color: var(--madera); font-size: 14px; line-height: 20px; font-weight: 600; }
.person__pending { margin-block-start: var(--s-200); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--madera); }


/* ---------- chips y paquetes dentro del escenario ---------- */
.panel-chips { margin: var(--s-300) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-75); }
.panel-chips li {
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--linea);
  border-radius: var(--r-full);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--gris);
}
.paquetes { display: grid; gap: var(--s-100); margin-block: var(--s-300); }
.paquete { padding: var(--s-200); border: 1px solid var(--linea); border-radius: var(--r-lg); }
.paquete p { font-size: 14px; line-height: 20px; color: var(--gris); }
.paquete__nombre { font-weight: 600; color: var(--texto) !important; }
.paquete__precio { display: block; margin-block-start: var(--s-50); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--madera); }

/* ---------- párrafo de entrada ---------- */
.lead { max-width: 680px; margin-block-start: var(--s-200); color: var(--gris); }


/* ---------- componentes propios de Frozentech ---------- */
.hero__prueba {
  display: flex;
  align-items: flex-start;
  gap: var(--s-100);
  margin-block-start: var(--s-300);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--texto-2);
}
.hero__prueba::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-block-start: var(--s-75);
  border-radius: var(--r-full);
  background: var(--cian);
}

.sector-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-100); margin: var(--s-200) 0 0; padding: 0; list-style: none; }
.sector-list li {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--texto);
}
.sector-list li::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--naranja); }

.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-75); margin-block-start: var(--s-200); }
.clients__grid div {
  display: grid;
  place-items: center;
  height: 64px;
  padding: var(--s-75);
  border-radius: var(--r-sm);
  background: #ffffff;
}
.clients__grid img { width: 100%; height: 32px; object-fit: contain; }

.place__address { font-style: normal; margin-block-start: var(--s-100); color: var(--texto-2); font-size: 14px; line-height: 20px; }
.place__tel { margin-block-start: var(--s-200); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--cian); text-decoration: none; }
.place__tel:hover { text-decoration: underline; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-300); margin-block-start: var(--s-500); }
.tile { padding: var(--s-400); border: 1px solid var(--linea); border-radius: var(--r-xl); background: var(--surface-2); }
.tile h3 { margin-block-end: var(--s-100); }
.tile p { font-size: 14px; line-height: 20px; }
.tile__quote {
  margin-block-start: var(--s-300);
  padding: var(--s-300);
  border-radius: var(--r-lg);
  background: var(--surface-3);
  font-size: 14px;
  line-height: 20px;
  color: var(--texto-2);
}

.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-200); margin-block-start: var(--s-500); }
.brands div { display: grid; place-items: center; height: 96px; padding: var(--s-200); border-radius: var(--r-lg); background: #ffffff; }
.brands img { max-height: 48px; width: auto; object-fit: contain; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-600); align-items: start; margin-block-start: var(--s-500); }
.about p { margin-block-end: var(--s-200); color: var(--texto-2); }
.about dl { display: grid; gap: var(--s-300); margin: 0; }
.about dt { margin-block-end: var(--s-50); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cian); }
.about dd { margin: 0; color: var(--texto-2); font-size: 14px; line-height: 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-200); margin-block-start: var(--s-500); }
.faq details {
  padding: var(--s-300) var(--s-400);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.faq summary {
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--madera); transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-block-start: var(--s-200); color: var(--gris); }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-600); align-items: start; }
.contact__intro { margin-block-start: var(--s-200); font-size: 18px; line-height: 28px; color: var(--gris); }
.form { display: grid; gap: var(--s-200); margin-block-start: var(--s-400); max-width: 520px; }
.field { display: grid; gap: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--tinta); }
.field input, .field textarea {
  font: inherit;
  padding: var(--s-100) var(--s-200);
  border: 1px solid #555555;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--texto);
  transition: border-color var(--d) var(--ease);
}
.field textarea { resize: vertical; }
.field__error { min-height: 16px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--rojo); }
.form__ok {
  padding: var(--s-200);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-sm);
  background: var(--surface-3);
  font-size: 14px;
  line-height: 20px;
  color: var(--texto);
}
.form__note { font-size: 12px; line-height: 16px; color: var(--gris); }
.info { display: grid; gap: var(--s-300); margin: 0; }
.info dl { display: grid; gap: var(--s-300); margin: 0; }
.info dt { margin-block-end: var(--s-50); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--navy); }
.info dd { margin: 0; color: var(--gris); font-size: 16px; line-height: 24px; }
.info a { color: var(--cian); }
.map { border: 1px solid var(--linea); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- pie ---------- */
.footer { background: var(--surface-1); padding-block: var(--s-600); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-300); }
.footer img { width: 126px; height: auto; }
.footer p, .footer a { color: var(--texto-2); font-size: 14px; line-height: 20px; }
.footer__legal { display: flex; gap: var(--s-300); flex-wrap: wrap; }
.footer a { text-decoration: none; transition: color var(--d) var(--ease); }
.footer a:hover { color: #ffffff; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed;
  right: var(--s-300);
  bottom: var(--s-300);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: #ffffff;
  color: #000000;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
  transition: transform var(--d) var(--ease);
}
.wa:hover { transform: scale(1.06); }
.wa:active { transform: scale(0.98); }
.wa svg { width: 28px; height: 28px; }

/* ---------- revelado de bloques sueltos ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal][data-visible="true"] { opacity: 1; transform: translateY(0); }

/* ---------- 404 y legales ---------- */
.page-simple { min-height: 100vh; display: grid; place-items: center; padding-block: var(--s-900); }
.page-simple .container { display: grid; gap: var(--s-300); justify-items: start; max-width: 680px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav { padding: var(--s-75) var(--s-100) var(--s-75) var(--s-200); gap: var(--s-200); }
  .rail { display: none; }
  .hero__title { font-size: 36px; line-height: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-400); }
  .story__inner { grid-template-columns: 1fr; gap: var(--s-400); }
  /* en pantallas chicas el escenario deja de ser pegajoso: la tarjeta cambia y el texto fluye debajo */
  .stage { position: static; top: auto; min-height: 0; padding: var(--s-300); }
  .stage__count { display: none; }
  .step { padding-inline-end: var(--s-500); min-width: 0; }
  .step > * { min-width: 0; overflow-wrap: break-word; }
  .step { min-height: 50vh; padding: var(--s-300); }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .tagline__text { font-size: 36px; line-height: 40px; }
  .people { grid-template-columns: 1fr; }
  .tiles, .brands, .about { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; gap: var(--s-400); }
  .section { padding-block: var(--s-700); }
  .story { padding-block: var(--s-700); }
}

@media (max-width: 560px) {
  .nav .btn { display: none; }
  .eyebrow { letter-spacing: 0.08em; }
  .hero__title { font-size: 30px; line-height: 36px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .tagline__text { font-size: 30px; line-height: 36px; }
  .nav__brand img { width: 112px; }
  .stage { min-height: 320px; }
  .board__row { grid-template-columns: 1.4fr 0.8fr 0.6fr 12px; font-size: 12px; line-height: 16px; }
}

/* ---------- movimiento reducido: la historia se vuelve lineal ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tagline__text .w { opacity: 1; }
  .stage { position: static; min-height: 0; display: grid; gap: var(--s-300); }
  .panel { position: static; opacity: 1; transform: none; pointer-events: auto; grid-area: auto; }
  .step { min-height: 0; opacity: 1; padding: var(--s-300); }
  .board__row { opacity: 1; transform: none; }
  .track__fill { transform: scaleY(1); }
  .cue__dot { display: none; }
}
