/* BRENTRAK OS — la puerta con Face ID (CLAUD22). Público: sin datos. */
.puerta {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 30px; max-width: 320px; padding: 0 20px; text-align: center;
  animation: puertaEntra 480ms 200ms cubic-bezier(.22,.68,.28,1) both;
}
.puerta[hidden] { display: none; }
@keyframes puertaEntra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.puerta-txt { font-size: 17px; font-weight: 600; color: #EAF1F9; }
.puerta-sub { font-size: 13.5px; line-height: 1.45; color: #93A4BA; min-height: 20px; }
.puerta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 16px; border: 1px solid rgba(0,176,240,.45);
  background: linear-gradient(135deg, #0B49D0, #0080F0 55%, #00B0F0);
  color: #fff; font: 600 15.5px/1 var(--font-ui, system-ui);
  box-shadow: 0 10px 34px rgba(0,128,240,.35); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.puerta-btn:active { transform: scale(.97); }
.puerta-btn[disabled] { opacity: .6; }
.puerta-btn svg { width: 22px; height: 22px; }
.puerta-enlace { color: #00B0F0; font-weight: 600; }
/* Con la puerta abierta, la barra de carga no tiene sentido: no está cargando. */
body.con-puerta .splash-pie { display: none; }
body.con-puerta .splash-saludo { display: none; }
/* Al refrescar dentro de la misma visita, la entrada no se repite entera:
   aparece ya compuesta y se va en cuanto el panel está pintado. */
html.splash-rapido .splash-b, html.splash-rapido .splash-word, html.splash-rapido .splash-saludo { animation: none; }
html.splash-rapido .splash-b { transform: none; }
html.splash-rapido .splash-word { max-width: 460px; padding-left: 20px; clip-path: none; opacity: 1; }
html.splash-rapido .splash-saludo { opacity: 1; }
/* La puerta encima del panel (sesión vencida con la app abierta). */
.puerta-capa {
  position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center;
  background: rgba(4,8,13,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.puerta-capa .puerta { margin-top: 0; padding: 26px 22px; border-radius: 22px; background: #0A121D; border: 1px solid #1A2638; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
/* Bloqueo al volver a la app: tapa completa, sin transparencia. */
.puerta-capa--bloqueo { background: #04080D; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* JARVIS (CLAUD24) — inicio dentro de la misma app. La puerta de Face ID (z 9998) siempre queda encima. */
.jarvis-capa { position: fixed; inset: 0; z-index: 9000; background: #020609; }
.jarvis-capa[hidden] { display: none; }
.jarvis-capa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #020609; }
.con-puerta .jarvis-capa { visibility: hidden; }
.jarvis-a-panel { position: absolute; z-index: 2; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom));
  font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; color: #F3F8FC; background: rgba(7,21,33,.82);
  border: 1px solid rgba(37,184,255,.45); border-radius: 999px; padding: 9px 12px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.jarvis-a-panel:hover, .jarvis-a-panel:focus-visible { border-color: #25B8FF; outline: none; box-shadow: 0 0 0 3px rgba(0,140,255,.25); }
.jarvis-boton { position: fixed; z-index: 8000; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 Inter, system-ui, sans-serif; color: #F3F8FC;
  background: rgba(7,21,33,.92); border: 1px solid rgba(37,184,255,.5); border-radius: 999px; padding: 10px 16px 10px 10px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.jarvis-boton[hidden] { display: none; }
.jarvis-boton-orbe { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #BFEAFF, #25B8FF 45%, #008CFF 70%, #04223A); box-shadow: 0 0 10px rgba(37,184,255,.7); }
.con-puerta .jarvis-boton { display: none; }

/* CLAUD25: JARVIS trae su propio acceso al Panel en la barra lateral; el botón flotante queda solo como respaldo. */
.jarvis-con-menu .jarvis-a-panel { display: none; }

/* CLAUD27 · aviso de versión nueva (sobre JARVIS) */
.aviso-version{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:2147483000;display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;max-width:calc(100vw - 32px);padding:12px 16px;border-radius:14px;background:rgba(6,20,38,.94);border:1px solid rgba(80,190,255,.55);box-shadow:0 10px 40px rgba(0,0,0,.5),0 0 24px rgba(40,160,255,.25);color:#dff4ff;font:500 14px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;backdrop-filter:blur(10px)}
.aviso-version[hidden]{display:none}
.aviso-version button{border:0;border-radius:10px;padding:9px 14px;font:600 14px system-ui,-apple-system,sans-serif;cursor:pointer;background:linear-gradient(135deg,#1aa7ff,#38e0ff);color:#021526}
.aviso-version button.aviso-cerrar{background:transparent;color:#9fcbe6;border:1px solid rgba(120,190,230,.35)}
.aviso-version button:disabled{opacity:.7;cursor:wait}

/* CLAUD29 · en el teléfono el botón JARVIS va arriba de la barra inferior del panel (antes la tapaba) */
@media (max-width: 760px) {
  .jarvis-boton { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px); right: max(12px, env(safe-area-inset-right)); padding: 8px 13px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
}

/* ═══════ CLAUD31 · entrada con la B de Grupo Brentrak como protagonista ═══════
   La B vectorial en azul eléctrico, grande y al centro, con aura de energía, brillo que
   la recorre, destello y ondas. La palabra BRENTRAK aparece debajo. */
#splash { background: radial-gradient(900px 620px at 50% 40%, rgba(0, 110, 255, .20), transparent 66%), radial-gradient(420px 300px at 50% 40%, rgba(40, 190, 255, .10), transparent 70%), #03070d; }
.splash-lockup { flex-direction: column; gap: 26px; }
.splash-marca { position: relative; width: 168px; height: 168px; display: grid; place-items: center; animation: marcaEntra 1100ms cubic-bezier(.2, .8, .2, 1) both; }
.splash-marca .splash-b { position: relative; z-index: 2; width: 148px; height: 148px; animation: none; transform: none; overflow: visible; filter: drop-shadow(0 10px 40px rgba(0, 110, 255, .55)); }
.splash-marca i { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; }
.splash-marca .aura-rayos { width: 440px; height: 440px; margin: -220px 0 0 -220px; background: repeating-conic-gradient(from 0deg, rgba(40, 150, 255, 0) 0deg 7deg, rgba(70, 180, 255, .13) 8deg 9deg, rgba(40, 150, 255, 0) 10deg 18deg); -webkit-mask: radial-gradient(circle, transparent 22%, #000 36%, transparent 70%); mask: radial-gradient(circle, transparent 22%, #000 36%, transparent 70%); animation: auraGiro 28s linear infinite; }
.splash-marca .aura-pulso { width: 320px; height: 320px; margin: -160px 0 0 -160px; background: radial-gradient(circle, rgba(30, 130, 255, .42) 0%, rgba(20, 90, 220, .14) 34%, transparent 64%); animation: auraPulso 3.4s ease-in-out infinite; }
.splash-marca .aura-onda { width: 170px; height: 170px; margin: -85px 0 0 -85px; border: 1.5px solid rgba(90, 190, 255, .55); animation: auraOnda 3.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.splash-marca .aura-onda.o2 { animation-delay: 1.7s; }
.splash-word { max-width: none !important; padding-left: 0 !important; clip-path: none !important; font-size: 30px; letter-spacing: .22em; animation: palabraSube 900ms 500ms cubic-bezier(.2, .8, .2, 1) both !important; text-shadow: 0 0 24px rgba(40, 150, 255, .35); }
.splash-word span { color: #3cbcff; }
@keyframes marcaEntra { 0% { opacity: 0; transform: scale(.72); filter: blur(10px); } 60% { opacity: 1; filter: none; } 100% { transform: scale(1); } }
@keyframes palabraSube { from { opacity: 0; transform: translateY(12px); letter-spacing: .5em; } to { opacity: 1; transform: none; letter-spacing: .22em; } }
@keyframes auraGiro { to { transform: rotate(360deg); } }
@keyframes auraPulso { 0%, 100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes auraOnda { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.brk-b .b-barrido rect { animation: bBarrido 5.2s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes bBarrido { 0%, 42% { transform: translateX(0); } 78%, 100% { transform: translateX(430px); } }
.brk-b .b-chispa { transform-box: fill-box; transform-origin: center; animation: bChispa 5.2s ease-in-out infinite; }
@keyframes bChispa { 0%, 30%, 100% { opacity: .15; transform: scale(.5) rotate(0deg); } 48% { opacity: 1; transform: scale(1.2) rotate(45deg); } 62% { opacity: .5; transform: scale(.8) rotate(80deg); } }
.brk-b .b-halo { animation: bHalo 3.6s ease-in-out infinite; }
@keyframes bHalo { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
.puerta { margin-top: 8px; }
.puerta-btn { background: linear-gradient(135deg, #0a3fe0, #0a7bff 55%, #1fb6ff); box-shadow: 0 12px 40px rgba(0, 110, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
html.splash-rapido .splash-marca, html.splash-rapido .splash-word { animation: none !important; opacity: 1; }
@media (max-width: 480px) {
  .splash-marca { width: 140px; height: 140px; }
  .splash-marca .splash-b { width: 124px; height: 124px; }
  .splash-word { font-size: 24px; letter-spacing: .18em; }
}
@media (prefers-reduced-motion: reduce) { .splash-marca, .splash-marca i, .brk-b .b-barrido rect, .brk-b .b-chispa, .brk-b .b-halo { animation: none !important; } }

html, body { overscroll-behavior-x: none; }

/* CGPT49: silueta vectorial nítida; la energía vive detrás, no sobre sus bordes.
   No cambia la B ni rasteriza el SVG. Esta sección debe ir DESPUÉS de CLAUD31. */
#splash .splash-marca { width: 220px; height: 220px; animation: marcaNitida .65s ease-out both; filter: none; transform: none; isolation: isolate; }
#splash .splash-marca .splash-b { width: 208px; height: 208px; filter: none; transform: none; shape-rendering: geometricPrecision; }
#splash .splash-marca .b-halo { animation: none; opacity: .18; }
#splash .splash-marca .aura-pulso { opacity: .5; background: radial-gradient(circle, rgba(30,130,255,.22), transparent 62%); }
#splash .splash-marca .aura-onda { border-width: 1px; border-color: rgba(90,190,255,.3); }
#splash .splash-word { text-shadow: none; font-weight: 700; }
#splash .splash-marca .b-chispa { animation-iteration-count: 1; }
#splash .splash-marca .b-barrido rect { animation-iteration-count: 1; }
@keyframes marcaNitida { from { opacity: 0; } to { opacity: 1; } }
html.splash-rapido #splash .splash-marca,
html.splash-rapido #splash .splash-word,
html.splash-rapido #splash .splash-marca i,
html.splash-rapido #splash .brk-b * { animation: none !important; }
html.splash-rapido #splash .splash-marca, html.splash-rapido #splash .splash-word { opacity: 1; }
html.splash-rapido #splash .b-halo { opacity: .18; }
@media (max-width: 480px) {
  #splash .splash-lockup { gap: 18px; }
  #splash .splash-marca { width: 180px; height: 180px; }
  #splash .splash-marca .splash-b { width: 168px; height: 168px; }
  #splash .splash-word { font-size: clamp(18px, 5.3vw, 24px); letter-spacing: .14em; }
}
@media (max-height: 600px) {
  #splash .splash-marca { width: 112px; height: 112px; }
  #splash .splash-marca .splash-b { width: 104px; height: 104px; }
  #splash .splash-lockup { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #splash .splash-marca, #splash .splash-word, #splash .splash-saludo,
  #splash .splash-marca i, #splash .brk-b *, #splash .puerta { animation: none !important; transition: none !important; }
  #splash .splash-word, #splash .splash-saludo, #splash .splash-marca { opacity: 1; transform: none; }
}

/* ═══════ CLAUD40 · entrada con ¡bum! ═══════
   Velocidad luz hacia la B (lienzo), destello azul, onda expansiva doble, la pantalla se sacude
   y la B cae con impacto; después BRENTRAK OS sube y aparece la puerta. Al refrescar: sin película.
   La B termina nítida (sin filtros sobre sus bordes, como pidió CGPT49). */
.splash-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#splash .splash-escena, #splash .splash-pie { position: relative; z-index: 2; }
#splash .splash-pie { position: absolute; }
.splash-destello { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 42%, #fff 0%, rgba(200, 235, 255, .95) 18%, rgba(30, 140, 255, .55) 45%, rgba(0, 80, 220, 0) 75%);
  animation: brkDestello .55s ease-out .66s 1 forwards; }
@keyframes brkDestello { 0% { opacity: 0; } 16% { opacity: 1; } 100% { opacity: 0; } }
.splash-choque { position: absolute; z-index: 1; left: 50%; top: 42%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; opacity: 0; pointer-events: none;
  border: 3px solid rgba(220, 245, 255, .95); box-shadow: 0 0 34px 8px rgba(30, 150, 255, .6), inset 0 0 30px 6px rgba(30, 150, 255, .45);
  animation: brkChoque 1.05s cubic-bezier(.1, .7, .2, 1) .7s 1 forwards; }
.splash-choque.c2 { border-color: rgba(40, 170, 255, .9); animation-delay: .82s; animation-duration: 1.3s; }
@keyframes brkChoque { 0% { opacity: 1; transform: scale(.1); border-width: 9px; } 100% { opacity: 0; transform: scale(7); border-width: 1px; } }
#splash.splash-bum { animation: brkSacude .44s cubic-bezier(.36, .07, .19, .97) .7s 1 both; }
@keyframes brkSacude { 0%, 100% { transform: none; } 12% { transform: translate(-7px, 5px) rotate(-.4deg); } 28% { transform: translate(6px, -6px) rotate(.35deg); } 45% { transform: translate(-4px, 3px); } 62% { transform: translate(3px, -2px); } 80% { transform: translate(-1px, 1px); } }
#splash.splash-bum .splash-marca { animation: brkGolpe .72s cubic-bezier(.2, 1.35, .35, 1) .7s both; }
@keyframes brkGolpe {
  0% { opacity: 0; transform: scale(3.2) rotate(-8deg); filter: blur(16px) brightness(2.4); }
  42% { opacity: 1; transform: scale(.9) rotate(1deg); filter: blur(0) brightness(1.5); }
  72% { transform: scale(1.04); filter: brightness(1.1); }
  100% { opacity: 1; transform: none; filter: none; } }
#splash.splash-bum .splash-word { animation: brkPalabra .9s cubic-bezier(.2, .8, .2, 1) 1.05s both !important; }
@keyframes brkPalabra { from { opacity: 0; transform: translateY(16px); letter-spacing: .6em; filter: blur(6px); } to { opacity: 1; transform: none; letter-spacing: .22em; filter: none; } }
#splash.splash-bum .puerta { animation: puertaEntra .55s cubic-bezier(.22, .68, .28, 1) 1.4s both; }
#splash.splash-bum .puerta-btn { position: relative; overflow: hidden; }
#splash .puerta-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%) 200% 0 / 250% 100% no-repeat; animation: brkReflejo 3.2s ease-in-out 2s infinite; pointer-events: none; }
#splash .puerta-btn { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .2s ease; }
#splash .puerta-btn:hover { box-shadow: 0 14px 48px rgba(0, 130, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
@keyframes brkReflejo { 0%, 55% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
@media (max-width: 480px) { .splash-choque { top: 40%; } }
@media (prefers-reduced-motion: reduce) { .splash-lienzo, .splash-destello, .splash-choque { display: none; } #splash.splash-bum, #splash.splash-bum .splash-marca, #splash.splash-bum .splash-word, #splash .puerta-btn::after { animation: none !important; } }
