/* ==========================================================================
   OZI ACADEMY — LAYOUT APPLE / INSTAGRAM / SALEADS V3.1 DEFINITIVA
   Login 100vw x 100dvh · Portal 2.3s · Pie Legal ® · Biblioteca Netflix
   Visor 1 Fila Estricta · Vista Móvil 390px en PC · Menú Instagram ☰
   ========================================================================== */
:root {
  --bg-glass-drawer: rgba(26, 37, 47, 0.96);
  --ice-blue: #7DD3FC;
  --ice-blue-soft: rgba(125, 211, 252, 0.14);
  --sidebar-w: 266px;
  --sidebar-w-collapsed: 74px;
}

/* Logos Corporativos Transparentes sobre Oscuro (Cero Parches Blancos) */
.slide-canvas img[src*="FONDO BLANCO"],
img.brand-prieto-img,
img.s-logo-prieto,
img.brand-prieto32-clean,
img.brand-prieto32-login,
img.brand-prieto32-footer {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  object-fit: contain;
}
img.brand-prieto32-login,
img.brand-prieto32-footer {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.slide-canvas img[src*="vertical con rueda"] {
  background: #1A252F !important;
  border: 1px solid rgba(250, 144, 62, 0.28);
  border-radius: 10px;
  padding: 6px 12px;
}

/* ==========================================================================
   FRANJA GUÍA DE 3 SEGUNDOS (REGLA STEVE JOBS EN CADA VISTA)
   ========================================================================== */
.ozi-guide-strip {
  background: linear-gradient(90deg, rgba(250, 144, 62, 0.12) 0%, rgba(26, 37, 47, 0.92) 65%);
  border: 1px solid rgba(250, 144, 62, 0.34);
  border-left: 4px solid #FA903E;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ozi-guide-strip-text {
  flex: 1;
  min-width: 220px;
}
.ozi-guide-strip-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #FA903E;
  margin-bottom: 3px;
}
.ozi-guide-strip-desc {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #F1F5F9;
}

/* ==========================================================================
   PIE LEGAL CORPORATIVO CENTRADO (LOGIN E INTERIOR DE LA APP)
   ========================================================================== */
.ozi-legal-footer {
  width: 100%;
  margin-top: 30px;
  padding: 18px 16px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.ozi-legal-brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ozi-legal-copy {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #CBD5E1;
}
.ozi-legal-link {
  background: transparent;
  border: none;
  color: #FA903E;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 4px;
  transition: color 0.16s ease;
}
.ozi-legal-link:hover {
  color: #F5B041;
}
.ozi-legal-confidential-line {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   HOMEPAGE INICIO (3 GRANDES TARJETAS SALEADS + FILAS NETFLIX + MODO HOTMART)
   ========================================================================== */
.saleads-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.saleads-big-card {
  background: linear-gradient(155deg, rgba(26, 37, 47, 0.96) 0%, rgba(14, 21, 29, 0.98) 100%);
  border: 1.5px solid rgba(250, 144, 62, 0.34);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.saleads-big-card:hover {
  transform: translateY(-3px);
  border-color: #FA903E;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(250, 144, 62, 0.22);
}
.saleads-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.saleads-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(250, 144, 62, 0.16);
  border: 1px solid rgba(250, 144, 62, 0.45);
  color: #FA903E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.saleads-icon-box svg { width: 22px; height: 22px; }
.saleads-card-step {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #F5B041;
  background: rgba(245, 176, 65, 0.14);
  border: 1px solid rgba(245, 176, 65, 0.35);
  border-radius: 99px;
  padding: 4px 10px;
}
.saleads-card-title {
  font-size: 18px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.28;
}
.saleads-card-desc {
  font-size: 13.2px;
  color: #CBD5E1;
  line-height: 1.48;
}
.saleads-card-cta {
  font-size: 12.5px;
  font-weight: 800;
  color: #FA903E;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.netflix-cat-section {
  margin-bottom: 26px;
}
.netflix-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.netflix-cat-title {
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.netflix-card.is-locked-template {
  border-color: rgba(245, 176, 65, 0.38);
  background: linear-gradient(165deg, rgba(26, 37, 47, 0.88) 0%, rgba(15, 23, 30, 0.96) 100%);
}
.netflix-locked-pill {
  background: rgba(245, 176, 65, 0.18);
  border: 1px solid rgba(245, 176, 65, 0.58);
  color: #F5B041;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.active-course-selector-bar {
  background: rgba(15, 23, 30, 0.86);
  border: 1px solid rgba(250, 144, 62, 0.38);
  border-radius: 13px;
  padding: 10px 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hotmart-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070B10;
  border: 1px solid rgba(250, 144, 62, 0.36);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

/* ==========================================================================
   LOGIN LIBRE A PANTALLA COMPLETA (100vw x 100dvh + PORTAL 2.3s)
   ========================================================================== */
.login-open-hero {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 30% 42%, rgba(250, 144, 62, 0.09) 0%, transparent 52%),
    linear-gradient(145deg, #090E14 0%, #0F171E 54%, #131F2B 100%);
  transition: background 0.55s ease;
}
.login-open-hero.portal-expanding {
  background: transparent !important;
  pointer-events: none;
}
#login-orb-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.login-hero-overlay {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 48px 12px;
  display: grid;
  grid-template-columns: 1.35fr minmax(340px, 415px);
  align-items: center;
  gap: 38px;
  transition: opacity 0.36s ease, transform 0.36s ease;
}
.login-legal-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 18px;
  transition: opacity 0.32s ease;
}
.login-open-hero.portal-fading .login-hero-overlay,
.login-open-hero.portal-fading .login-legal-wrap {
  opacity: 0;
  transform: scale(0.975);
  pointer-events: none;
}
.login-left-open {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.login-left-top { display: flex; align-items: center; }
.login-prieto-hero-logo { height: 48px; width: auto; display: block; object-fit: contain; }
.login-orb-breathing-space { flex: 1; min-height: 290px; }
.login-left-bottom { display: flex; flex-direction: column; gap: 16px; }
.login-slogan-capsule {
  max-width: 600px;
}
.login-kicker {
  font-family: 'Jost', 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FA903E;
  margin-bottom: 8px;
}
.login-slogan {
  font-size: clamp(16px, 1.38vw, 20px);
  font-weight: 600;
  line-height: 1.48;
  color: #F8FAFC;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.82);
}

.login-glass-card {
  background: rgba(15, 23, 30, 0.76);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(250, 144, 62, 0.36);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
  pointer-events: auto;
}
.login-forgot-link {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  width: 100%;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.16s;
}
.login-forgot-link:hover { color: #FA903E; }

/* ==========================================================================
   CONTENEDOR PRINCIPAL + MICRO-ZOOM PORTAL + MODO VISTA MÓVIL EN PC (390px)
   ========================================================================== */
.app-shell {
  display: flex !important;
  flex-direction: row !important;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg-deep);
  opacity: 1;
  transform: none;
  transition: opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1), transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}
.app-shell.shell-pre-reveal {
  opacity: 0;
  transform: scale(0.975);
}

/* Marco Elegante de Previsualización Móvil en PC (390 x 844) */
body.mobile-preview-host {
  background: radial-gradient(circle at center, #131E29 0%, #06090D 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}
.mobile-preview-exit-pill {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 210;
  background: #FA903E;
  color: #0F171E;
  border: none;
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 12px 30px rgba(250, 144, 62, 0.4);
}
.app-shell.admin-mobile-preview {
  width: 390px !important;
  min-width: 390px !important;
  max-width: 390px !important;
  height: min(844px, calc(100dvh - 28px)) !important;
  margin: auto;
  border-radius: 34px;
  border: 6px solid #243342;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.88), 0 0 0 1.5px rgba(250, 144, 62, 0.42);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   CINTILLO DORADO FIJO SUPERIOR (CUANDO ADMIN ESTÁ EN VISTA ALUMNO)
   ========================================================================== */
.admin-student-banner {
  background: linear-gradient(90deg, #F5B041 0%, #FA903E 100%);
  color: #0F171E;
  padding: 7px 16px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 50;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.admin-student-banner-lbl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.admin-student-return-btn {
  background: #0F171E;
  color: #F5B041;
  border: 1px solid rgba(15, 23, 30, 0.9);
  border-radius: 99px;
  padding: 5px 13px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.14s ease, background 0.16s ease;
}
.admin-student-return-btn:hover {
  background: #1A252F;
  transform: translateY(-1px);
}

/* ==========================================================================
   SIDEBAR IZQUIERDO (3 BOTONES POR ROL · CERO DUPLICADOS)
   ========================================================================== */
.ozi-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100dvh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 45;
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1), min-width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}
.app-shell.sidebar-collapsed .ozi-sidebar { width: var(--sidebar-w-collapsed); min-width: var(--sidebar-w-collapsed); }

.sidebar-brand-row {
  height: 64px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-brand-trigger { display: flex; align-items: center; cursor: pointer; min-width: 0; overflow: hidden; }
.sidebar-logo-window { height: 36px; display: inline-flex; align-items: center; overflow: hidden; flex-shrink: 0; }
.sidebar-ozi-svg { height: 36px; width: auto; max-width: none; display: block; flex-shrink: 0; }

.sidebar-collapse-btn {
  background: rgba(15, 23, 30, 0.55);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: all 0.16s;
}
.sidebar-collapse-btn:hover { color: var(--copper); border-color: var(--copper); }

.sidebar-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.sidebar-section-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 10px 3px;
}
.sidebar-link {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: all 0.16s;
}
.sidebar-link-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sidebar-link svg { width: 19px; height: 19px; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-white); }
.sidebar-link.active { background: var(--copper-soft); color: var(--copper); border-color: var(--copper-border); }
.sidebar-badge-alert {
  background: #E74C3C;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-profile-trigger {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.16s;
}
.sidebar-profile-trigger:hover,
.sidebar-profile-trigger.active {
  background: rgba(250, 144, 62, 0.1);
  border-color: rgba(250, 144, 62, 0.35);
}
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(250, 144, 62, 0.18);
  border: 1px solid rgba(250, 144, 62, 0.48);
  color: #FA903E;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-meta { min-width: 0; flex: 1; }
.sidebar-user-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}
.sidebar-user-role {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 2px;
  white-space: normal;
  word-break: break-word;
}

.app-shell.sidebar-collapsed .sidebar-section-lbl,
.app-shell.sidebar-collapsed .sidebar-link span.lbl-txt,
.app-shell.sidebar-collapsed .sidebar-badge-alert,
.app-shell.sidebar-collapsed .sidebar-user-meta { display: none; }
.app-shell.sidebar-collapsed .sidebar-logo-window { width: 28px; height: 28px; }
.app-shell.sidebar-collapsed .sidebar-ozi-svg { height: 28px; }
.app-shell.sidebar-collapsed .sidebar-link,
.app-shell.sidebar-collapsed .sidebar-footer,
.app-shell.sidebar-collapsed .sidebar-profile-trigger,
.app-shell.sidebar-collapsed .sidebar-brand-row { justify-content: center; padding-left: 6px; padding-right: 6px; gap: 4px; }

/* ==========================================================================
   CABECERA UNIVERSAL + VISOR DE DIAPOSITIVAS EN 1 FILA ESTRICTA
   ========================================================================== */
.ozi-universal-topbar {
  height: 50px;
  min-height: 50px;
  background: rgba(20, 30, 40, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 30;
  flex-shrink: 0;
}
.utop-left { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.utop-section-name { font-size: 13.5px; font-weight: 800; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utop-flash-pill {
  background: rgba(250, 144, 62, 0.18);
  border: 1px solid #FA903E;
  color: #FA903E;
  border-radius: 99px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.utop-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.utop-btn {
  background: rgba(15, 23, 30, 0.78);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  border-radius: 9px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.16s;
}
.utop-btn:hover { border-color: var(--copper); color: var(--copper); }
.utop-btn.active-preview { background: var(--copper-soft); border-color: #FA903E; color: #FA903E; }
.mob-hamburger-btn { display: none; width: 38px; height: 36px; padding: 0; }

/* Ocultación en Modo TV Pantalla Completa */
:fullscreen .ozi-sidebar, :fullscreen .mobile-bottom-nav, :fullscreen .ozi-universal-topbar, :fullscreen .admin-student-banner,
.app-shell.tv-fullscreen .ozi-sidebar, .app-shell.tv-fullscreen .mobile-bottom-nav, .app-shell.tv-fullscreen .ozi-universal-topbar, .app-shell.tv-fullscreen .admin-student-banner {
  display: none !important;
}

/* Barra del Visor en 1 Sola Fila Estricta (Modo TV [F] nunca salta de línea) */
.viewer-topbar {
  height: 46px;
  min-height: 46px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 25;
  flex-shrink: 0;
}
.viewer-topbar::-webkit-scrollbar { display: none; }
.viewer-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 125px;
  max-width: 44%;
}
.viewer-controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}
.viewer-controls-row .ctrl-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   BIBLIOTECA DE CAPACITACIONES (GALERÍA VISUAL TIPO NETFLIX)
   ========================================================================== */
.netflix-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.netflix-card {
  background: linear-gradient(165deg, #1A252F 0%, #121B24 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.netflix-card:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 144, 62, 0.55);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
}
.netflix-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 25% 30%, rgba(250, 144, 62, 0.26) 0%, transparent 58%),
    linear-gradient(135deg, #0D151D 0%, #192734 60%, #1E2F3F 100%);
  border-bottom: 1px solid rgba(250, 144, 62, 0.24);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.netflix-thumb-badge {
  align-self: flex-start;
  background: rgba(15, 23, 30, 0.88);
  border: 1px solid rgba(250, 144, 62, 0.45);
  color: #FA903E;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
}
.netflix-thumb-center {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FA903E;
  opacity: 0.92;
}
.netflix-thumb-center svg { width: 42px; height: 42px; }
.netflix-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: space-between;
}

/* ==========================================================================
   ZONA 3: DRAWERS DERECHOS + DRAWER MÓVIL INSTAGRAM (☰) + SIMULADORES
   ========================================================================== */
.ozi-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(6, 10, 15, 0.62);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.ozi-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.ozi-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 480px; max-width: 100vw;
  background: var(--bg-glass-drawer);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(250, 144, 62, 0.34);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.72);
  z-index: 95;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.ozi-drawer.drawer-lg { width: 780px; }
.ozi-drawer.drawer-md { width: 600px; }
.ozi-drawer.drawer-ig {
  width: min(86vw, 336px) !important;
  max-height: 100dvh !important;
  top: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  right: 0 !important;
  border-radius: 0 !important;
  border-top: none !important;
  border-left: 1px solid rgba(250, 144, 62, 0.38) !important;
  transform: translateX(103%);
}
.ozi-drawer.open,
.ozi-drawer.drawer-ig.open { transform: translateX(0); }

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 30, 0.78);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }

/* Menú Lateral Deslizante Estilo Instagram */
.ig-drawer-user-card {
  background: rgba(15, 23, 30, 0.85);
  border: 1px solid rgba(250, 144, 62, 0.32);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ig-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ig-drawer-item {
  width: 100%;
  background: rgba(15, 23, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 13px 14px;
  color: #F8FAFC;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.16s ease;
}
.ig-drawer-item svg { width: 19px; height: 19px; color: #FA903E; flex-shrink: 0; }
.ig-drawer-item:hover { border-color: #FA903E; background: rgba(250, 144, 62, 0.12); }
.ig-drawer-item.gold-return {
  background: rgba(245, 176, 65, 0.16);
  border-color: rgba(245, 176, 65, 0.55);
  color: #F5B041;
}
.ig-drawer-item.gold-return svg { color: #F5B041; }
.ig-drawer-item.danger-logout {
  margin-top: 10px;
  background: rgba(231, 76, 60, 0.13);
  border-color: rgba(231, 76, 60, 0.42);
  color: #FF7675;
}
.ig-drawer-item.danger-logout svg { color: #FF7675; }

.ads-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.ozi-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--text-bright); }
.ozi-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ozi-switch-track { width: 42px; height: 23px; background: rgba(255, 255, 255, 0.14); border: 1px solid var(--border-subtle); border-radius: 99px; position: relative; transition: all 0.2s; flex-shrink: 0; }
.ozi-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #CBD5E1; transition: transform 0.2s, background 0.2s; }
.ozi-switch input:checked + .ozi-switch-track { background: rgba(46, 204, 113, 0.26); border-color: var(--green); }
.ozi-switch input:checked + .ozi-switch-track::after { transform: translateX(19px); background: var(--green); }

/* Componentes Visuales de los 3 Simuladores en 3 Segundos */
.sim1-stack-wrap {
  height: 44px;
  width: 100%;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  background: #0B1117;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.sim1-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #0F171E;
  white-space: nowrap;
  overflow: hidden;
  transition: width 0.22s ease;
}
.sim2-prot-grid, .sim3-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}
.sim-choice-card {
  background: rgba(15, 23, 30, 0.78);
  border: 1.5px solid var(--border-subtle);
  border-radius: 13px;
  padding: 13px 14px;
  text-align: left;
  color: var(--text-bright);
  cursor: pointer;
  transition: all 0.16s;
}
.sim-choice-card:hover { border-color: rgba(250, 144, 62, 0.55); }
.sim-choice-card.active {
  border-color: #FA903E;
  background: rgba(250, 144, 62, 0.15);
  box-shadow: 0 8px 22px rgba(250, 144, 62, 0.18);
}
.sim-choice-card.active-green {
  border-color: #2ECC71;
  background: rgba(46, 204, 113, 0.15);
}
.sim-choice-card.active-red {
  border-color: #E74C3C;
  background: rgba(231, 76, 60, 0.16);
}
.cfo-details {
  background: rgba(15, 23, 30, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 12px 16px;
  margin-top: 14px;
}
.cfo-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cfo-details summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   ADAPTACIÓN MÓVIL (<= 960px Login / <= 768px App + .admin-mobile-preview)
   ========================================================================== */
.mobile-bottom-nav { display: none; }

@media (max-width: 960px) {
  .login-hero-overlay {
    grid-template-columns: 1fr;
    padding: 18px 18px 10px;
    gap: 16px;
    align-items: start;
  }
  .login-left-open { min-height: auto; gap: 10px; align-items: center; text-align: center; }
  .login-left-top { justify-content: center; width: 100%; }
  .login-orb-breathing-space { min-height: 188px; width: 100%; }
  .login-left-bottom { width: 100%; align-items: center; }
  .login-slogan-capsule {
    background: rgba(11, 17, 23, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 520px;
    text-align: center;
  }
  .login-glass-card { padding: 24px 20px; max-width: 520px; width: 100%; margin: 0 auto; }
  img.brand-prieto32-login,
  img.brand-prieto32-footer { height: 50px; }
}

/* Reglas compartidas entre Móvil Real (<= 768px) y Simulador Vista Móvil en PC */
.app-shell.admin-mobile-preview .ozi-sidebar { display: none !important; }
.app-shell.admin-mobile-preview .app-main { padding-bottom: 64px; }
.app-shell.admin-mobile-preview .ozi-universal-topbar { padding: 0 12px; height: 48px; }
.app-shell.admin-mobile-preview .utop-btn span.utop-lbl,
.app-shell.admin-mobile-preview .utop-desktop-only { display: none !important; }
.app-shell.admin-mobile-preview .mob-hamburger-btn { display: inline-flex !important; }
.app-shell.admin-mobile-preview .view-panel { padding: 16px 14px 84px !important; }
.app-shell.admin-mobile-preview .ads-kpi-grid,
.app-shell.admin-mobile-preview .saleads-hero-grid,
.app-shell.admin-mobile-preview .netflix-gallery-grid { grid-template-columns: 1fr; }
.app-shell.admin-mobile-preview img.brand-prieto32-footer { height: 50px; }
.app-shell.admin-mobile-preview .mobile-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 64px;
  background: rgba(15, 23, 30, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  z-index: 80;
}

@media (max-width: 768px) {
  img.brand-prieto32-login,
  img.brand-prieto32-footer { height: 50px; }
  .ozi-sidebar { display: none !important; }
  .app-main { padding-bottom: 64px; }
  .ozi-universal-topbar { padding: 0 12px; height: 48px; }
  .utop-btn span.utop-lbl,
  .utop-desktop-only { display: none !important; }
  .mob-hamburger-btn { display: inline-flex !important; }
  .view-panel { padding: 16px 14px 86px !important; }
  .ads-kpi-grid,
  .saleads-hero-grid,
  .netflix-gallery-grid { grid-template-columns: 1fr; }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; height: 64px;
    background: rgba(15, 23, 30, 0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    z-index: 80;
  }

  .ozi-drawer:not(.drawer-ig),
  .ozi-drawer.drawer-lg:not(.drawer-ig),
  .ozi-drawer.drawer-md:not(.drawer-ig) {
    top: auto; left: 0; right: 0; bottom: 0; width: 100% !important; max-height: 86vh;
    border-left: none; border-top: 1px solid var(--copper-border); border-radius: 20px 20px 0 0;
    transform: translateY(104%);
  }
  .ozi-drawer:not(.drawer-ig).open { transform: translateY(0); }
  input, select, textarea { font-size: 16px !important; }
  .btn-primary, .btn-secondary { min-height: 46px; }
}

.mob-nav-btn {
  background: transparent; border: none; color: var(--text-dim);
  font-size: 10.5px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; cursor: pointer;
}
.mob-nav-btn svg { width: 20px; height: 20px; }
.mob-nav-btn.active { color: var(--copper); }

/* ==========================================================================
   LIMPIEZA APPLE (CERO TAPIZ REPETIDO) Y ESCUDO ANTI-COPIA / BLOQUEO PDF
   ========================================================================== */
.ozi-forensic-watermark {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Protección anti-selección / anti-copia para rol colaborador operativo */
body.role-worker-shield,
body.role-worker-shield .app-shell,
body.role-worker-shield .slide-canvas {
  user-select: none !important;
  -webkit-user-select: none !important;
}
body.role-worker-shield input,
body.role-worker-shield textarea,
body.role-worker-shield [contenteditable="true"] {
  user-select: text !important;
  -webkit-user-select: text !important;
}

@media print {
  .ozi-forensic-watermark { display: none !important; }
  body.role-worker-shield:not(.printing-acta) *,
  body.pdf-export-locked:not(.printing-acta) * {
    display: none !important;
    visibility: hidden !important;
  }
}
