/* ══════════════════════════════════════════════════════════════════
   orbit-web.css — capa web de Orbit (portal.jenzzfoto.com)
   Se apoya en css/orbit.css (el panel.css REAL de la extensión):
   mismas variables, mismos vidrios, mismos azules/púrpuras.
   Prefijo propio: .ow-*  (no pisar clases de las vistas de otros)
   ══════════════════════════════════════════════════════════════════ */

html, body { overflow: hidden; }
body {
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(900px 650px at -5% 110%, rgba(139,92,246,.14), transparent 55%),
    linear-gradient(160deg, #EAF0FB 0%, #E3EAF8 55%, #DDE5F6 100%);
}
body.dark-mode {
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(900px 650px at -5% 110%, rgba(139,92,246,.20), transparent 55%),
    linear-gradient(160deg, #070D1F 0%, #0A1633 55%, #0D1B3F 100%);
}

/* ── Pantallas raíz ─────────────────────────────────────────────── */
.ow-pantalla {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.ow-pantalla.ow-desvanecer { opacity: 0; pointer-events: none; transition: opacity .55s ease; }

/* ── Wordmark "Orbit" con su puntito ────────────────────────────── */
.ow-wordmark {
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  color: #fff; display: inline-flex; align-items: baseline; user-select: none;
}
.ow-wordmark .ow-punto {
  display: inline-block; border-radius: 50%; margin-left: 5px;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  box-shadow: 0 0 12px rgba(96,165,250,.85), 0 0 28px rgba(139,92,246,.5);
}
.ow-wordmark-xl { font-size: 58px; }
.ow-wordmark-xl .ow-punto { width: 12px; height: 12px; }
.ow-wordmark-md { font-size: 34px; }
.ow-wordmark-md .ow-punto { width: 8px; height: 8px; }
.ow-wordmark-sm { font-size: 24px; }
.ow-wordmark-sm .ow-punto { width: 6px; height: 6px; }
.ow-wordmark-color {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.dark-mode .ow-wordmark-color { background: none; color: #fff; }
.ow-perfiles-caja .ow-wordmark-sm { color: #fff; }

/* ── SPLASH ─────────────────────────────────────────────────────── */
.ow-splash {
  z-index: 200;
  background:
    radial-gradient(1200px 800px at 72% -12%, rgba(59,130,246,.38), transparent 62%),
    radial-gradient(950px 720px at 8% 112%, rgba(139,92,246,.32), transparent 58%),
    linear-gradient(160deg, #0A1633 0%, #0E2159 48%, #17348C 100%);
}
.ow-splash-centro {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: owSubir .9s cubic-bezier(.16,1,.3,1) both;
}
.ow-splash .ow-wordmark-xl .ow-punto { animation: owLatir 1.6s ease-in-out infinite; }
.ow-splash-marca {
  font-size: 11px; font-weight: 600; letter-spacing: .38em; text-indent: .38em;
  color: rgba(255,255,255,.62); text-align: center;
}
.ow-splash-barra {
  width: 148px; height: 3px; margin-top: 14px; border-radius: 2px;
  background: rgba(255,255,255,.14); overflow: hidden;
}
.ow-splash-barra span {
  display: block; height: 100%; width: 42%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
  animation: owBarra 1.2s ease-in-out infinite;
}
@keyframes owBarra { 0%{transform:translateX(-110%)} 100%{transform:translateX(360%)} }
@keyframes owLatir { 0%,100%{transform:scale(1)} 50%{transform:scale(1.35)} }
@keyframes owSubir { from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:translateY(0)} }

/* ── Fondo azul profundo para login/perfiles ────────────────────── */
.ow-fondo {
  background:
    radial-gradient(1200px 800px at 72% -12%, rgba(59,130,246,.30), transparent 62%),
    radial-gradient(950px 720px at 8% 112%, rgba(139,92,246,.26), transparent 58%),
    linear-gradient(160deg, #0A1633 0%, #0E2159 52%, #142E7E 100%);
}

/* ── Tarjeta de login (auth glassy de Orbit) ────────────────────── */
.ow-auth-tarjeta {
  width: 100%; max-width: 380px; margin: auto;
  border-radius: 24px; padding: 36px 30px; text-align: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 24px 80px rgba(3,10,34,.5), inset 0 1px 0 rgba(255,255,255,.4);
  animation: owSubir .5s cubic-bezier(.16,1,.3,1) both;
}
body.dark-mode .ow-auth-tarjeta {
  background: rgba(10,14,36,0.88);
  border-color: rgba(255,255,255,0.08);
}
.ow-auth-paso { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ow-auth-marca {
  font-size: 9px; font-weight: 700; letter-spacing: .32em; text-indent: .32em;
  color: var(--gray-400); margin-top: 2px;
}
body.dark-mode .ow-auth-marca { color: rgba(255,255,255,.4); }
.ow-auth-form { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.ow-auth-form .fgroup { text-align: left; }
.ow-auth-form .finput { padding: 12px 14px; font-size: 14px; }
.ow-auth-logo-mail { font-size: 26px; }
.ow-auth-enlaces { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ow-enlace {
  border: none; background: transparent; padding: 4px 2px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--blue-600);
}
.ow-enlace:hover { text-decoration: underline; }
.ow-enlace:disabled { color: var(--gray-400); cursor: default; text-decoration: none; }
.ow-enlace-sep { color: var(--gray-400); font-size: 12px; }
body.dark-mode .ow-enlace { color: #7FB0FF; }

/* código de 6 dígitos */
.ow-codigo { display: flex; gap: 8px; justify-content: center; }
.ow-codigo-caja {
  width: 44px; height: 52px; text-align: center; padding: 0 !important;
  font-size: 22px !important; font-weight: 800; border-radius: 14px !important;
}
.ow-codigo-caja.ow-mal { border-color: rgba(239,68,68,.55) !important; animation: owTemblar .3s; }
@keyframes owTemblar { 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

/* ── Selección de perfil ────────────────────────────────────────── */
.ow-perfiles-caja {
  width: 100%; max-width: 560px; margin: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: owSubir .5s cubic-bezier(.16,1,.3,1) both;
}
.ow-perfiles-caja .auth-title { color: #fff; font-size: 26px; margin-top: 8px; }
.ow-perfiles-caja .auth-subtitle { color: rgba(255,255,255,.6); }
.ow-perfil-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 14px; width: 100%; margin-top: 18px;
}
.ow-perfil-tarjeta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px 16px; border-radius: 20px; cursor: pointer;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: all .2s; font-family: inherit;
}
.ow-perfil-tarjeta:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.ow-perfil-tarjeta:active { transform: scale(.97); }
.ow-anillo {
  padding: 3px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  box-shadow: 0 6px 20px rgba(59,130,246,.35);
}
.ow-avatar {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; object-fit: cover; overflow: hidden;
  border: 3px solid #0E2159; background: #0E2159;
  color: #fff; font-weight: 800;
}
.ow-avatar-84 { width: 84px; height: 84px; font-size: 30px; }
.ow-avatar-36 { width: 36px; height: 36px; font-size: 14px; border-width: 2px; }
.ow-avatar-22 { width: 22px; height: 22px; font-size: 9px; border-width: 0; }
.ow-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ow-avatar-inicial { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); }
.ow-grad-0 { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.ow-grad-1 { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.ow-grad-2 { background: linear-gradient(135deg, #06B6D4, #2563EB); }
.ow-grad-3 { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.ow-grad-4 { background: linear-gradient(135deg, #10B981, #059669); }
.ow-grad-5 { background: linear-gradient(135deg, #F59E0B, #EC4899); }
.ow-perfil-nombre { font-size: 15px; font-weight: 700; color: #fff; }
.ow-perfil-rol {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; text-indent: .18em; color: rgba(255,255,255,.5);
}

/* ── APP: lateral Orbit fullscreen + contenido ──────────────────── */
#owApp { position: fixed; inset: 0; z-index: 10; }
#owApp.hidden { display: none !important; }
.orbit-panel.ow-app {
  flex-direction: row; border-radius: 0; border: none;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.55);
}
body.dark-mode .orbit-panel.ow-app { background: rgba(10,14,30,0.72); }

.ow-lateral {
  width: 232px; flex-shrink: 0; height: 100%;
  display: flex; flex-direction: column;
  padding: 22px 14px 14px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-right: 1px solid rgba(0,0,0,0.06);
}
body.dark-mode .ow-lateral { background: rgba(8,12,28,0.6); border-right-color: rgba(255,255,255,0.06); }
.ow-lateral-logo { padding: 2px 10px 18px; }
.ow-logo-sub {
  font-size: 9px; font-weight: 700; letter-spacing: .3em; text-indent: .02em;
  color: var(--gray-400); margin-top: 5px;
}
body.dark-mode .ow-logo-sub { color: rgba(255,255,255,.35); }

.ow-nav { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.ow-nav::-webkit-scrollbar { width: 3px; }
.ow-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,.1); border-radius: 2px; }
.ow-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border: none; border-radius: 12px; cursor: pointer;
  background: transparent; font-family: inherit; text-align: left;
  font-size: 13px; font-weight: 600; color: var(--gray-600);
  transition: all .2s ease;
}
.ow-nav-item:hover { background: rgba(0,0,0,.05); color: var(--gray-900); }
.ow-nav-item.active {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.ow-nav-icono { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.ow-nav-item .nav-badge { margin-left: auto; }
.ow-nav-item.active .nav-badge { background: #fff; color: #6366F1; }
body.dark-mode .ow-nav-item { color: rgba(255,255,255,.55); }
body.dark-mode .ow-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
body.dark-mode .ow-nav-item.active { color: #fff; }

/* pie del lateral: perfil + menú */
.ow-lateral-pie { position: relative; padding-top: 10px; }
.ow-perfil-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: inherit; text-align: left; transition: all .2s;
}
.ow-perfil-btn:hover { background: rgba(255,255,255,0.6); }
body.dark-mode .ow-perfil-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
body.dark-mode .ow-perfil-btn:hover { background: rgba(255,255,255,0.12); }
.ow-perfil-btn-textos { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ow-perfil-btn-nombre { font-size: 12px; font-weight: 700; color: var(--gray-800); }
.ow-perfil-btn-rol { font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-400); }
.ow-perfil-btn-flecha { font-size: 10px; color: var(--gray-400); }
body.dark-mode .ow-perfil-btn-nombre { color: rgba(255,255,255,.9); }

.ow-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  border-radius: 16px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  animation: owSubir .18s ease both;
}
body.dark-mode .ow-menu { background: rgba(15,20,42,0.97); border-color: rgba(255,255,255,0.08); }
.ow-menu-item {
  border: none; background: transparent; cursor: pointer; text-align: left;
  padding: 9px 12px; border-radius: 10px; font-family: inherit;
  font-size: 12px; font-weight: 600; color: var(--gray-700);
}
.ow-menu-item:hover { background: rgba(59,130,246,.1); color: var(--blue-600); }
.ow-menu-peligro { color: var(--red-500); }
.ow-menu-peligro:hover { background: rgba(239,68,68,.1); color: var(--red-500); }
body.dark-mode .ow-menu-item { color: rgba(255,255,255,.8); }

/* contenido */
.ow-principal { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.ow-nav-movil { display: none; }
.ow-vistas { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.ow-vistas > .view-panel { flex: 1; min-height: 0; }

/* badge de usuario del header: aprovechar user-badge de Orbit */
#owUserBadge { cursor: pointer; }

/* ── Vista de respaldo ("módulo en camino") ─────────────────────── */
.ow-respaldo { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ow-respaldo-caja {
  text-align: center; max-width: 340px; padding: 40px 32px; border-radius: 24px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
body.dark-mode .ow-respaldo-caja { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.ow-respaldo-icono {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  box-shadow: 0 8px 24px rgba(99,102,241,.35);
  animation: owFlotar 3s ease-in-out infinite;
}
@keyframes owFlotar { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.ow-respaldo-titulo { font-size: 17px; font-weight: 800; color: var(--gray-900); }
.ow-respaldo-texto { font-size: 12px; color: var(--gray-500); margin-top: 6px; line-height: 1.5; }
body.dark-mode .ow-respaldo-titulo { color: rgba(255,255,255,.9); }
body.dark-mode .ow-respaldo-texto { color: rgba(255,255,255,.5); }

/* ── Toasts (variantes sobre .orbit-toast del CSS real) ─────────── */
.orbit-toast.ow-toast-exito { background: rgba(6,78,59,0.9); border-color: rgba(16,185,129,.35); color: #D1FAE5; }
.orbit-toast.ow-toast-error { background: rgba(127,29,29,0.92); border-color: rgba(239,68,68,.35); color: #FEE2E2; }

/* ── Modal genérico del núcleo ──────────────────────────────────── */
.ow-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ow-modal-fondo { position: absolute; inset: 0; background: rgba(3,10,34,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ow-modal-caja {
  position: relative; z-index: 1; width: 100%; max-width: 420px; max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  animation: owSubir .25s cubic-bezier(.16,1,.3,1) both;
}
body.dark-mode .ow-modal-caja { background: rgba(15,20,42,0.97); border-color: rgba(255,255,255,0.08); }
.ow-modal-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.ow-modal-titulo { font-size: 15px; font-weight: 800; color: var(--gray-900); }
body.dark-mode .ow-modal-titulo { color: rgba(255,255,255,.92); }
.ow-modal-x {
  border: none; background: transparent; cursor: pointer; font-size: 14px;
  color: var(--gray-400); width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.ow-modal-x:hover { background: rgba(0,0,0,.06); color: var(--gray-700); }
.ow-modal-cuerpo { padding: 4px 18px 14px; overflow-y: auto; font-size: 13px; color: var(--gray-700); line-height: 1.5; }
body.dark-mode .ow-modal-cuerpo { color: rgba(255,255,255,.75); }
.ow-modal-pie { display: flex; gap: 8px; padding: 8px 18px 18px; }
.ow-modal-pie .btn-primary { width: auto; flex: 1; padding: 11px; }
.ow-btn-suave {
  flex: 1; padding: 11px; border-radius: 16px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--gray-600);
  border: 1px solid rgba(0,0,0,0.08); background: rgba(0,0,0,0.03); transition: all .2s;
}
.ow-btn-suave:hover { background: rgba(0,0,0,0.07); color: var(--gray-900); }
body.dark-mode .ow-btn-suave { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); }
.ow-btn-peligro {
  flex: 1; padding: 11px; border-radius: 16px; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 4px 18px rgba(239,68,68,.4); transition: all .2s;
}
.ow-btn-peligro:hover { box-shadow: 0 6px 20px rgba(239,68,68,.5); transform: translateY(-1px); }

/* ── Cargando global ────────────────────────────────────────────── */
.ow-cargando {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
body.dark-mode .ow-cargando { background: rgba(3,10,34,.45); }
.ow-cargando .spinner { width: 34px; height: 34px; border-width: 3px; }

/* ── Responsive: pill móvil de Orbit ────────────────────────────── */
@media (max-width: 860px) {
  .ow-lateral { display: none; }
  .ow-nav-movil { display: block; }
  .ow-nav-movil .top-nav-track { overflow-x: auto; scrollbar-width: none; }
  .ow-nav-movil .top-nav-track::-webkit-scrollbar { display: none; }
  .ow-nav-movil .nav-tab { flex: 1 0 auto; padding: 8px 12px; }
  .ow-perfil-grid { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
  .ow-avatar-84 { width: 68px; height: 68px; font-size: 24px; }
  .ow-wordmark-xl { font-size: 44px; }
  .ow-splash-marca { font-size: 9px; letter-spacing: .3em; }
}
