/* ══════════════════════════════════════════════════════════════════
   EMPRENDIFY® — HOME · los cuatro banners (A Ignición · B Órbita · C Galaxia · D Vitrina)
   Cada banner vive en su capa (.hero-a … .hero-d) y solo se muestra la del atributo data-banner.
   El texto (kicker, titular, bajada, botones) es el mismo en los cuatro; cambia su composición.
   ══════════════════════════════════════════════════════════════════ */

/* ── Base común ──────────────────────────────────────────────── */
.hero { position: relative; }
.hero-pin { position: relative; height: 100vh; height: 100svh; min-height: 36rem; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-content { position: relative; z-index: 4; }
.hero-title { margin: clamp(0.9rem, 2.2vh, 1.5rem) 0 clamp(1.1rem, 3vh, 2rem); }
.hero-title .ln { display: block; }
.split-word-mask { padding: 0.1em 0.16em 0.14em 0.04em; margin: -0.1em -0.16em -0.14em -0.04em; }
.hero-row { display: flex; align-items: flex-end; gap: clamp(1.4rem, 4vw, 4rem); flex-wrap: wrap; }
.hero-cta { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.hero-strip { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1rem, 2.6vh, 1.75rem); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-strip > * { display: inline-flex; align-items: center; gap: 0.7em; }
.hero-scroll i { width: 1px; height: 2.4rem; background: linear-gradient(var(--orange), transparent); transform-origin: 50% 0; animation: drip 1.9s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: 50% 0; } 50% { transform: scaleY(1); transform-origin: 50% 0; } 51% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
.hero-a, .hero-b, .hero-c, .hero-d { position: absolute; inset: 0; display: none; }
html[data-banner="a"] .hero-a, html[data-banner="b"] .hero-b, html[data-banner="c"] .hero-c, html[data-banner="d"] .hero-d { display: block; }

/* ── A y C: texto a la izquierda, escena a la derecha; el hero queda fijo mientras despega ── */
html[data-banner="a"] .hero, html[data-banner="c"] .hero { height: 165vh; height: 165svh; }
html[data-banner="a"] .hero-pin, html[data-banner="c"] .hero-pin { position: sticky; top: 0; }
html[data-banner="a"] .hero-title, html[data-banner="c"] .hero-title { font-size: clamp(2.9rem, 8.7vw, 7.8rem); }
html[data-banner="a"] .hero-content, html[data-banner="c"] .hero-content { padding-top: var(--nav-h); }
html[data-banner="a"] .hero .lead, html[data-banner="c"] .hero .lead { max-width: 40ch; }
html[data-banner="a"] .hero-row, html[data-banner="c"] .hero-row { flex-direction: column; align-items: flex-start; gap: clamp(1.2rem, 3vh, 1.9rem); }

/* ── BANNER A · «Ignición»: sol de semitono + cohete (Three.js) ─ */
.hero-a-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-a-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 77.5% 50%, var(--orange) 0, var(--deep) 16vh, rgba(184,58,26,0.3) 30vh, transparent 40vh); }
.hero-a.has-gl .hero-a-fallback { display: none; }
.hero-a::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.4) 30%, transparent 52%); }
.hero-a-rocket { position: absolute; z-index: 3; left: 68%; top: 34%; width: 16vw; will-change: transform; }
.hero-a-rocket svg { display: block; width: 100%; height: auto; fill: var(--cream); filter: drop-shadow(0 1.5rem 2.6rem rgba(0,0,0,0.4)); }
html[data-banner="a"] .hero-since, html[data-banner="a"] .hero-since b { color: var(--cream); }

/* ── BANNER C · «Galaxia»: partículas + cohete intacto (Three.js) ─ */
/* el bloque de texto ocupa todo el ancho: se deja pasar el mouse para que los satélites de detrás se puedan tocar */
html[data-banner="c"] .hero-content { pointer-events: none; }
html[data-banner="c"] .hero-content a { pointer-events: auto; }
.hero-c-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-c-fallback { position: absolute; inset: 0; background: radial-gradient(40vmax 21vmax at 70.5% 50%, rgba(255,122,71,0.5), rgba(184,58,26,0.26) 45%, transparent 72%); }
.hero-c.has-gl .hero-c-fallback { display: none; }
.hero-c::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,5,0.86) 0%, rgba(5,5,5,0.55) 28%, transparent 54%); }
.hero-c-rocket { position: absolute; left: 0; top: 0; z-index: 4; width: 10vw; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.hero-c-rocket::before { content: ''; position: absolute; left: 50%; top: 50%; width: 240%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.72) 32%, transparent 66%); }
/* el cohete se puede tocar: un clic lo hace girar en 3D sobre su eje (huevo de pascua). Solo reacciona su silueta
   (el <path>), no el cuadrado que lo contiene: así no hay un «aura» que responda antes de llegar al cohete */
.hero-c-rk { position: relative; z-index: 1; will-change: transform, filter; pointer-events: none; -webkit-tap-highlight-color: transparent; }
.hero-c-rk.can-spin > svg path { pointer-events: auto; cursor: pointer; }
/* la ventana es un hueco del trazo: este trazo invisible la hace parte del área que reacciona (ver hero-c.js) */
.hero-c-rk svg .rk-hit { fill: none; pointer-events: none; }
.hero-c-rk.can-spin > svg path.rk-hit { pointer-events: visibleFill; }
.hero-c-rk svg { display: block; width: 100%; height: auto; fill: var(--cream); filter: drop-shadow(0 0 1.5rem rgba(255,122,71,0.6)); }
/* el bloque del giro: copias del vector apiladas en profundidad (las arma hero-c.js); solo existe mientras gira */
.hero-c-3d { position: absolute; inset: 0; display: none; pointer-events: none; perspective: calc(var(--rw, 10vw) * 4.5); filter: drop-shadow(0 0 1.5rem rgba(255,122,71,0.6)); }
.hero-c-blk { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.hero-c-blk svg { position: absolute; left: 0; top: 0; width: 100%; height: auto; fill: var(--cream); filter: none; }
.hero-c-rk.is-spin .hero-c-3d { display: block; }
.hero-c-rk.is-spin > svg { visibility: hidden; }
.hero-c-halo { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--glow); transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
/* ronda 6: sin onda expansiva al cargar («es como mucho»). El aro solo sale con el clic en el cohete. */
.hero-c .hero-c-halo.is-pop { animation: cHaloPop 1.2s var(--ease) 1 both; }
@keyframes cHaloPop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); border-width: 2px; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(5); border-width: 1px; } }
@keyframes cHalo { 0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.4); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(6); } }
.sat { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 0.6em; margin: -0.4rem 0 0 -0.4rem; font-family: var(--mono); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.sat i { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0.3rem rgba(255,87,34,0.2), 0 0 1rem var(--orange); flex: none; }
.sat span { padding: 0.32em 0.75em; border: 1px solid var(--line-2); border-radius: 100px; background: rgba(5,5,5,0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.sat:hover span, .sat:focus-visible span { background: var(--orange); color: var(--black); border-color: var(--orange); }

/* ── BANNER B · «Órbita»: los sitios giran alrededor del titular (GSAP) ─ */
html[data-banner="b"] .hero-pin { justify-content: flex-start; padding-top: calc(var(--nav-h) + clamp(1.2rem, 6.5svh, 5rem)); }
html[data-banner="b"] .hero-content { text-align: center; display: grid; justify-items: center; pointer-events: none; }
html[data-banner="b"] .hero-content a { pointer-events: auto; }
html[data-banner="b"] .hero-title { font-size: min(9.6vw, 14.5svh, 9.4rem); }
html[data-banner="b"] .hero-cta .btn-ghost { background: rgba(5, 5, 5, 0.6); }
html[data-banner="b"] .hero-row { justify-content: center; flex-direction: column; align-items: center; gap: clamp(1rem, 2.6svh, 1.6rem); }
html[data-banner="b"] .hero .lead { max-width: 52ch; text-align: center; }
html[data-banner="b"] .hero-cta { justify-content: center; }
html[data-banner="b"] .hero-strip { display: none; }
.hero-b { pointer-events: none; }
.orbit { position: absolute; inset: 0; pointer-events: auto; touch-action: pan-y; cursor: grab; }
.orbit.is-drag { cursor: grabbing; }
.orbit-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit-sun { position: absolute; left: 50%; top: 47%; width: min(56vw, 112svh); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--orange) 0%, var(--deep) 30%, rgba(184,58,26,0.16) 56%, transparent 70%); filter: blur(3.2rem); opacity: 0.62; pointer-events: none; }
.orbit-dots { position: absolute; left: 50%; top: 47%; width: min(74vw, 150svh); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); pointer-events: none; background-image: radial-gradient(circle, rgba(255,122,71,0.9) 1.3px, transparent 1.9px); background-size: 13px 13px; -webkit-mask-image: radial-gradient(circle, #000 6%, transparent 60%); mask-image: radial-gradient(circle, #000 6%, transparent 60%); opacity: 0.6; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit-lines ellipse { fill: none; stroke: rgba(242,235,224,0.2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-lines ellipse + ellipse { stroke: rgba(255,87,34,0.55); stroke-dasharray: 2 9; }
.orbit-rocket { position: absolute; left: 0; top: 0; width: clamp(1.7rem, 2.5vw, 3.1rem); pointer-events: none; opacity: 0; will-change: transform, opacity; }
.orbit-rocket svg { display: block; width: 100%; height: auto; fill: var(--cream); filter: drop-shadow(0 0 0.7rem var(--orange)); }
.orbit-hint { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 0.6rem); display: inline-flex; align-items: center; gap: 0.7em; pointer-events: none; }
.ocard { position: absolute; left: 0; top: 0; width: clamp(10rem, 16vw, 20rem); will-change: transform, opacity; display: block; }
.ocard-in { border: 1px solid var(--line-2); border-radius: 0.6rem; overflow: hidden; background: var(--ink); box-shadow: 0 1.4rem 3.2rem rgba(0,0,0,0.55); transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.ocard-bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.ocard-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--gray-700); }
.ocard-bar i:first-child { background: var(--orange); }
.ocard-img { position: relative; aspect-ratio: 16 / 10; background: var(--ink-2); }
.ocard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ocard-dim { position: absolute; inset: 0; background: var(--black); pointer-events: none; }
.ocard-cap { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 0.55rem; white-space: nowrap; font-size: 0.625rem; }
.ocard-cap b { color: var(--cream); font-weight: 700; }
.ocard:hover .ocard-in, .ocard:focus-visible .ocard-in { transform: translateY(-0.7rem); border-color: var(--orange); box-shadow: 0 1.4rem 3.2rem rgba(0,0,0,0.55), 0 0 2.2rem rgba(255,87,34,0.35); }

/* ── BANNER D · «Vitrina»: titular gigante con trabajo real adentro (GSAP) ─ */
html[data-banner="d"] .hero { height: 175vh; height: 175svh; }
html[data-banner="d"] .hero-pin { position: sticky; top: 0; justify-content: flex-start; padding: calc(var(--nav-h) + clamp(0.4rem, 2.2svh, 1.8rem)) 0 clamp(3.6rem, 8.5svh, 5.6rem); }
html[data-banner="d"] .hero-content.wrap { max-width: none; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
html[data-banner="d"] .hero-title { font-size: 13vw; line-height: 0.84; letter-spacing: -0.04em; margin: 0; white-space: nowrap; }
html.vit-on .hero-title em { visibility: hidden; }
html[data-banner="d"] .hero-row { justify-content: space-between; align-items: flex-end; }
html[data-banner="d"] .hero .lead { max-width: 44ch; }
html[data-banner="d"] .hero-cta .btn-ghost { background: rgba(5, 5, 5, 0.6); }
.hero-d { isolation: isolate; overflow: hidden; background: #000; pointer-events: none; }
.vit-wall { position: absolute; left: -12%; right: -12%; top: -24%; bottom: -24%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.8vw; padding-inline: 0.8vw; background: linear-gradient(135deg, var(--orange), var(--deep)); transform: rotate(-9deg) scale(1.3); transform-origin: 50% 50%; }
.vit-strip { display: flex; flex-direction: column; animation: vitUp 90s linear infinite; will-change: transform; }
.vit-col:nth-child(even) .vit-strip { animation-direction: reverse; animation-duration: 108s; }
.vit-col:nth-child(3n) .vit-strip { animation-duration: 76s; }
.vit-strip img { display: block; width: 100%; height: auto; }
.hero-d.is-paused .vit-strip { animation-play-state: paused; }
@keyframes vitUp { to { transform: translate3d(0, -50%, 0); } }
.vit-ink { position: absolute; inset: 0; background: #000; mix-blend-mode: multiply; }
.vit-lens { position: absolute; left: 0; top: 0; width: 20vw; height: 20vw; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff 44%, #000 70%); will-change: transform; transform: scale(0); }
.vit-word, .vit-outline { position: absolute; left: 0; top: 0; font-family: var(--display); font-weight: 400; font-style: italic; text-transform: uppercase; white-space: nowrap; }
.vit-word { color: #fff; }
.vit-outline { z-index: 3; color: transparent; -webkit-text-stroke: max(1.5px, 0.011em) var(--orange); }
.vit-mask { display: inline-block; overflow: hidden; padding: 0.1em 0.16em 0.14em 0.04em; margin: -0.1em -0.16em -0.14em -0.04em; }
.vit-ch { display: inline-block; will-change: transform; }

/* ── Teléfono y tablet ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-cta .btn-ghost { background: rgba(5, 5, 5, 0.6); }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .hero-strip { display: none; }
  /* A y C: texto arriba; sol o galaxia abajo */
  html[data-banner="a"] .hero, html[data-banner="c"] .hero { height: 150vh; height: 150svh; }
  html[data-banner="a"] .hero-pin, html[data-banner="c"] .hero-pin { justify-content: flex-start; padding-top: calc(var(--nav-h) + clamp(1.6rem, 7svh, 4rem)); }
  html[data-banner="a"] .hero-content, html[data-banner="c"] .hero-content { padding-top: 0; }
  html[data-banner="a"] .hero-title, html[data-banner="c"] .hero-title { font-size: min(13.2vw, 5.6rem); }
  .hero-a::after, .hero-c::after { background: linear-gradient(180deg, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.6) 40%, transparent 62%); }
  .hero-c-fallback { background: radial-gradient(70vw 34vw at 50% 73%, rgba(255,122,71,0.5), rgba(184,58,26,0.26) 45%, transparent 72%); }
  /* B: la órbita va bajo el texto, en su propia franja */
  html[data-banner="b"] .hero-pin { height: auto; min-height: max(100svh, 38rem); padding-top: calc(var(--nav-h) + clamp(1rem, 4.5svh, 3.5rem)); }
  html[data-banner="b"] .hero-content { order: 1; pointer-events: auto; }
  html[data-banner="b"] .hero-title { font-size: min(13.2vw, 9svh, 5.6rem); }
  html[data-banner="b"] .hero-b { position: relative; inset: auto; order: 2; flex: 1 1 auto; min-height: clamp(14rem, 34svh, 20rem); margin-top: clamp(0.4rem, 1.5svh, 1.2rem); }
  .orbit-sun { width: 110vw; top: 52%; }
  .orbit-dots { width: 130vw; top: 52%; }
  .orbit-hint { display: none; }
  .ocard { width: clamp(8rem, 38vw, 11rem); }
  /* D */
  html[data-banner="d"] .hero { height: 160vh; height: 160svh; }
  html[data-banner="d"] .hero-pin { padding-top: calc(var(--nav-h) + clamp(1.4rem, 6svh, 3.4rem)); padding-bottom: clamp(1.6rem, 5svh, 3rem); }
  html[data-banner="d"] .hero-content.wrap { justify-content: flex-start; gap: clamp(1.1rem, 3.4svh, 2rem); }
  .vit-wall { grid-template-columns: repeat(4, 1fr); gap: 2vw; padding-inline: 2vw; left: -30%; right: -30%; }
  .vit-col:nth-child(n+5) { display: none; }
}
@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .hero-cta { width: 100%; }
}
@media (min-width: 901px) and (max-height: 720px) {
  html[data-banner="a"] .hero-title, html[data-banner="c"] .hero-title { font-size: min(8.7vw, 20svh); }
}
/* Ventanas verticales de escritorio (monitor girado): el banner no se estira a todo el alto */
@media (min-width: 901px) and (max-aspect-ratio: 1/1) {
  .hero-pin { max-height: 118vw; }
}
@media (prefers-reduced-motion: reduce) {
  .vit-strip { animation: none; }
  .vit-lens { transform: translate3d(74vw, 40svh, 0) scale(1); }
}
