/* ============================================================
   HERO v10 · "El lockup se impone" (Opción A, street luxury editorial)
   TENGAHOY STUDIO · 2026-10-12 — orden de Oscar ~12:47 EDT
   Extraído de v10-work/hero-v2/opcion-a.html con clases y variables
   prefijadas (hv-) para aislarlo del sistema de diseño de la v9.
   PORQUÉ ARCHIVO SEPARADO (decisión del Constructor):
   - styles.css de la v9 define .hero/.brand/.wordmark/.eyebrow/.reveal
     con OTRO sistema de diseño: integrar aquí contaminaría el nav,
     las secciones y el formulario, y viceversa.
   - Cache-busting independiente del resto (?v=10).
   Anti-genérico: fondo negro neutro + grano visible + UN gesto de luz.
   Solo transform/opacity · sin librerías · prefers-reduced-motion apaga todo.
   ============================================================ */
/* ============================================================
   HERO v2 · OPCIÓN A — "El lockup se impone" (street luxury editorial)
   Diseñador · TENGAHOY STUDIO · 2026-10-12
   Anti-genérico: NADA de niebla morada/azul de plantilla. Fondo
   casi negro neutro + grano de película VISIBLE + UN solo gesto
   de luz (slash diagonal) + tipografía fantasma editorial + layout
   asimétrico con el lockup sangrando el borde. El protagonista es
   el lockup cromado+grafiti, no el fondo.
   Gancho: parallax de profundidad por capas — al bajar, buceas
   DENTRO del lockup: cada capa recede a su velocidad.
   Solo transform/opacity · sin librerías · 60fps.
   ============================================================ */
@font-face {
  font-family: 'Sedgwick Ave Display';
  src: url('../fonts/SedgwickAveDisplay-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
:root {
  --hv-ink: #0E0E10; --hv-ink2: #141414; --hv-white: #FFFFFF; --hv-gray: #5F5F63;
  --hv-morado: #5F20A2; --hv-morado-deep: #262295; --hv-azul: #0351AE;
  --hv-morado-osc: #2D0667; --hv-magenta: #992FAB; --hv-cyan: #04AEED; --hv-lila: #DF9FE9;
  --hv-ease: cubic-bezier(.22, 1, .36, 1);
}




/* ============ HERO ============ */
.hv-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  overflow: clip; isolation: isolate;
  display: flex; align-items: center; align-items: safe center;
  /* v11 · FIX BADGE: el header es fijo (72px) y el bloque de contenido se
     centraba en 100vh sin compensarlo — en viewports cortos el badge
     quedaba BAJO el header. El hero aporta el offset del nav y el centrado
     "seguro" evita el desborde negativo (el contenido arranca abajo del
     header en vez de cortarse). */
  padding-top: calc(var(--nav-h) + clamp(16px, 3vh, 32px));
}

/* ---- Fondo: neutro + grano visible + UN gesto de luz ---- */
.hv-bg { position: absolute; inset: 0; z-index: -1; }
.hv-grain {
  position: absolute; inset: 0; opacity: .10; /* grano visible, táctil */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.hv-slash { /* el gesto: una sola cuchilla de luz diagonal */
  position: absolute; top: 26%; left: -12vw; width: 124vw; height: 20vh;
  transform: rotate(-14deg);
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,.07) 32%, rgba(4,174,237,.16) 52%, rgba(153,47,171,.10) 64%, transparent 92%);
  filter: blur(34px); will-change: transform;
}
.hv-spot { /* foco puntual detrás del lockup, no ambiente */
  position: absolute; top: 8%; left: 22%; width: 52vw; height: 52vw;
  background: radial-gradient(circle, rgba(255,255,255,.075), transparent 62%);
  filter: blur(10px); will-change: transform;
}
.hv-ghost { /* tipografía fantasma editorial, contorno */
  position: absolute; right: -4vw; bottom: 4vh;
  font-size: 30vw; font-weight: 900; letter-spacing: -.04em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.13);
  user-select: none; will-change: transform;
}
.hv-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 90% at 42% 45%, transparent 55%, rgba(0,0,0,.66) 100%);
}

/* ---- Riel lateral editorial ---- */
.hv-rail {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-size: 10px; font-weight: 700;
  letter-spacing: .5em; color: rgba(255,255,255,.38); white-space: nowrap;
}
.hv-rail b { color: var(--hv-cyan); font-weight: 700; }

/* ---- Contenido asimétrico: alineado a la izquierda, lockup sangrando ---- */
.hv-hero-inner {
  position: relative; width: min(1200px, 94vw); margin: 0 auto;
  padding: clamp(8px, 2vh, 20px) 0 120px 6vw; /* v11: el offset del nav lo aporta .hv-hero */
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}
.hv-layer { will-change: transform, opacity; }

.hv-stamp { /* badge como sello, rotado, con carácter */
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .3em; text-indent: .1em;
  color: var(--hv-white); border: 2px solid var(--hv-lila);
  box-shadow: inset 0 0 0 1px rgba(14,14,16,.9), inset 0 0 0 3px rgba(223,159,233,.35), 0 0 26px rgba(153,47,171,.35);
  background: rgba(45,6,103,.42);
  padding: 11px 22px; border-radius: 4px;
  transform: rotate(-4deg);
  margin: 0 0 clamp(22px, 4vh, 38px) 8px;
}
.hv-stamp .hv-stamp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hv-cyan); box-shadow: 0 0 12px var(--hv-cyan); animation: hv-pulse 2.2s ease-in-out infinite; }
@keyframes hv-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.72); opacity: .55; } }

.hv-brand { display: flex; flex-direction: column; align-items: flex-start; margin-left: -1vw; }
.hv-wordmark {
  width: min(700px, 88vw); height: auto; display: block;
  filter: drop-shadow(0 12px 50px rgba(153,47,171,.45)); /* marca INTACTA: solo glow */
}
/* v17 (orden de Oscar 13-oct): firma compacta v1c para el hero de ESCRITORIO.
   Base: oculta en todas partes; el media query de escritorio la muestra y
   oculta el wordmark + el STUDIO de texto. Móvil sin cambios. */
.lockup-v1c { display: none; }
.hv-studio {
  font-family: 'Sedgwick Ave Display', cursive;
  font-size: clamp(72px, 10.5vw, 164px); line-height: .95; letter-spacing: .02em;
  margin-top: clamp(-16px, -1.8vw, -5px); margin-left: clamp(8px, 1.5vw, 22px);
  transform: rotate(-2deg);
  background: linear-gradient(180deg, #ffffff 0%, #e9eef8 28%, #9fabc9 47%, #f8faff 52%, #8a96b8 68%, #eef3fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 var(--hv-morado-osc)) drop-shadow(0 12px 34px rgba(153,47,171,.5));
}

.hv-headline {
  font-size: clamp(1.65rem, 3.4vw, 2.6rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.14; max-width: 22ch;
  margin-top: clamp(24px, 4.5vh, 44px); text-wrap: balance;
  border-left: 3px solid var(--hv-cyan); padding-left: 20px;
}
.hv-headline .hv-line { display: block; }
.hv-headline .hv-w { display: inline-block; }
.hv-headline .hv-line.hv-accent .hv-w {
  background: linear-gradient(92deg, var(--hv-cyan), var(--hv-lila));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.hv-sub {
  font-size: clamp(.98rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.72);
  max-width: 50ch; margin-top: 16px; line-height: 1.6; text-wrap: balance; padding-left: 23px;
}

.hv-ctas { display: flex; gap: 16px; margin-top: clamp(30px, 5vh, 48px); padding-left: 23px; flex-wrap: wrap; }
.hv-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 34px; border-radius: 999px; font-size: 1rem; font-weight: 800;
  letter-spacing: .01em; text-decoration: none; overflow: hidden;
  transition: transform .35s var(--hv-ease), box-shadow .35s var(--hv-ease), border-color .35s, background-color .35s;
  will-change: transform;
}
.hv-cta:focus-visible { outline: 3px solid var(--hv-cyan); outline-offset: 3px; }
.hv-cta-primary {
  color: var(--hv-ink);
  background: linear-gradient(180deg, #ffffff 0%, #dde4f3 45%, #aeb9d4 55%, #f0f4fd 100%);
  box-shadow: 0 12px 34px rgba(4,174,237,.30), 0 4px 14px rgba(0,0,0,.45);
}
.hv-cta-primary::after {
  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); transition: left .7s var(--hv-ease);
}
.hv-cta-primary:hover::after { left: 135%; }
.hv-cta-primary:hover { box-shadow: 0 16px 44px rgba(153,47,171,.5), 0 4px 14px rgba(0,0,0,.4); }
.hv-cta-ghost { color: var(--hv-white); border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.hv-cta-ghost:hover { border-color: rgba(223,159,233,.8); background: rgba(153,47,171,.16); box-shadow: 0 8px 26px rgba(153,47,171,.3); }

/* ---- Marquee de servicios: energía street, prueba en el hero ---- */
.hv-marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,12,.6); backdrop-filter: blur(6px);
  overflow: hidden; padding: 13px 0; will-change: transform, opacity;
}
.hv-marquee-track { display: flex; width: max-content; animation: hv-scrollX 26s linear infinite; }
.hv-marquee-track span {
  font-size: 12px; font-weight: 800; letter-spacing: .22em; white-space: nowrap;
  padding: 0 30px; color: rgba(255,255,255,.72);
}
.hv-marquee-track .hv-sep { color: var(--hv-cyan); padding: 0; }
@keyframes hv-scrollX { to { transform: translateX(-50%); } }

/* ---- Señal de scroll ---- */
.hv-cue {
  position: absolute; bottom: 76px; right: 5vw;
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .4em; text-indent: .1em; color: rgba(255,255,255,.55);
}
.hv-cue-line { position: relative; width: 52px; height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.hv-cue-dot { position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: var(--hv-cyan); box-shadow: 0 0 8px var(--hv-cyan); animation: hv-cueSlide 1.8s var(--hv-ease) infinite; }
@keyframes hv-cueSlide { 0% { left: -40%; } 100% { left: 110%; } }

/* ============ SECCIÓN REVELADO ============ */
.hv-reveal { position: relative; overflow: clip; background: var(--hv-ink); padding: 14vh 0 18vh; border-top: 1px solid rgba(255,255,255,.08); }
.hv-reveal-inner { position: relative; width: min(1200px, 94vw); margin: 0 auto; padding-left: 6vw; }
.hv-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .42em; color: var(--hv-cyan); margin-bottom: 18px; }
.hv-eyebrow::before { content: ""; display: inline-block; width: 44px; height: 2px; background: var(--hv-cyan); vertical-align: middle; margin-right: 14px; }
.hv-reveal-title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: clamp(36px, 6vh, 60px); text-wrap: balance; max-width: 20ch; }
.hv-reveal-title .hv-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;
}
.hv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); max-width: 1000px; }
.hv-card {
  border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 30px 26px 34px; position: relative; overflow: hidden; will-change: transform, opacity;
  background: rgba(255,255,255,.015); transition: background-color .35s var(--hv-ease);
}
.hv-card:hover { background: rgba(95,32,162,.14); }
.hv-card .hv-num { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(4,174,237,.55); display: block; margin-bottom: 14px; line-height: 1; }
.hv-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; letter-spacing: .02em; text-transform: uppercase; }
.hv-card p { font-size: .92rem; color: rgba(255,255,255,.6); line-height: 1.55; }

/* ============ ENTRADA ============ */
.hv-anim { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--hv-ease), transform 1s var(--hv-ease); transition-delay: var(--d, 0s); }
.hv-anim.hv-in { opacity: 1; transform: translateY(0); }
.hv-stamp.hv-anim { transform: translateY(30px) rotate(-4deg); }
.hv-stamp.hv-anim.hv-in { transform: translateY(0) rotate(-4deg); }
img.hv-wordmark.hv-anim { transform: translateY(30px) scale(.94); }
img.hv-wordmark.hv-anim.hv-in { transform: translateY(0) scale(1); }
.hv-studio.hv-anim { transform: translateY(30px) rotate(-2deg); }
.hv-studio.hv-anim.hv-in { transform: translateY(0) rotate(-2deg); }
.hv-headline .hv-w { opacity: 0; transform: translateY(.4em); transition: opacity .7s var(--hv-ease), transform .7s var(--hv-ease); }
.hv-headline.hv-in .hv-w { opacity: 1; transform: translateY(0); }
.hv-settled .hv-anim, .hv-settled .hv-headline .hv-w { transition: none !important; }
.hv-marquee-track { animation-play-state: running; }

/* ============ MÓVIL 390px ============ */
@media (max-width: 480px) {
  .hv-rail { display: none; }
  .hv-hero-inner { padding: 8px 0 130px 4vw; width: 94vw; } /* v11: offset del nav en .hv-hero */
  .hv-wordmark { width: 92vw; }
  .hv-ghost { font-size: 52vw; bottom: 12vh; }
  .hv-headline { border-left-width: 2px; padding-left: 14px; }
  .hv-sub, .hv-ctas { padding-left: 17px; }
  .hv-ctas { flex-direction: column; align-items: stretch; width: calc(100% - 17px); max-width: 340px; }
  .hv-cta { width: 100%; padding: 16px 20px; }
  .hv-cards { grid-template-columns: 1fr; }
  .hv-cue { bottom: 66px; right: 6vw; }
  .hv-reveal-inner { padding-left: 4vw; }
}

/* ============ ESCRITORIO (v17): lockup v1c en el hero — solo desktop ============ */
@media (min-width: 481px) {
  .hv-wordmark, .hv-studio { display: none; }
  img.lockup-v1c {
    display: block; width: min(700px, 88vw); height: auto;
    filter: drop-shadow(0 12px 50px rgba(153,47,171,.45)); /* mismo glow de la marca */
  }
}

/* ============ ACCESIBILIDAD ============ */
@media (prefers-reduced-motion: reduce) {
  
  .hv-anim, .hv-headline .hv-w { opacity: 1 !important; transform: none !important; }
  .hv-stamp.hv-anim, .hv-stamp.hv-anim.hv-in { transform: rotate(-4deg) !important; }
  .hv-studio.hv-anim, .hv-studio.hv-anim.hv-in { transform: rotate(-2deg) !important; }
  .hv-marquee-track { animation: none !important; transform: none !important; }
}

/* ============================================================
   HERO v12 · HERO FLUIDO — todo cabe, nada se corta
   Orden de Oscar 2026-10-12 ~13:27 EDT (corrección URGENTE en vivo):
   el badge ya se veía (fix v11 OK) pero el hero se cortaba ABAJO —
   botones y "2026" fantasma bajo el fold en desktop. REGLA PERMANENTE:
   badge, wordmark, headline, sub, botones completos y 2026 completo
   SIEMPRE caben en el viewport, en cualquier medida.
   CÓMO (decisiones del Diseñador — PORQUÉ):
   1) Tipografía clamp() acoplada también a la ALTURA: en pantallas
      cortas el tamaño venía dictado solo por el ancho (vw) y el stack
      crecía más que el viewport → el hero (min-height:100svh) se
      estiraba y lo de abajo quedaba bajo el fold. Ahora los tamaños
      y el ritmo vertical usan vh/vmin y breakpoints por ALTURA que
      compactan el stack (menos gaps, paddings y tamaños). NADA cortado.
   2) El "2026" fantasma deja de sangrar el borde derecho (right:-4vw
      lo RECORTABA con overflow:clip) y su tamaño/posición usan clamp()
      con la altura: en pantallas cortas se achica, jamás se corta.
      Reserva sobre el marquee para no quedar bajo el fold.
   3) Parallax ACOTADO sin tocar el JS: en reposo (scrollY=0) todos los
      offsets son 0; al hacer scroll cada capa lleva su fade-out ANTES
      de desplazarse fuera, y el hero conserva overflow:clip — ningún
      desplazamiento saca contenido del viewport visible mientras es
      visible. JS funcional intacto.
   4) prefers-reduced-motion intacto: v12 no añade animaciones; el
      bloque existente sigue apagando entrada, marquee y parallax.
   NO se toca: api/, admin/, datos/, JS, logo, paleta, copy, ni las
   secciones bajo el hero. styles.css no se modifica (el hero vivo es
   .hv-hero; el .hero antiguo de styles.css está muerto en el HTML).
   ============================================================ */

/* ---- v12 base: ritmo vertical acoplado al viewport ---- */
.hv-hero {
  padding-top: calc(var(--nav-h) + clamp(12px, 2.5vh, 28px));
  padding-bottom: clamp(52px, 7vh, 72px); /* reserva del marquee: el contenido nunca baja tras él */
}
.hv-hero-inner {
  padding: clamp(4px, 1vh, 12px) 0 clamp(56px, 8vh, 96px) 6vw;
}
.hv-stamp {
  font-size: clamp(10px, 1.4vh + 4px, 12px);
  padding: clamp(8px, 1.2vh, 11px) clamp(16px, 2.2vw, 22px);
  margin-bottom: clamp(14px, 2.8vh, 32px);
}
.hv-headline { margin-top: clamp(14px, 3.2vh, 44px); }
.hv-ctas { margin-top: clamp(18px, 3.6vh, 48px); }
.hv-ghost {
  /* v14 · FIX BOTÓN WHATSAPP (orden de Oscar 12-oct ~14:08, foto en vivo):
     el botón flotante (fixed: 64px+28px en desktop, 60px+20px en móvil)
     tapaba el "6". El botón NO se mueve (orden): el fantasma reserva su
     esquina desplazándose a la izquierda — mismo baseline inferior, misma
     escala, cero overlap (reserva ≥104px > huella del botón + anillo pulse). */
  right: clamp(104px, 8vw, 132px);
  bottom: clamp(52px, 7vh, 84px); /* sobre el marquee, nunca bajo el fold */
  font-size: clamp(120px, 30vw, 420px); /* escala con el viewport, completo siempre */
  max-width: 100%; /* cinturón de seguridad: jamás sangra el borde */
}

/* ---- v12 · pantallas medianamente cortas (laptops 768px y menos) ---- */
@media (max-height: 800px) {
  .hv-hero-inner { padding-bottom: clamp(48px, 7vh, 72px); }
  .hv-stamp { margin-bottom: clamp(12px, 2vh, 24px); font-size: 11px; padding: 9px 18px; }
  .hv-wordmark { width: min(560px, 80vw, 58vh); } /* la marca también responde a la altura */
  .hv-studio { font-size: clamp(40px, 7.4vw, 116px); }
  .hv-headline { font-size: clamp(1.3rem, 2.7vw, 2rem); margin-top: clamp(14px, 3vh, 32px); }
  .hv-sub { margin-top: 12px; font-size: clamp(.9rem, 1.3vw, 1.02rem); }
  .hv-ctas { margin-top: clamp(16px, 3vh, 32px); }
  .hv-cta { padding: 14px 28px; }
  .hv-ghost { font-size: 24vmin; bottom: 6vh; } /* se achica con la altura: completo, jamás cortado */
  .hv-cue { bottom: 64px; }
}

/* ---- v12 · pantallas cortas: máxima compactación, nada se corta ---- */
@media (max-height: 700px) {
  .hv-hero { padding-top: calc(var(--nav-h) + 8px); }
  .hv-hero-inner { padding-bottom: 52px; }
  .hv-stamp { margin-bottom: 12px; font-size: 10px; padding: 8px 16px; letter-spacing: .24em; }
  .hv-wordmark { width: min(460px, 78vw, 50vh); }
  .hv-studio { font-size: clamp(38px, 6.6vw, 100px); margin-top: -10px; }
  .hv-headline { font-size: clamp(1.2rem, 2.5vw, 1.75rem); margin-top: 14px; }
  .hv-sub { margin-top: 10px; font-size: .9rem; }
  .hv-ctas { margin-top: 16px; gap: 12px; }
  .hv-cta { padding: 13px 26px; font-size: .95rem; }
  .hv-ghost { font-size: 20vmin; bottom: 7vh; } /* v14: el right hereda la reserva del botón de la base */
  .hv-marquee { padding: 10px 0; }
  .hv-cue { display: none; } /* en pantallas cortas sobra: el marquee ya marca el borde inferior */
}

/* ---- v12 · móvil: el padding inferior gigante (130px) impedía que cupiera ---- */
@media (max-width: 480px) {
  .hv-hero-inner { padding: 8px 0 clamp(56px, 8vh, 96px) 4vw; }
  .hv-cue { bottom: 64px; }
  .hv-ghost { max-width: 100%; } /* v14: el right hereda la reserva del botón de la base */
}
/* ---- v12 · móvil + pantalla corta: el fantasma también se compacta ---- */
@media (max-width: 480px) and (max-height: 760px) {
  .hv-ghost { font-size: 34vmin; bottom: 9vh; }
  .hv-studio { font-size: clamp(44px, 13vw, 72px); } /* conserva presencia de marca en móvil */
}
