/* ═══════════════════════════════════════════════════════════════════
   HALYON — mejoras.css
   Secciones y detalles nuevos sobre la base existente:
   WhatsApp · franjas · rubros · trabajos chicos · por qué · soluciones ·
   preguntas · hablemos · botón flotante · títulos que se arman.
   Usa los mismos tokens de base.css (crema, noche, degradé, Satoshi).
   ═══════════════════════════════════════════════════════════════════ */

/* Lenis maneja el scroll suave; el CSS nativo no tiene que competir */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }

/* ─── Botones con WhatsApp ───────────────────────────────────────── */
.btn-wa img, .nav-cta-wa img { width: 18px; height: 18px; flex: none; }
.nav-cta-wa { display: inline-flex; align-items: center; gap: 8px; }
.nav-cta-wa img { width: 16px; height: 16px; }

/* ─── Hero: la frase del eclipse y la prueba junto al botón ─────── */
.eclipse-frase {
  position: absolute; left: 50%; bottom: clamp(70px, 15vh, 150px); z-index: 4;
  translate: -50% 0;
  width: min(92vw, 900px);
  text-align: center;
  color: #fff;
  font-size: clamp(22px, 3.1vw, 42px);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.03em;
  opacity: var(--frase, 1);
  transform: translateY(calc((1 - var(--frase, 1)) * 14px));
  pointer-events: none;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.hero-prueba {
  margin-top: clamp(22px, 3vh, 30px);
  font-size: 14px; color: var(--ink-faint);
  max-width: 60ch; line-height: 1.5;
}
.hero-prueba b { color: var(--ink-dim); font-weight: 500; }

/* ─── Franja de marcas: logos oficiales siempre a color ─────────── */
.marquee-item { font-size: 17px; color: var(--ink-dim); }
.marquee-item img { width: 32px; height: 32px; filter: none; opacity: 1; }
.marquee-track { gap: 56px; padding-right: 56px; }

/* ─── Servicio 04: captura del sistema ───────────────────────────── */
.cap-demo .cap-shot { width: 100%; max-width: 520px; }
.cap-shot {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--night);
  border: 1px solid rgba(21,18,31,0.14);
  box-shadow: 0 30px 70px -34px rgba(21,18,31,0.5);
  transition: transform 0.7s var(--ease), box-shadow 0.6s;
}
.cap-shot .glassbar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05); }
.cap-shot .glassbar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.cap-shot > img { position: absolute; inset: 38px 0 0; width: 100%; height: calc(100% - 38px);
  object-fit: cover; object-position: top center; }
.cap-shot-pip {
  position: absolute; right: 16px; bottom: 16px; width: 46%; z-index: 2;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 22px 46px -14px rgba(0,0,0,0.78);
}
.cap-shot-pip img { width: 100%; display: block; }
.cap-row:hover .cap-shot { box-shadow: 0 40px 80px -40px rgba(21,18,31,0.55); }

/* ─── Franjas cruzadas (a lo Robor) ──────────────────────────────── */
.franjas {
  position: relative; overflow: hidden;
  padding: clamp(60px, 9vh, 110px) 0;
  background: var(--bg);
}
.franja {
  display: flex; overflow: hidden; white-space: nowrap;
  padding: clamp(16px, 2.2vh, 24px) 0;
  width: 110%; margin-left: -5%;
}
.franja-a { background: var(--acento); color: #fff; transform: rotate(-2.6deg); position: relative; z-index: 2; }
.franja-b { background: var(--night); color: #fff; transform: rotate(2deg); margin-top: -18px; }
.franja-track { display: flex; align-items: center; flex: none; will-change: transform; }
.franja-item {
  display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 44px);
  padding-right: clamp(22px, 3vw, 44px);
  font-size: clamp(26px, 4vw, 56px); font-weight: 700; letter-spacing: -0.035em;
  text-transform: uppercase; line-height: 1;
}
.franja-sep { font-weight: 300; opacity: 0.5; }
.franja-b .franja-item { font-weight: 500; }

/* ─── Rubros ─────────────────────────────────────────────────────── */
#rubros { padding: var(--section-y) 0; }
.rubros-head { margin-bottom: clamp(40px, 6vh, 72px); }
.rubros { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.rubros-lista { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rubro-tab {
  position: relative; text-align: left;
  padding: clamp(18px, 2.4vh, 26px) 44px clamp(18px, 2.4vh, 26px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(21px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--ink-faint);
  transition: color 0.35s var(--ease), padding-left 0.45s var(--ease);
}
.rubro-tab::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px;
  translate: 0 -50%;
  -webkit-mask: url("icons/lucide-arrow-up-right.svg") center / contain no-repeat;
          mask: url("icons/lucide-arrow-up-right.svg") center / contain no-repeat;
  background: var(--gradient);
  opacity: 0; transform: translate(-8px, 8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.rubro-tab:hover { color: var(--ink-dim); }
.rubro-tab[aria-selected="true"] { color: var(--ink); padding-left: 18px; }
.rubro-tab[aria-selected="true"]::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
  background: var(--gradient);
}
.rubro-tab[aria-selected="true"]::after { opacity: 1; transform: none; }

.rubros-paneles { position: relative; }
.rubro-panel img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top center;
  border-radius: 18px; display: block;
  border: 1px solid rgba(21,18,31,0.12);
  box-shadow: 0 30px 70px -34px rgba(21,18,31,0.45);
}
.rubro-panel img.es-producto, .mini-img.es-producto img { object-fit: contain; object-position: center; background: #fff; }
.rubro-panel p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-dim); margin-top: 26px; max-width: 46ch; }
.rubro-ej { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-faint); }
.rubro-ej b { color: var(--ink); font-weight: 500; }
.rubro-panel.entrando img { animation: rubroImg 0.8s var(--ease-out) both; }
.rubro-panel.entrando p, .rubro-panel.entrando .rubro-ej { animation: rubroTxt 0.7s var(--ease-out) 0.08s both; }
@keyframes rubroImg { from { clip-path: inset(0 0 100% 0 round 18px); transform: scale(1.04); } to { clip-path: inset(0 0 0 0 round 18px); transform: none; } }
@keyframes rubroTxt { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ─── Trabajos chicos ────────────────────────────────────────────── */
.work-mini {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px);
  padding: clamp(40px, 6vh, 72px) 0; border-top: 1px solid var(--line-soft);
}
.mini-card {
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 22px;
  padding: clamp(18px, 2vw, 24px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(21,18,31,0.35); }
.mini-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 20px; background: var(--bg-3); }
.mini-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.8s var(--ease); }
.mini-card:hover .mini-img img { transform: scale(1.04); }
.mini-card h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.03em; margin-top: 12px; }
.mini-card p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; margin-top: 10px; max-width: 44ch; }

/* ─── Por qué Halyon ─────────────────────────────────────────────── */
#porque { padding: var(--section-y) 0 0; }
.porque-head { margin-bottom: clamp(40px, 6vh, 72px); }
.porque-lista { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.porque-lista li { border-top: 1px solid var(--line); padding-top: 28px; }
.porque-ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -18px rgba(125,84,253,0.6);
  margin-bottom: 22px;
}
.porque-ic img { width: 22px; height: 22px; }
.porque-lista h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.porque-lista p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; margin-top: 10px; }

/* ─── Soluciones (sin precios) ───────────────────────────────────── */
#soluciones { padding: var(--section-y) 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.sol-head { margin-bottom: clamp(40px, 6vh, 72px); }
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.sol-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 26px;
  padding: clamp(26px, 3vw, 38px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.sol-card:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -40px rgba(21,18,31,0.45); }
.sol-card h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.035em; }
.sol-para { color: var(--ink-dim); margin-top: 8px; font-size: 16px; }
.sol-card ul { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; flex: 1; }
.sol-card li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.45; }
.sol-card li::before {
  content: ""; width: 20px; height: 20px; margin-top: 1px;
  -webkit-mask: url("icons/lucide-check.svg") center / contain no-repeat;
          mask: url("icons/lucide-check.svg") center / contain no-repeat;
  background: var(--gradient);
}
.sol-btn { justify-content: center; width: 100%; }
.sol-destacada {
  /* fondo noche + borde en degradé (dos capas de fondo, sin pseudo-elementos) */
  border: 1.5px solid transparent;
  background: linear-gradient(var(--night), var(--night)) padding-box, var(--gradient) border-box;
  color: var(--night-ink);
  --ink: var(--night-ink); --ink-dim: var(--night-dim); --line-bright: var(--night-line-bright);
  box-shadow: 0 40px 80px -40px rgba(125,84,253,0.75);
}
.sol-destacada .btn-primary { background: #fff; color: var(--night); }
.sol-destacada .btn-primary:hover { color: #fff; }
.sol-marca {
  align-self: flex-start; margin-bottom: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  background: var(--gradient); color: #fff;
}

/* ─── Preguntas ──────────────────────────────────────────────────── */
#preguntas { padding: var(--section-y) 0; }
.preguntas-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.preguntas-grid > div:first-child { position: sticky; top: 120px; }
.preguntas { border-top: 1px solid var(--line); }
.preguntas details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.preguntas summary {
  list-style: none; position: relative;
  padding: 24px 52px 24px 0;
  font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -0.02em;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; translate: 0 -50%;
  -webkit-mask: url("icons/lucide-plus.svg") center / contain no-repeat;
          mask: url("icons/lucide-plus.svg") center / contain no-repeat;
  background: var(--gradient);
  transition: rotate 0.4s var(--ease);
}
.preguntas details[open] summary::after { rotate: 45deg; }
.preguntas details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.preguntas details[open]::details-content { block-size: auto; }
.preguntas details p { color: var(--ink-dim); font-size: 16px; line-height: 1.65; padding-bottom: 24px; max-width: 58ch; }

/* ─── Hablemos (a lo "LET'S TALK") ───────────────────────────────── */
#contact { text-align: center; }
.hablemos-titulo {
  font-size: clamp(76px, 17vw, 250px); font-weight: 500;
  letter-spacing: -0.065em; line-height: 0.86;
  color: var(--ink);
}
.hablemos-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px);
  align-items: start; text-align: left;
  margin-top: clamp(48px, 7vh, 88px);
}
.hablemos-numero {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: clamp(28px, 3.6vw, 50px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1;
  color: var(--ink);
  transition: color 0.3s;
}
.hablemos-numero img { width: clamp(30px, 3vw, 42px); height: auto; }
.hablemos-numero:hover { color: #128C7E; }
.hablemos-datos p { color: var(--ink-dim); font-size: 17px; line-height: 1.6; margin-top: 18px; max-width: 40ch; }
.hablemos-mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-size: 18px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-bright); padding-bottom: 4px;
}
.hablemos-mail img { width: 22px; height: auto; }
#contact .contact-form { max-width: none; margin: 0; }
select.cf-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("icons/lucide-chevron-down.svg");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
  padding-right: 44px;
}
.cf-error { color: #C2410C; font-size: 14px; margin: 4px 0 8px; }
.cf-submit { justify-content: center; }

/* ─── WhatsApp flotante con texto que gira ───────────────────────── */
.wa-flotante {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 60;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card);
  box-shadow: 0 18px 44px -18px rgba(21,18,31,0.45), inset 0 0 0 1px var(--line-soft);
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.wa-flotante.visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-flotante > img { width: 40px; height: 40px; transition: transform 0.4s var(--ease); }
.wa-flotante-texto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: giro 16s linear infinite;
}
.wa-flotante-texto text {
  font-family: var(--mono); font-size: 9.6px; letter-spacing: 0.16em; text-transform: uppercase;
  fill: var(--ink-dim);
}
.wa-flotante:hover .wa-flotante-texto { animation-duration: 5s; }
.wa-flotante:hover > img { transform: scale(1.12); }
@keyframes giro { to { transform: rotate(360deg); } }

/* ─── Títulos que se arman por palabra ───────────────────────────── */
.js-split .split .w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.js-split .split .w-in {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.js-split .split.armado .w-in { transform: none; }
/* palabras en degradé: la caja se estira hacia abajo para que las colas
   (g, p, q) no se corten; JS alinea el degradé para que corra continuo */
.split .w-in.grad {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.16em; margin-bottom: -0.16em;
  background-size: var(--gw, 100%) 100%; background-position: var(--gx, 0) 0; background-repeat: no-repeat;
}
#contact .final-sub { margin-top: clamp(30px, 4.5vh, 48px); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .porque-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 900px) {
  .rubros, .preguntas-grid, .hablemos-grid { grid-template-columns: 1fr; }
  .preguntas-grid > div:first-child { position: static; }
  .rubros-lista { flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .rubros-lista::-webkit-scrollbar { display: none; }
  .rubro-tab { flex: none; font-size: 15px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
  .rubro-tab::before, .rubro-tab::after { display: none; }
  .rubro-tab[aria-selected="true"] { padding-left: 16px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .work-mini { grid-template-columns: 1fr; }
  .wa-flotante { width: 84px; height: 84px; }
  .wa-flotante > img { width: 34px; height: 34px; }
  .eclipse-frase { bottom: 13vh; }
}
@media (max-width: 560px) {
  .porque-lista { grid-template-columns: 1fr; }
  .hablemos-numero { font-size: 26px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-flotante-texto { animation: none; }
  .js-split .split .w-in { transform: none; transition: none; }
  .rubro-panel.entrando img, .rubro-panel.entrando p, .rubro-panel.entrando .rubro-ej { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Ronda 2 (feedback de Maxi): sin chips redonditos ni numeración
   ═══════════════════════════════════════════════════════════════════ */

/* Beneficios de cada servicio: lista con íconos en degradé, sin bordes */
.cap-feats {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px;
}
.cap-feats li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; line-height: 1.35; color: var(--ink); }
.feat-ic {
  flex: none; width: 22px; height: 22px;
  -webkit-mask: var(--ic) center / contain no-repeat;
          mask: var(--ic) center / contain no-repeat;
  background: var(--gradient);
}

/* Etiquetas chicas sin el punto brillante */
.eyebrow::before { display: none; }

/* "La más pedida" como texto, no como píldora */
.sol-marca {
  padding: 0; border-radius: 0;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 11.5px; letter-spacing: 0.18em;
}

/* Hablemos: solo el botón de WhatsApp, bien visible */
.hablemos-wa { font-size: 18px; padding: 20px 34px; gap: 12px; }
.hablemos-wa img { width: 22px; height: 22px; }

/* Celular: rubros como pestañas subrayadas, no como píldoras */
@media (max-width: 900px) {
  .rubros-lista { gap: 22px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
  .rubro-tab { border: 0; border-radius: 0; padding: 10px 0 12px; background: none; color: var(--ink-faint); }
  .rubro-tab[aria-selected="true"] { padding-left: 0; background: none; color: var(--ink); box-shadow: inset 0 -2px 0 0 #7D54FD; }
}
@media (max-width: 560px) {
  .cap-feats { grid-template-columns: 1fr; }
}

/* ─── Ronda 3 ────────────────────────────────────────────────────── */
/* Menú: solo el nombre (el logo con planeta queda para el pie) */
/* logo HALYON TEAM (dos renglones): en la píldora del menú y, más chico y
   centrado, sobre el planeta del intro (en compu y en celular) */
.brand-name .wm { height: 34px; }
@media (max-width: 900px) { .brand-name .wm { height: 30px; } }
#nav:not(.pinned) { justify-content: center; }
#nav:not(.pinned) .brand-name .wm { height: 24px; }
@media (max-width: 600px) { #nav:not(.pinned) .brand-name .wm { height: 22px; } }
/* durante el intro los links y el botón no se ven: que tampoco los alcance el Tab */
#nav:not(.pinned) .nav-links { display: none; }
/* en el intro, arriba a la derecha va Pipo (pipo.css), no el botón de WhatsApp */
#nav:not(.pinned) .nav-right { display: none; }

/* Intro renderizado: el scroll recorre 150 cuadros (ver assets/intro.js) */
#hero { height: 380vh; }
@media (max-width: 900px) { #hero { height: 330vh; } }
/* las estrellas vivas no pasan por delante del planeta */
#hero-stars {
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent calc(var(--pr, 0px) + 4px), #000 calc(var(--pr, 0px) + 16px));
          mask: radial-gradient(circle at 50% 50%, transparent calc(var(--pr, 0px) + 4px), #000 calc(var(--pr, 0px) + 16px));
}
/* la frase va debajo del planeta, que ahora es más grande */
#hero .eclipse-frase { bottom: max(100px, calc(19vh - 56px)); }
@media (max-width: 900px) { #hero .eclipse-frase { bottom: 13vh; } }
@media (min-width: 901px) {
  #hero .eclipse-frase { font-size: clamp(20px, 1.75vw, 27px); white-space: nowrap; }
  #hero .eclipse-frase br { display: none; }
}

/* ─── Ronda 4 ────────────────────────────────────────────────────── */
/* Tanda 2: intro más corto (antes 320vh y 270vh): el título y el botón llegan
   después de algo más de una pantalla de recorrido */
#hero { height: 230vh; }
@media (max-width: 900px) { #hero { height: 200vh; } }

/* Frase del intro: nítida, dentro del planeta en compu; se desarma con el scroll */
#hero .eclipse-frase {
  opacity: 1; transform: none; white-space: normal;
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  text-shadow: 0 1px 14px rgba(8,6,20,0.45);
}
#hero .eclipse-frase br { display: none; }
#hero .eclipse-frase .br-m { display: inline; }
.fr-palabra { display: inline-block; white-space: nowrap; }
.fr-letra {
  display: inline-block;
  transition: opacity 0.55s var(--ease), transform 0.95s var(--ease), filter 0.95s var(--ease);
}
.fr-letra.ida {
  opacity: 0; filter: blur(4px);
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.35);
}
@media (min-width: 901px) and (min-aspect-ratio: 4/5) {
  #hero .eclipse-frase {
    top: 50%; bottom: auto; translate: -50% -50%; width: auto;
    font-size: clamp(28px, 4.8vh, 64px);
  }
  #hero .eclipse-frase .br-m { display: none; }
  #hero .eclipse-frase .br-d { display: inline; }
}
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  #hero .eclipse-frase { font-size: clamp(24px, 6.8vw, 34px); bottom: 21vh; width: min(92vw, 520px); }
}

/* Después del intro */
.hero-title { max-width: none; }
.hero-sub { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.6; max-width: 46ch; }
.sub-lead { color: var(--ink); font-weight: 500; }
.sub-marca { display: inline-flex; align-items: baseline; gap: 0.28em; white-space: nowrap; }
.sub-marca img { width: 0.95em; height: 0.95em; align-self: center; translate: 0 -0.04em; }


/* celular: el logo siempre centrado, también en la barra */
@media (max-width: 600px) {
  #nav.pinned { justify-content: flex-end; }
  #nav.pinned .brand { position: absolute; left: 50%; top: 15px; translate: -50% 0; }
}

/* Trabajos: hojas del dossier encima de la landing */
.work-frame.is-dossier .dossier-hojas {
  position: absolute; right: 6%; bottom: -9%; width: 29%; aspect-ratio: 720 / 1018; z-index: 3; pointer-events: none;
}
.dossier-hojas img {
  position: absolute; inset: 0; width: 100%; height: auto; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 26px 50px -18px rgba(0,0,0,0.75);
  transition: transform 0.8s var(--ease);
}
.dossier-hojas img:first-child { transform: translate(-62%, -8%) rotate(-7deg); }
.dossier-hojas img:last-child { transform: rotate(4deg); }
.work-item:hover .dossier-hojas img:first-child { transform: translate(-70%, -13%) rotate(-9deg); }
.work-item:hover .dossier-hojas img:last-child { transform: translate(2%, -5%) rotate(5deg); }

/* La Épica: su WhatsApp respondiendo solo */
.ep-wa {
  display: flex; flex-direction: column; background: #efeae2;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; color: #111b21;
  border: 1px solid var(--line-soft);
}
.ep-cab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f6f6f6; border-bottom: 1px solid rgba(0,0,0,0.06); }
.mini-img.ep-wa .ep-cab img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.mini-img.ep-wa .ep-cab img.ep-marca { width: 18px; height: 18px; border-radius: 0; margin-left: auto; }
.mini-card:hover .mini-img.ep-wa img { transform: none; }
.ep-cab b { display: block; font-size: 14px; font-weight: 600; }
.ep-cab span { display: block; font-size: 11.5px; color: #667781; }
.ep-chat {
  flex: 1; min-height: 0; overflow: hidden; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background-image: radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1.2px); background-size: 14px 14px;
}
.ep-msj { max-width: 82%; margin: 0; padding: 6px 9px; border-radius: 9px; font-size: 13px; line-height: 1.32; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); }
.ep-msj.cli { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.ep-msj.neg { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.ep-wa.js .ep-msj { display: none; }
.ep-wa.js .ep-msj.ve { display: block; animation: waEntra 0.32s var(--ease-out) both; }

/* Cómo trabajamos: cuatro pasos unidos por tramos que se llenan con el scroll */
.pasos {
  --gp: clamp(20px, 3vw, 44px);
  list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gp);
}
.paso { position: relative; padding-top: 38px; opacity: 0.42; transition: opacity 0.5s var(--ease); }
.paso::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); box-sizing: border-box;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.paso:not(:last-child)::after {           /* tramo hasta el próximo paso */
  content: ""; position: absolute; z-index: 0; left: 24px; top: 7px; height: 2px; border-radius: 2px;
  width: calc(100% + var(--gp) - 32px);
  background: linear-gradient(90deg, var(--g-magenta), var(--g-violet)) 0 0 / var(--lleno, 0%) 100% no-repeat, var(--line-soft);
  transition: background-size 0.6s var(--ease);
}
.paso.lleno::after { --lleno: 100%; background-size: 100% 100%, auto; }
.paso.activo { opacity: 1; }
.paso.activo::before { border-color: transparent; background: var(--gradient); box-shadow: 0 0 0 6px rgba(125,84,253,0.12); }
.paso h3 { font-size: clamp(20px, 1.9vw, 27px); font-weight: 500; letter-spacing: -0.025em; }
.paso p { margin-top: 10px; color: var(--ink-dim); font-size: 15.5px; line-height: 1.55; max-width: 30ch; }
@media (max-width: 860px) {
  .pasos { grid-template-columns: 1fr; --gp: 28px; }
  .paso { padding: 0 0 0 40px; }
  .paso::before { top: 3px; }
  .paso:not(:last-child)::after {
    left: 7px; top: 27px; width: 2px; height: calc(100% + var(--gp) - 32px);
    background: linear-gradient(180deg, var(--g-magenta), var(--g-violet)) 0 0 / 100% 0% no-repeat, var(--line-soft);
  }
  .paso.lleno::after { background-size: 100% 100%, auto; }
}

/* ─── Ronda 5 ────────────────────────────────────────────────────── */
/* Intro: dos videos (gas en loop + recorrido) sobre la imagen fija del inicio */
.intro-escena {
  position: absolute; inset: 0; z-index: 1; transform: scale(1.03); will-change: transform;
  background: #07060d url("intro/escritorio/poster.jpg") center / cover no-repeat;
  background-image: image-set(url("intro/escritorio/poster.avif") type("image/avif"), url("intro/escritorio/poster.jpg") type("image/jpeg"));
}
@media (max-aspect-ratio: 4/5) {
  .intro-escena {
    background-image: url("intro/celu/poster.jpg");
    background-image: image-set(url("intro/celu/poster.avif") type("image/avif"), url("intro/celu/poster.jpg") type("image/jpeg"));
  }
}
.intro-escena video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.4s linear;
}
.intro-escena video[data-recorrido].listo { opacity: 1; }
.intro-escena video[data-bucle] { transition: none; }
.intro-escena video[data-bucle]:not(.listo) { opacity: 0 !important; }

/* Marcas: al pie de la pantalla del título, se van junto con ella */
#hero .stage-intro #strip {
  position: absolute; left: 0; right: 0; bottom: clamp(16px, 4vh, 40px);
  margin: 0; padding: 0; border: 0; background: none; z-index: 1;
}
#hero .stage-intro .strip-head { margin-bottom: 16px; }
@media (max-width: 600px) {
  #hero .stage-intro .strip-head { font-size: 13px; padding: 0 20px; margin-bottom: 12px; }
  #hero .stage-intro .marquee-item { font-size: 15px; }
  #hero .stage-intro .marquee-item img { width: 22px; height: 22px; }
}
/* el título y la franja se pintan de antemano (casi invisibles) para que su aparición no trabe */
#hero .stage-intro { opacity: 0.001; }

/* ─── Ronda 6 (iPhone) ───────────────────────────────────────────── */
html.en-intro, html.en-intro body, html.en-intro #hero { background: #07060d; }
#nav:not(.pinned) { padding-top: max(18px, env(safe-area-inset-top)); }
#nav.pinned { top: calc(16px + env(safe-area-inset-top, 0px)); }
.wa-flotante { bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom, 0px)); }
.scroll-cue { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.hero-stage { height: 100vh; height: 100lvh; }

/* ─── Ronda 7 ────────────────────────────────────────────────────── */
/* títulos con el mismo tratamiento que el resto de la página (degradé de marca) */
.cap-title .grad, .work-title .grad {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* la pantalla del título mide lo que se ve de verdad (en iPhone la barra de Safari tapa el fondo) */
#hero .stage-intro { bottom: auto; height: 100vh; height: 100svh; }
@media (max-width: 600px) {
  #hero .intro-inner { transform-origin: center; }
  .hero-title { font-size: clamp(38px, 11vw, 50px); }
  .hero-sub { font-size: 15.5px; margin-top: 18px; }
  .hero-actions { margin-top: 26px; gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn { padding: 13px 18px; font-size: 14.5px; }
  .hero-actions .btn img { width: 16px; height: 16px; }
}

/* ─── Quiénes somos ──────────────────────────────────────────────── */
/* Las dos fotos se superponen como el eclipse del inicio y se juntan al
   llegar a la sección (lo único que se mueve acá). */
#nosotros { padding: var(--section-y) 0; background: var(--bg-2); overflow-x: clip; }
.nos-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head duo" "personas duo";
  column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(36px, 5vh, 56px); align-items: center;
}
.nos-head { grid-area: head; align-self: end; }
.nos-lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-dim); }

.nos-duo { grid-area: duo; position: relative; aspect-ratio: 1 / 0.82; width: 100%; max-width: 640px; justify-self: center; }
.nos-duo::before {                        /* luz donde se tocan */
  content: ""; position: absolute; left: 50%; top: 52%; width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--gradient); filter: blur(46px); opacity: 0.42;
}
.nos-foto {
  position: absolute; width: 60%; aspect-ratio: 1;
  /* la entrada usa `translate` y el hover `transform`: cada uno con su propio tiempo */
  transition: translate 1.5s var(--ease-out), transform 0.6s var(--ease-out), filter 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nos-circulo {
  display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: var(--bg-2); padding: 6px;   /* anillo del color del fondo: separa las dos fotos */
}
.nos-circulo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nos-foto-lucia { left: 0; top: 0; z-index: 2; translate: -9% 0; }
.nos-foto-maximo { right: 0; bottom: 0; z-index: 1; translate: 9% 0; }
.nos-duo.in .nos-foto { translate: 0 0; }

/* Ícono de la red: espera detrás del borde de la foto y asoma hacia afuera */
.nos-red {
  position: absolute; z-index: -1; width: 18%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--line-soft), 0 14px 30px -14px rgba(21,18,31,0.45);
  opacity: 0; scale: 0.6;
  transition: translate 0.6s var(--ease-out), scale 0.6s var(--ease-out), opacity 0.35s var(--ease);
}
.nos-red img { width: 52%; height: 52%; }
.nos-foto-lucia .nos-red { left: 5.6%; top: 5.6%; translate: 30% 30%; }        /* borde de arriba a la izquierda */
.nos-foto-maximo .nos-red { right: 5.6%; bottom: 5.6%; translate: -30% -30%; } /* borde de abajo a la derecha */

@media (hover: hover) {
  .nos-foto:hover { z-index: 3; }
  .nos-foto-lucia:hover { transform: translate(-2.5%, -2.5%) scale(1.03); }
  .nos-foto-maximo:hover { transform: translate(2.5%, 2.5%) scale(1.03); }
  .nos-foto:hover .nos-red { opacity: 1; scale: 1; }
  .nos-foto-lucia:hover .nos-red { translate: -23% -23%; }
  .nos-foto-maximo:hover .nos-red { translate: 23% 23%; }
  .nos-duo:has(.nos-foto:hover) .nos-foto:not(:hover) { filter: saturate(0.75) brightness(0.97); }
}
/* en el celular, lo mismo al tocar (mejoras.js pone .activa) */
.nos-foto.activa { z-index: 3; }
.nos-foto-lucia.activa { transform: translate(-2.5%, -2.5%) scale(1.03); }
.nos-foto-maximo.activa { transform: translate(2.5%, 2.5%) scale(1.03); }
.nos-foto.activa .nos-red { opacity: 1; scale: 1; }
.nos-foto-lucia.activa .nos-red { translate: -23% -23%; }
.nos-foto-maximo.activa .nos-red { translate: 23% 23%; }
.nos-duo:has(.nos-foto.activa) .nos-foto:not(.activa) { filter: saturate(0.75) brightness(0.97); }

.nos-personas { grid-area: personas; align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.nos-persona { border-top: 1px solid var(--line); padding-top: 18px; }
.nos-persona h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.nos-persona h3 span { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-faint); }
.nos-persona p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-dim); }
.nos-persona a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-bright); text-underline-offset: 3px; }
.nos-persona a:hover { text-decoration-color: currentColor; }

@media (max-width: 900px) {
  .nos-grid { grid-template-columns: 1fr; grid-template-areas: "head" "duo" "personas"; }
  .nos-head { align-self: auto; }
  .nos-duo { max-width: 460px; }
}
@media (max-width: 560px) {
  .nos-personas { grid-template-columns: 1fr; gap: 28px; }
  .nos-circulo { padding: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .nos-foto, .nos-red { transition: none; }
  .nos-foto { translate: 0 0; transform: none !important; }
}

/* ─── Ronda 8: letras del intro y profundidad ────────────────────── */
/* Clash Display (misma fundición que Satoshi) para los títulos. La palabra
   que importa se destaca con la misma letra, más pesada y en el violeta del
   logo: cambiar de familia para destacar se ve armado (skill taste 4.1). */
:root {
  --display-hero: "Clash Display", "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
}
#hero .eclipse-frase {
  font-family: var(--display-hero); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.02;
  text-shadow: 0 2px 26px rgba(8,6,20,0.55);
  will-change: transform;
}
.fr-acento {
  font-style: normal; color: var(--acento-claro);
  text-shadow: 0 2px 26px rgba(8,6,20,0.55);
}
.fr-in { display: inline-block; }

/* Entrada: cada letra emerge de la luz (desenfocada, más grande y más abajo)
   y se asienta; van de a una, 24 ms entre letra y letra. */
.js-frase .fr-in {
  animation: frEntra 1.2s var(--ease-out) backwards;
  animation-delay: calc(var(--n) * 24ms + 200ms);
}
/* "a oscuras": llega igual y después una chispa de luz la recorre letra por letra */
.js-frase .fr-acento .fr-in {
  animation: frEntra 1.2s var(--ease-out) backwards, frChispa 1.5s ease-out both;
  animation-delay: calc(var(--n) * 24ms + 200ms), calc(var(--k) * 70ms + 1900ms);
}
/* hasta que carga la tipografía, todo espera quieto (e invisible) */
.js-frase:not(.fuentes) .fr-in { animation-play-state: paused; }
@keyframes frEntra {
  from { opacity: 0; filter: blur(14px); translate: 0 0.5em; scale: 1.35; }
  60% { opacity: 1; }
}
@keyframes frChispa {
  0%   { color: var(--acento-claro); text-shadow: 0 2px 26px rgba(8,6,20,0.55); }
  30%  { color: #FFFFFF; text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 30px rgba(125,84,253,0.6); }
  100% { color: var(--acento-claro); text-shadow: 0 2px 26px rgba(8,6,20,0.55); }
}

/* Título después del eclipse: "ven" en la misma letra, más pesada y en violeta */
.hero-title { font-family: var(--display-hero); font-weight: 500; letter-spacing: -0.03em; }
.hero-title .grad, .hero-title .w-in.grad { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .js-frase .fr-in, .js-frase .fr-acento .fr-in { animation: none; }
}
@media (min-width: 901px) and (min-aspect-ratio: 4/5) {
  #hero .eclipse-frase { font-size: clamp(30px, 5.3vh, 70px); }
}

/* Títulos de toda la página con la misma voz que el inicio:
   Clash Display en los títulos, Satoshi en el texto corrido.
   La palabra destacada va en violeta y un punto más pesada. */
.section-title, .case-title, .case-cta h2, .cap-title, .work-title,
.mini-card h3, .paso h3, .nos-persona h3, .hablemos-titulo {
  font-family: var(--display-hero); font-weight: 500;
}
.section-title, .case-title { letter-spacing: -0.028em; }
.cap-title, .work-title { letter-spacing: -0.022em; }
.hablemos-titulo { letter-spacing: -0.045em; }
.nos-persona h3 span { font-family: var(--display); }   /* "Te atiende" / "Lo arma" sigue en Satoshi */
.section-title .grad, .section-title .w-in.grad,
.case-title .grad, .case-title .w-in.grad { font-weight: 600; }
@media (max-width: 640px) {
  .section-title, .case-title { letter-spacing: -0.022em; }
  .cap-title, .work-title { letter-spacing: -0.018em; }
}

/* ═══════════════════════════════════════════════════════════════════
   Tanda 2 (02/10/2026): captura real en "Web y tienda online" y
   La Épica / B&B sin tarjeta alrededor
   ═══════════════════════════════════════════════════════════════════ */
/* la misma web en el celular, apoyada en la esquina de la captura */
.cap-tile-tel {
  position: absolute; right: 5%; bottom: 7%; width: 22%; z-index: 2;
  border-radius: 16px; overflow: hidden; border: 3px solid #15121F;
  box-shadow: 0 18px 40px -16px rgba(21,18,31,0.6);
}
.cap-tile-tel img { width: 100%; display: block; }
/* La Épica y B&B: sin tarjeta alrededor (nada de tarjeta dentro de tarjeta) */
.mini-card { background: none; border: 0; border-radius: 0; padding: 0; }
.mini-card:hover { transform: none; box-shadow: none; }
.mini-img { border: 1px solid var(--line); border-radius: 18px; }
/* B&B: el inicio del sistema y, encima, el ranking de productos */
.mini-img.mini-duo { position: relative; background: var(--bg-card); }
.mini-duo > img:first-child { object-position: left top; }
.mini-duo .mini-pip {
  position: absolute; right: 12px; bottom: 12px; width: 46%; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 16px 34px -14px rgba(21,18,31,0.5);
}
