/* BH Studios — maqueta de rediseño. Marca: morado #24005C, amarillo #FCC62D, rosado #EB0088, Lato. */
@font-face { font-family: Lato; font-weight: 300; font-display: swap; src: url(/fonts/lato-300-latin.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-display: swap; src: url(/fonts/lato-400-latin.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap; src: url(/fonts/lato-700-latin.woff2) format("woff2"); }

/* Una sola apariencia (oscura) por diseño: el mundo 3D es nocturno. */
:root {
  color-scheme: dark;
  --noche: #07010F; --morado: #24005C; --amarillo: #FCC62D; --rosa: #EB0088; --lila: #CFC3E6;
  --linea: rgba(207, 195, 230, .16);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --m: 20px;            /* margen del marco */
}
* { box-sizing: border-box; }
html, body { background: var(--noche); }
body { margin: 0; color: #fff; font: 300 17px/1.6 Lato, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 3px; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

/* scroll suave (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- escena ---------- */
#escena { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.velo { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(7,1,15,.86) 0%, rgba(7,1,15,.5) 26%, rgba(7,1,15,0) 52%), linear-gradient(to bottom, rgba(7,1,15,.55), rgba(7,1,15,0) 18%); }

/* ---------- marco ---------- */
.marco { position: fixed; inset: var(--m); z-index: 5; pointer-events: none; border: 1px solid var(--linea); }
.marco i { position: absolute; width: 14px; height: 14px; border: 0 solid rgba(255,255,255,.75); }
.marco i:nth-child(1) { left: -1px; top: -1px; border-left-width: 1px; border-top-width: 1px; }
.marco i:nth-child(2) { right: -1px; top: -1px; border-right-width: 1px; border-top-width: 1px; }
.marco i:nth-child(3) { left: -1px; bottom: -1px; border-left-width: 1px; border-bottom-width: 1px; }
.marco i:nth-child(4) { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }

/* ---------- cabecera ---------- */
.cabecera { position: fixed; left: var(--m); right: var(--m); top: var(--m); z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px 14px 14px 26px; }
.cabecera_logo { display: block; line-height: 0; }
.cabecera_logo img { width: 168px; height: auto; display: block; }
.cabecera_nav { margin-left: auto; display: flex; gap: 26px; }
.cabecera_nav a, .idioma, .indice a, .barra, .cap_kicker, .ancla, .version, .cargador_txt { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.cabecera_nav a { text-decoration: none; color: rgba(255,255,255,.82); transition: color .25s; }
.cabecera_nav a:hover { color: var(--amarillo); }
.cabecera_der { display: flex; align-items: center; gap: 18px; }
.idioma { display: flex; gap: 10px; color: rgba(255,255,255,.5); }
.idioma b { color: var(--amarillo); font-weight: 500; }
.idioma a { text-decoration: none; }
.idioma a:hover { color: #fff; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; font: 700 12px/1 Lato, sans-serif; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); transition: background .25s, color .25s, transform .25s; }
.btn--marca { background: var(--amarillo); color: var(--morado); }
.btn--marca span { font-weight: 400; opacity: .8; }
.btn--marca:hover { background: #ffd65c; transform: translateY(-1px); }
.btn--hud { background: rgba(36, 0, 92, .55); color: #fff; box-shadow: inset 0 0 0 1px rgba(207,195,230,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--hud i { width: 7px; height: 7px; background: var(--c, var(--amarillo)); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.btn--hud:hover { background: var(--c, var(--amarillo)); color: var(--morado); }
.btn--hud:hover i { background: var(--morado); }
.btn--sec { background: transparent; }

/* ---------- índice lateral ---------- */
.indice { position: fixed; left: calc(var(--m) + 18px); top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 14px; }
.indice a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255,255,255,.34); transition: color .3s; }
.indice a i { width: 6px; height: 6px; background: #fff; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
.indice a:hover { color: rgba(255,255,255,.8); }
.indice a.on { color: #fff; }
.indice a.on i { opacity: 1; transform: none; background: var(--amarillo); }

/* ---------- barra inferior ---------- */
.barra { position: fixed; left: var(--m); right: var(--m); bottom: var(--m); z-index: 20; height: 46px; display: flex; align-items: stretch; border-top: 1px solid var(--linea); color: rgba(255,255,255,.8); }
.barra_izq { display: flex; align-items: center; gap: 18px; padding: 0 22px; border-right: 1px solid var(--linea); }
.barra_scroll::after { content: "↓"; display: inline-block; margin-left: 8px; animation: baja 1.6s ease-in-out infinite; }
@keyframes baja { 50% { transform: translateY(4px); } }
.barra_cap b { color: var(--amarillo); font-weight: 500; }
.barra_progreso { flex: 1; position: relative; }
.barra_progreso i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, rgba(235,0,136,.28), rgba(252,198,45,.38)); }
.barra_der { display: flex; align-items: center; gap: 10px; padding: 0 22px; border-left: 1px solid var(--linea); text-decoration: none; transition: color .25s; }
.barra_der:hover { color: var(--amarillo); }
/* selector de versión: Avant Garde (esta propuesta) / Legacy (el sitio actual) */
.version { position: fixed; right: calc(var(--m) + 14px); top: calc(var(--m) + 76px); z-index: 20; display: flex; gap: 2px; padding: 3px; font-size: 9.5px; border: 1px solid rgba(165,139,255,.45); border-radius: 999px; background: rgba(7,1,15,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 18px rgba(165,139,255,.18); }
.version_op { display: flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 12px; border-radius: 999px; color: rgba(255,255,255,.66); text-decoration: none; white-space: nowrap; transition: color .25s, background .25s; }
.version_op--on { color: var(--noche); background: linear-gradient(90deg, var(--lila), #FF7AC6); box-shadow: 0 0 14px rgba(255,47,160,.35); }
a.version_op:hover { color: #fff; background: rgba(255,255,255,.09); }

/* ---------- capítulos ---------- */
.cap { position: relative; height: var(--h, 220vh); }
.cap_in { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 28px calc(var(--m) + 46px + 5.5vh);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, visibility 0s linear .45s; }
.cap.on .cap_in { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .6s ease .1s, visibility 0s; }
.cap_kicker { margin-bottom: 16px; color: var(--amarillo); }
.cap_in::before { content: ""; position: absolute; left: 50%; bottom: 0; width: min(1100px, 100%); height: 135%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(60% 62% at 50% 62%, rgba(7,1,15,.72), rgba(7,1,15,.38) 55%, rgba(7,1,15,0) 100%); }
.titulo, .bajada, .cap_kicker { text-shadow: 0 1px 14px rgba(7,1,15,.85); }
.cuenta { margin-left: 14px; color: rgba(255,255,255,.5); }
.cuenta b { color: #fff; font-weight: 500; }
.titulo { max-width: 16.5em; font-size: clamp(27px, 3.5vw, 50px); line-height: 1.08; font-weight: 300; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.titulo b { font-weight: 700; color: var(--amarillo); }
.titulo b.rosa { color: #ff3fa8; }
.titulo--xl { font-size: clamp(31px, 4.6vw, 68px); }
.bajada { max-width: 34em; margin-top: 16px; font-size: clamp(15px, 1.15vw, 17px); color: rgba(237, 231, 246, .86); text-wrap: pretty; }
.bajada b { font-weight: 700; color: #fff; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* título letra a letra */
.titulo .p { display: inline-block; white-space: nowrap; }
.titulo .l { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(.18em); transition: opacity .5s ease, filter .5s ease, transform .5s ease; transition-delay: 0s; }
.cap.on .titulo .l, .paso.on .titulo .l { opacity: 1; filter: none; transform: none; transition-delay: calc(var(--i) * 16ms + 120ms); }

/* pasos (servicios, proyectos, productos) */
.pasos { display: grid; justify-items: center; }
.paso { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.paso.on { opacity: 1; visibility: visible; transition: opacity .5s ease .15s, visibility 0s; }
.paso .titulo { color: var(--c, #fff); font-weight: 700; font-size: clamp(32px, 4.4vw, 64px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.chips li { padding: 7px 13px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #fff) 55%, transparent); background: rgba(7,1,15,.45); }

/* sellos y clientes (estudio) */
.sellos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 34px; margin-top: 26px; }
.sellos li { display: flex; align-items: center; gap: 12px; font: 500 10.5px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-align: left; color: rgba(255,255,255,.78); }
.sellos img { display: block; height: 40px; width: auto; }
.sellos .sello_wr { height: 18px; }
.sello_num { font: 700 30px/1 Lato, sans-serif; letter-spacing: 0; color: var(--amarillo); }
.clientes { width: min(880px, 100%); margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.clientes_cinta { display: flex; align-items: center; gap: 46px; width: max-content; animation: cinta 125s linear infinite; }
.clientes_cinta img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .62; }
.clientes_cinta img.alto { height: 34px; }
.clientes_cinta img.vertical { height: 44px; }
.clientes_copia { display: contents; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* contacto (último capítulo) */
.contacto { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 26px; font-size: 15px; color: rgba(237,231,246,.9); }
.contacto a { text-decoration: none; border-bottom: 1px solid rgba(252,198,45,.5); }
.contacto a:hover { color: var(--amarillo); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 16px; font: 500 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.legal a { text-decoration: none; }
.legal a:hover { color: #fff; }

/* ---------- etiquetas ancladas ---------- */
.anclas { position: fixed; inset: 0; z-index: 11; pointer-events: none; overflow: hidden; }
.ancla { position: absolute; left: 0; top: 0; padding: 6px 10px 6px 18px; white-space: nowrap; color: #fff; background: rgba(7,1,15,.5); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #FCC62D) 60%, transparent); opacity: 0; will-change: transform, opacity; }
.ancla::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--c, #FCC62D); }
.ancla.activa { background: var(--c, #FCC62D); color: var(--noche); }
.ancla.activa::before { background: var(--noche); }
/* etiquetas con logo (Familia Data): placa clara porque los logos están hechos para fondo blanco */
.ancla--logo { padding: 8px 12px; line-height: 0; background: #F6F3FB; box-shadow: 0 6px 22px rgba(7,1,15,.45), inset 0 0 0 1px rgba(255,255,255,.6); }
.ancla--logo::before { display: none; }
.ancla--logo img { display: block; height: 24px; width: auto; }
.ancla--logo:not(.activa) { padding: 6px 9px; }
.ancla--logo:not(.activa) img { height: 17px; }
.ancla--logo.activa { background: #fff; box-shadow: 0 0 0 2px var(--c), 0 8px 30px color-mix(in srgb, var(--c) 45%, transparent); }
.paso_logo { display: block; height: 30px; width: auto; margin: 0 auto 12px; padding: 7px 12px; background: #F6F3FB; box-sizing: content-box; }
@media (max-width: 767px) { .ancla--logo img { height: 17px; } .ancla--logo { padding: 6px 9px; } .paso_logo { height: 22px; } }

/* ---------- póster y cargador ----------
   La página es legible desde el primer pintado: el héroe se ve sobre una imagen fija del mundo 3D (póster).
   El 3D se carga después (clase pre3d hasta entonces) y aparece encima con un fundido; el cargador es una
   píldora discreta que no tapa nada. */
.poster { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--noche) url(assets/poster-escritorio.jpg) center / cover no-repeat; transition: opacity 1.4s ease; }
@media (max-aspect-ratio: 1/1) { .poster { background-image: url(assets/poster-movil.jpg); } }
.escena-lista .poster { opacity: 0; }
#escena { transition: opacity 1.4s ease; }
.con-3d:not(.escena-lista) #escena { opacity: 0; }
.pre3d #idea .cap_in { opacity: 1; visibility: visible; pointer-events: auto; }
.sin-transicion .titulo .l, .sin-transicion .cap_in { transition: none !important; }
#cargador { position: fixed; left: 50%; bottom: calc(var(--m) + 62px); z-index: 30; display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 10px; transform: translateX(-50%);
  border-radius: 999px; background: rgba(7,1,15,.72); box-shadow: inset 0 0 0 1px rgba(207,195,230,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .9s ease, visibility 0s linear .9s; pointer-events: none; }
#cargador img { width: 22px; height: 22px; }
.pre3d #cargador { opacity: 0; visibility: hidden; }
#cargador.fuera { opacity: 0; visibility: hidden; }
.cargador_puntos { display: none; }
.cargador_puntos i { width: 6px; height: 6px; background: rgba(207,195,230,.22); transition: background .2s; }
.cargador_puntos i.on { background: var(--amarillo); }
.cargador_txt { display: flex; justify-content: space-between; gap: 14px; color: rgba(207,195,230,.8); font-size: 9.5px; white-space: nowrap; }

/* ---------- móvil ---------- */
@media (max-width: 991px) {
  .cabecera_nav { display: none; }
  .cabecera_der { margin-left: auto; }
  .indice a { font-size: 0; gap: 0; min-width: 24px; min-height: 24px; justify-content: center; }
  .idioma { gap: 2px; }
  .idioma a, .idioma b { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 32px; }
  .indice a i { opacity: .35; transform: none; }
}
@media (max-width: 767px) {
  :root { --m: 10px; }
  .cabecera { padding: 10px 10px 10px 14px; gap: 12px; }
  .cabecera_logo img { width: 124px; }
  .btn--marca span { display: none; }
  .btn { min-height: 40px; padding: 0 14px; font-size: 11px; }
  .indice { left: calc(var(--m) + 2px); gap: 2px; }
  .cap_in { padding: 0 20px calc(var(--m) + 46px + 3vh); }
  .barra_scroll, .barra_der svg { display: none; }
  .barra_izq, .barra_der { padding: 0 14px; }
  .sellos { gap: 10px 20px; }
  .sellos img { height: 30px; }
  .sellos .sello_wr { height: 14px; }
  .sello_num { font-size: 24px; }
  .clientes { margin-top: 18px; }
  .version { top: calc(var(--m) + 62px); font-size: 8.5px; }
  .version_op { min-height: 24px; padding: 0 9px; }
  .ancla { font-size: 9px; }
}

/* ---------- más sobre BH: equipo, preguntas frecuentes y pie (flujo normal, por encima del mundo 3D) ---------- */
.mas { position: relative; z-index: 15; padding: 14vh 0 0; background: linear-gradient(to bottom, rgba(7,1,15,0), var(--noche) 14vh); }
.mas_bloque { width: min(1120px, calc(100% - 48px)); margin: 0 auto 13vh; scroll-margin-top: 110px; }
.cabecera, .indice, .marco { transition: background .4s, opacity .4s, box-shadow .4s; }
.en-mas .cabecera { top: 0; left: 0; right: 0; padding-top: calc(14px + var(--m)); padding-left: calc(26px + var(--m)); padding-right: calc(14px + var(--m)); background: rgba(7,1,15,.84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--linea); }
.en-mas .indice, .en-mas .marco, .en-mas .version { opacity: 0; pointer-events: none; }
.mas_kicker { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amarillo); }
.mas_titulo { margin-top: 14px; font: 300 clamp(28px, 3.4vw, 48px)/1.1 Lato, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.equipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 22px; margin-top: 40px; }
.equipo li { display: flex; flex-direction: column; gap: 4px; }
.equipo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 10px; border-radius: 14px; background: #1a0d2e; filter: grayscale(.25); transition: filter .4s, transform .4s, box-shadow .4s; }
.equipo li:hover img { filter: none; transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255,47,160,.18), 0 0 0 1px rgba(165,139,255,.35); }
.equipo b { font-weight: 700; font-size: 16px; }
.equipo span { font: 500 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(207,195,230,.7); }
.faq { margin-top: 34px; border-top: 1px solid var(--linea); }
.faq_item { border-bottom: 1px solid var(--linea); }
.faq_item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; }
.faq_item summary::-webkit-details-marker { display: none; }
.faq_item summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 300 22px/1 Lato, sans-serif; color: var(--amarillo); box-shadow: inset 0 0 0 1px rgba(252,198,45,.4); transition: transform .3s, background .3s, color .3s; }
.faq_item[open] summary::after { transform: rotate(45deg); background: var(--amarillo); color: var(--noche); }
.faq_item summary:hover h3 { color: #fff; }
.faq_item h3 { margin: 0; font: 400 clamp(17px, 1.5vw, 21px)/1.35 Lato, sans-serif; color: rgba(237,231,246,.9); transition: color .25s; }
.faq_item p { max-width: 46em; padding: 0 4px 24px; color: rgba(237,231,246,.78); font-size: 16px; }
.pie { position: relative; padding: 9vh max(24px, calc((100% - 1120px) / 2)) calc(46px + var(--m) + 24px); background: radial-gradient(70% 90% at 50% 0%, rgba(36,0,92,.75), var(--noche) 70%); border-top: 1px solid var(--linea); }
.pie_cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 7vh; margin-bottom: 6vh; border-bottom: 1px solid var(--linea); }
.pie_frase { max-width: 15em; font: 300 clamp(28px, 4vw, 56px)/1.08 Lato, sans-serif; text-transform: uppercase; }
.pie_frase b { font-weight: 700; color: #ff3fa8; }
.pie_cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px 40px; }
.pie_titulo { margin: 0 0 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amarillo); }
.pie_col ul + .pie_titulo { margin-top: 26px; }
.pie_col li { margin-bottom: 9px; font-size: 15px; }
.pie_col a { text-decoration: none; color: rgba(237,231,246,.85); transition: color .2s; }
.pie_col a:hover { color: var(--amarillo); }
.pie_base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 7vh; padding-top: 26px; border-top: 1px solid var(--linea); }
.pie_copy { font: 500 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.pie_sello img { display: block; width: 210px; height: auto; }
@media (max-width: 767px) {
  .mas_bloque { width: calc(100% - 40px); }
  .equipo { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .pie { padding-left: 20px; padding-right: 20px; }
}

/* ---------- formulario "Conversemos": una frase que se completa sobre el mundo 3D ---------- */
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.form { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.form::backdrop { background: radial-gradient(80% 70% at 50% 40%, rgba(36,0,92,.35), rgba(7,1,15,.82)); -webkit-backdrop-filter: blur(7px) saturate(1.25); backdrop-filter: blur(7px) saturate(1.25); }
.form[open] { display: flex; align-items: center; justify-content: center; }
.form_panel { position: relative; width: min(1000px, calc(100% - 40px)); margin: 6vh auto; padding: 40px 54px 44px; border-radius: 24px;
  background: linear-gradient(155deg, rgba(42,8,98,.62), rgba(7,1,15,.84) 62%); box-shadow: 0 40px 140px rgba(255,47,160,.16), 0 0 0 1px rgba(165,139,255,.16), inset 0 0 80px rgba(165,139,255,.07);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.form[open] .form_panel { animation: form_entra .8s cubic-bezier(.2,.85,.2,1) both; }
@keyframes form_entra { from { opacity: 0; transform: perspective(1100px) rotateX(14deg) translateY(40px) scale(.95); filter: blur(10px); } }
/* filo de neón que gira, con los colores de los cuatro servicios */
.form_panel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--giro), #FF2FA0, #FCC62D, #7CF4C8, #A58BFF, #FF2FA0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: form_gira 7s linear infinite; opacity: .85; }
@keyframes form_gira { to { --giro: 360deg; } }
/* barrido de líneas, muy tenue */
.form_panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .05;
  background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px); }
.form_cerrar { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; font-size: 15px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(207,195,230,.22); transition: background .25s, color .25s, transform .25s; }
.form_cerrar:hover { color: var(--noche); background: var(--amarillo); transform: rotate(90deg); }
.form_cabeza { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 52px 26px 0; }
.form_titulo, .form_senal span, .form_legal, .chip_f, .form_error, .form_frase small, .form_nota { font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.form_titulo { font-size: 11px; color: var(--amarillo); }
.form_senal { display: flex; align-items: flex-end; gap: 4px; height: 18px; }
.form_senal span { margin-right: 8px; font-size: 9.5px; color: rgba(207,195,230,.6); }
.form_senal i { width: 5px; background: rgba(207,195,230,.18); transition: background .35s, box-shadow .35s; }
.form_senal i:nth-of-type(1) { height: 30%; } .form_senal i:nth-of-type(2) { height: 47%; } .form_senal i:nth-of-type(3) { height: 64%; } .form_senal i:nth-of-type(4) { height: 82%; } .form_senal i:nth-of-type(5) { height: 100%; }
.form_senal i.on { background: linear-gradient(#FCC62D, #FF2FA0); box-shadow: 0 0 10px rgba(255,47,160,.6); }
/* la frase */
.form_frase p { margin: 0 0 .35em; font: 300 clamp(21px, 2.55vw, 34px)/1.75 Lato, sans-serif; color: rgba(237,231,246,.92); text-wrap: pretty; }
.campo { display: inline; }
.campo input, .campo textarea { font: inherit; line-height: 1.3; color: var(--amarillo); background: transparent; border: 0; border-bottom: 1.5px dashed rgba(207,195,230,.42); border-radius: 0; padding: 0 .12em .04em; margin: 0 .08em; outline: none; min-width: 3.5ch; max-width: 100%; vertical-align: baseline; transition: border-color .25s, box-shadow .25s, color .25s, width .2s; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(207,195,230,.36); }
.campo input:focus, .campo textarea:focus { color: #fff; border-bottom: 1.5px solid #FF2FA0; box-shadow: 0 10px 16px -12px #FF2FA0; }
.campo .mal { border-bottom-color: #FF5577; animation: form_tiembla .4s; }
@keyframes form_tiembla { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.campo--largo textarea { display: block; width: 100%; min-height: 1.4em; margin: .1em 0 .2em; resize: none; overflow: hidden; }
.form_frase small { margin-left: .6em; font-size: 10px; color: rgba(207,195,230,.5); vertical-align: middle; }
/* servicios: fichas con el color de cada foco */
.form_chips { display: inline; }
.chip_f { position: relative; display: inline-flex; align-items: center; gap: .55em; margin: 0 .15em .3em; padding: .55em 1em; vertical-align: middle; font-size: 11.5px; line-height: 1; color: #fff; cursor: pointer; border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 65%, transparent); background: rgba(7,1,15,.4); transition: background .25s, color .25s, box-shadow .25s, transform .2s; }
.chip_f::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.chip_f input { position: absolute; opacity: 0; pointer-events: none; }
.chip_f:hover { transform: translateY(-1px); }
.chip_f:has(input:checked) { color: var(--noche); background: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 70%, transparent); }
.chip_f:has(input:checked)::before { background: var(--noche); box-shadow: none; }
.chip_f:has(input:focus-visible) { outline: 2px solid var(--amarillo); outline-offset: 3px; }
.form_trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form_pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.form_enviar { min-height: 52px; padding: 0 30px; font-size: 13px; border: 0; }
.form_frase p.form_legal { margin: 0; font-size: 10px; line-height: 1.6; color: rgba(207,195,230,.6); }
.form_legal a { color: rgba(255,255,255,.85); }
.form_frase p.form_error { margin: 16px 0 0; font-size: 10.5px; line-height: 1.6; color: #FF7A9A; }
/* envío: la frase se pliega y una señal sube hacia el asterisco */
.form_rayo { position: absolute; left: 50%; bottom: 50%; width: 3px; height: 0; margin-left: -1.5px; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(252,198,45,0), #FCC62D 40%, #fff); box-shadow: 0 0 18px #FCC62D, 0 0 40px #FF2FA0; }
.form_panel.enviando .form_frase { animation: form_pliega .6s cubic-bezier(.6,0,.4,1) forwards; }
.form_panel.enviando .form_rayo { animation: form_sube 1s .35s cubic-bezier(.3,0,.2,1) forwards; }
@keyframes form_pliega { to { opacity: 0; transform: scaleY(.04); filter: blur(6px); } }
@keyframes form_sube { 0% { opacity: 1; height: 0; } 60% { opacity: 1; height: 120vh; } 100% { opacity: 0; height: 120vh; transform: translateY(-40vh); } }
.form_ok { padding: 10px 0 6px; text-align: center; }
.form_ok_logo { width: 74px; height: 70px; margin: 0 auto 18px; display: block; filter: drop-shadow(0 0 18px rgba(252,198,45,.7)); animation: form_late 2.4s ease-in-out infinite; }
@keyframes form_late { 50% { transform: rotate(20deg) scale(1.08); filter: drop-shadow(0 0 30px rgba(255,47,160,.8)); } }
.form_panel.listo .form_ok > * { animation: form_aparece .7s both; }
.form_panel.listo .form_ok > :nth-child(2) { animation-delay: .1s; } .form_panel.listo .form_ok > :nth-child(3) { animation-delay: .2s; } .form_panel.listo .form_ok > :nth-child(n+4) { animation-delay: .3s; }
@keyframes form_aparece { from { opacity: 0; transform: translateY(14px); } }
.form_ok h2 { font: 700 clamp(30px, 4vw, 54px)/1.1 Lato, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.form_ok p { margin: 14px auto 0; max-width: 32em; font-size: 18px; color: rgba(237,231,246,.88); }
.form_ok b { color: var(--amarillo); font-weight: 700; }
.form_nota { font-size: 10px !important; color: var(--lila) !important; opacity: .7; }
.form_ok .btn { margin-top: 26px; border: 0; }
@media (max-width: 767px) {
  .form[open] { display: block; }
  .form_panel { width: 100%; min-height: 100%; margin: 0; padding: 66px 22px 32px; border-radius: 0; }
  .form_cabeza { margin: 0 0 22px; }
  .form_senal span { display: none; }
  .form_frase p { font-size: 21px; line-height: 1.85; }
  .chip_f { font-size: 10.5px; padding: .6em .9em; }
  .form_enviar { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .form_panel::before, .form_ok_logo, .form[open] .form_panel { animation: none; } }

/* ---------- sin 3D (sin WebGL o con movimiento reducido): página normal, todo legible ---------- */
.sin-3d #escena, .sin-3d .velo, .sin-3d .anclas, .sin-3d #cargador, .sin-3d .barra_progreso { display: none; }
.sin-3d .poster { opacity: .5; }   /* sin 3D: la imagen fija del mundo queda de fondo, atenuada para leer bien */
.sin-3d body { background: var(--noche); }
.sin-3d .cap { height: auto; padding: 22vh 0 6vh; }
.sin-3d .cap_in { position: static; opacity: 1; visibility: visible; pointer-events: auto; padding-bottom: 0; }
.sin-3d .titulo .l { opacity: 1; filter: none; transform: none; }
.sin-3d .pasos { gap: 9vh; }
.sin-3d .paso { grid-area: auto; opacity: 1; visibility: visible; }
.sin-3d .cuenta { display: none; }
.sin-3d .mas { background: transparent; }
@media (prefers-reduced-motion: reduce) { .clientes_cinta, .barra_scroll::after { animation: none; } }
