/* ============================================================
   HERO v19 · GANCHOS (D2 + D3 + D4) — orden de Oscar 13-oct ~11:39
   "PON LO QUE MAS IMPACTE... ES LO PRIMERO QUE VERAN LOS USUARIOS"
   Combinación elegida por el equipo (modo delegado): D2 + D4 + D3.
   PORQUÉ (documentado por escrito):
   - D4 es innegociable: el hero debe convertir; "Quiero ver mi demo"
     + "SIN COMPROMISO" es la entrada del funnel y el tratamiento
     cromado lo vuelve el punto focal.
   - D2 es el mayor golpe VISUAL: los mockups con parallax/tilt son lo
     único que pone al usuario a MIRAR; el copy ejecuta la esencia
     escrita de la agencia ("muestra, no promete") en dos capas.
   - D3 vuelve literal el tagline: "hoy" deja de ser eslogan y se vuelve
     un reloj en pantalla (fecha/hora en vivo del visitante).
   - D1 queda FUERA: el lockup v1c aprobado (v17) YA es la marca en el
     hero y el pie YA lleva el tagline (v18); su línea y su sello
     duplicarían energía aprobada en vez de sumar un golpe nuevo, y el
     sello junto al botón competiría con el imán cromado de D4.
   REGLAS QUE SE RESPETAN: lockup v1c intacto · v12 "todo cabe, nada se
   corta" (ganchos compactos, medidos en 700/768/800/900px) · cero claims
   (Criterio de Protección) · HTML/CSS/JS puro, sin assets externos ·
   prefers-reduced-motion apaga todo lo nuevo.
   ============================================================ */

/* ============ D2 · línea de gancho: puente lockup → headline ============ */
.hv-hook {
  font-size: clamp(.98rem, 1.7vw, 1.22rem); font-weight: 700;
  letter-spacing: -.01em; line-height: 1.35; color: rgba(255,255,255,.94);
  margin: 10px 0 0; padding-left: 23px; max-width: 46ch; /* una sola línea en desktop */
}
.hv-hook-accent {
  background: linear-gradient(92deg, var(--hv-cyan), var(--hv-lila));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ============ D3 · ticker "el hoy en vivo": banda delgada sub → CTAs ============ */
.hv-hoy {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 0; padding: 7px 16px 7px 23px; max-width: 600px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.62); white-space: normal;
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  border-radius: 2px;
}
.hv-hoy-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hv-cyan);
  box-shadow: 0 0 10px var(--hv-cyan); animation: hv-pulse 2.2s ease-in-out infinite; flex: none;
}
.hv-hoy-sep { color: rgba(255,255,255,.28); }

/* ============ D4 · CTA imán cromado + pill SIN COMPROMISO ============ */
.hv-cta-wrap { position: relative; display: inline-flex; }
.hv-cta-magnet { position: relative; animation: hv-ring 2.8s ease-out infinite; }
/* barrido de brillo automático (además del hover que ya trae ::after) */
.hv-cta-magnet::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-18deg); animation: hv-magnet 6s var(--hv-ease) infinite;
  pointer-events: none;
}
@keyframes hv-magnet { 0%, 70% { left: -70%; } 92%, 100% { left: 135%; } }
/* anillo de pulso #992FAB (paleta oficial) */
@keyframes hv-ring {
  0%   { box-shadow: 0 12px 34px rgba(4,174,237,.30), 0 4px 14px rgba(0,0,0,.45), 0 0 0 0 rgba(153,47,171,.55); }
  70%  { box-shadow: 0 12px 34px rgba(4,174,237,.30), 0 4px 14px rgba(0,0,0,.45), 0 0 0 14px rgba(153,47,171,0); }
  100% { box-shadow: 0 12px 34px rgba(4,174,237,.30), 0 4px 14px rgba(0,0,0,.45), 0 0 0 0 rgba(153,47,171,0); }
}
.hv-pill {
  position: absolute; top: -11px; right: 10px; z-index: 2;
  font-size: 9.5px; font-weight: 800; letter-spacing: .2em; text-indent: .05em;
  color: var(--hv-white); background: rgba(20,20,22,.88);
  border: 1px solid var(--hv-cyan); border-radius: 999px; padding: 5px 12px;
  box-shadow: 0 0 14px rgba(4,174,237,.45); white-space: nowrap; pointer-events: none;
}

/* ============ D2 · teaser de capacidades (solo desktop ≥1280px) ============ */
.hv-teaser {
  position: absolute; right: 4vw; top: 34%; z-index: 1;
  width: 380px; height: 340px; perspective: 1100px;
  display: none; /* bajo 1280px el cluster chocaría con el copy: se oculta */
}
@media (min-width: 1280px) { .hv-teaser { display: block; } }
/* entrada: respeta el centrado vertical propio (no el translateY(0) genérico) */
.hv-teaser.hv-anim { transform: translateY(calc(-50% + 30px)); }
.hv-teaser.hv-anim.hv-in { transform: translateY(-50%); }
.hv-teaser-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.hv-mock {
  position: absolute; width: 208px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, rgba(28,28,34,.96), rgba(14,14,18,.96));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 8px 28px rgba(95,32,162,.35);
  will-change: transform;
}
.hv-mock-main { box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 10px 34px rgba(4,174,237,.28); }
.hv-mock-bar {
  display: flex; align-items: center; gap: 5px; padding: 8px 10px;
  background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08);
}
.hv-mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); flex: none; }
.hv-mock-bar i:nth-child(1) { background: rgba(255,107,107,.75); }
.hv-mock-bar i:nth-child(2) { background: rgba(255,200,90,.75); }
.hv-mock-bar i:nth-child(3) { background: rgba(110,220,130,.75); }
.hv-mock-url { flex: 1; height: 10px; border-radius: 5px; background: rgba(255,255,255,.08); margin-left: 6px; }
.hv-mock-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.hv-sk { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.10); }
.hv-sk.short { width: 62%; }
.hv-sk-hero {
  height: 44px; border-radius: 6px;
  background: linear-gradient(120deg, rgba(95,32,162,.55), rgba(4,174,237,.35), rgba(153,47,171,.5));
}
.hv-sk-btn { width: 56px; height: 14px; border-radius: 7px; background: linear-gradient(92deg, var(--hv-cyan), var(--hv-lila)); }
.hv-disc {
  width: 44px; height: 44px; border-radius: 50%; margin: 2px auto;
  background: conic-gradient(from 210deg, #e9eef8, #9fabc9, #f8faff, #8a96b8, #eef3fd, #e9eef8);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 14px rgba(153,47,171,.45);
}
.hv-dots { display: flex; gap: 6px; justify-content: center; }
.hv-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.hv-screen {
  position: relative; display: block; height: 64px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(140deg, #1b1030, #0e2a45);
  border: 1px solid rgba(255,255,255,.08);
}
.hv-play {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: translate(-50%,-50%);
  border-left: 14px solid rgba(255,255,255,.92);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  filter: drop-shadow(0 0 6px rgba(4,174,237,.8));
}
.hv-timeline { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.hv-timeline span { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 2px; background: var(--hv-cyan); }
.hv-mock-tag {
  display: block; text-align: center; font-size: 9px; font-weight: 800;
  letter-spacing: .34em; text-indent: .34em; color: var(--hv-cyan); padding: 8px 0 10px;
}

/* ============ v19 · nota del formulario (coherencia del funnel D4) ============ */
.form-demo-note { margin: 10px 0 0; font-size: .95rem; color: rgba(255,255,255,.78); }
.form-demo-note strong { color: #fff; }

/* ============ v19 · pantallas altas: el hero creció con los ganchos; se recupera
   el aire para que el marquee vuelva a asomar en el fold (regla v12 intacta) ============ */
@media (min-height: 801px) {
  .hv-ctas { margin-top: 24px; }
}

/* ============ v19 · pantallas cortas: compactar ganchos (regla v12 intacta) ============ */
@media (max-height: 800px) {
  .hv-ctas { margin-top: 16px; }
  .hv-hook { margin-top: 10px; font-size: .98rem; }
  .hv-hoy { margin-top: 10px; padding-top: 6px; padding-bottom: 6px; }
}

/* ============ v19 · móvil ============ */
@media (max-width: 480px) {
  .hv-hook { padding-left: 17px; }
  .hv-hoy { padding-left: 17px; margin-right: 17px; letter-spacing: .14em; }
  .hv-ctas { margin-top: 22px; }
  .hv-cta-wrap { display: flex; width: 100%; }
  .hv-cta-magnet { flex: 1; }
}

/* ============ v19 · accesibilidad ============ */
@media (prefers-reduced-motion: reduce) {
  .hv-cta-magnet { animation: none; }
  .hv-cta-magnet::before { animation: none; display: none; }
  .hv-hoy-dot { animation: none; }
  .hv-teaser.hv-anim, .hv-teaser.hv-anim.hv-in { transform: translateY(-50%); }
}
