/* ==========================================================================
   ADMIN PORTAL STYLES (CMS STUDIO MAXIMIZADO)
   ========================================================================== */

.admin-portal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background: #0d0e12;
}

.admin-portal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.admin-panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #101115;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  color: var(--white);
  font-family: var(--font-grotesk);
}

.admin-portal.is-active .admin-panel {
  transform: translateY(0);
}

/* Header Superior Studio */
.admin-header {
  height: 60px;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #15161c;
  flex-shrink: 0;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-badge {
  font-size: 0.65rem;
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.admin-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  margin: 0;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-preview-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 3px 8px;
}

.live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #467bc5;
  box-shadow: 0 0 10px #467bc5;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.live-status-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #467bc5;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.admin-device-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--gray-text);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
}

.admin-device-btn:hover {
  color: var(--white);
}

.admin-device-btn.is-active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.admin-nav-shortcuts {
  display: flex;
  gap: 6px;
}

.admin-quick-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.admin-quick-btn:hover {
  background: rgba(33, 60, 128,0.15);
  border-color: var(--yellow);
  color: var(--yellow);
}

.admin-close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
  padding: 0 4px;
}

.admin-close-btn:hover {
  opacity: 1;
  color: #ff5555;
  transform: scale(1.15);
}

/* Grid Principal Studio Ergonómico (Pro Compact) */
.admin-studio-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.admin-sidebar-controls {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #111216;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Tabs Compactas Segmented Style */
.admin-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #15161b;
  flex-shrink: 0;
  padding: 4px 6px;
  gap: 3px;
}

.admin-tab {
  flex: 1;
  padding: 6px 2px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--gray-text);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.admin-tab .tab-icon {
  font-size: 0.85rem;
}

.admin-tab .tab-text {
  font-size: 0.68rem;
}

.admin-tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.admin-tab.is-active {
  color: #213c80;
  background: rgba(33, 60, 128, 0.08);
  box-shadow: inset 0 0 0 1px rgba(33, 60, 128, 0.25);
}

/* Selector de Vertientes */
.admin-vertientes-bar {
  display: flex !important;
  gap: 2px !important;
  background: #0d121c !important;
  padding: 3px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.vertiente-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 6px 2px !important;
  min-height: 28px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.vertiente-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.vertiente-btn.is-active {
  background: #213c80 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.vertiente-btn .v-icon {
  font-size: 11px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.vertiente-btn .v-label {
  display: inline-block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}

.vertiente-group-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 8px 6px 4px;
  width: 100%;
  box-sizing: border-box;
}

.admin-tabs[data-active-vertiente="generales"] .admin-tab[data-vertiente="especificos"],
.admin-tabs[data-active-vertiente="generales"] .vertiente-group-label[data-vertiente-label="especificos"] {
  display: none !important;
}

.admin-tabs[data-active-vertiente="especificos"] .admin-tab[data-vertiente="generales"],
.admin-tabs[data-active-vertiente="especificos"] .vertiente-group-label[data-vertiente-label="generales"] {
  display: none !important;
}

/* Cuerpo del Sidebar */
.admin-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-body::-webkit-scrollbar {
  width: 5px;
}
.admin-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.admin-section {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-section.is-active {
  display: flex;
}

/* Tarjetas Semánticas de Grupo (Card Groups) */
.admin-card-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-card-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8e8e93;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Filas de Configuración Compactas */
.admin-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  gap: 10px;
}

.setting-label-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.setting-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
}

.setting-desc {
  font-size: 0.65rem;
  color: var(--gray-text);
  line-height: 1.2;
}

/* Toggles Compactos Tipo iOS */
.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.toggle-status-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-text);
}

.toggle-switch {
  position: relative;
  width: 32px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toggle.is-on .toggle-switch {
  background: #27c93f;
}

.admin-toggle.is-on .toggle-switch::after {
  transform: translateX(14px);
}

/* Sliders en Línea (Inline Sliders) */
.slider-inline-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.admin-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.admin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #213c80;
  box-shadow: 0 0 6px rgba(33, 60, 128,0.5);
  cursor: pointer;
  transition: transform 0.15s;
}

.admin-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.badge-value {
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 700;
  color: #213c80;
  background: rgba(33, 60, 128, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 48px;
  text-align: center;
}

/* Selector de Color y Chips Rápidos */
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-preset-chips {
  display: flex;
  gap: 4px;
}

.color-chip-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.15s;
  padding: 0;
}

.color-chip-btn:hover {
  transform: scale(1.2);
  border-color: #ffffff;
}

.admin-color-native {
  width: 26px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}

/* Inputs y Formularios Compactos */
.admin-control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-control-group label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-input, .admin-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.78rem;
  transition: 0.2s;
  height: 32px;
}

.admin-textarea {
  height: auto;
  min-height: 60px;
}

.admin-input:focus, .admin-textarea:focus {
  outline: none;
  border-color: #213c80;
  background: rgba(255, 255, 255, 0.08);
}

/* Encabezados de Acción en Secciones */
.section-action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.section-count-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-text);
}

.admin-btn-action {
  background: rgba(33, 60, 128, 0.12);
  color: #213c80;
  border: 1px solid rgba(33, 60, 128, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-action:hover {
  background: #213c80;
  color: #000000;
  transform: translateY(-1px);
}

/* Tarjetas Visuales de Selección de Plantillas */
.template-selector-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.template-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.template-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.template-card.is-active {
  background: rgba(33, 60, 128, 0.08);
  border-color: #213c80;
  box-shadow: 0 0 12px rgba(33, 60, 128, 0.15);
}

.template-icon {
  font-size: 1.1rem;
}

.template-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.template-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.template-sub {
  font-size: 0.65rem;
  color: var(--gray-text);
}

.template-card-badge {
  display: none;
  font-size: 0.6rem;
  font-weight: 800;
  color: #000000;
  background: #213c80;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.template-card.is-active .template-card-badge {
  display: inline-block;
}

/* Builder Strip */
.builder-actions-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-btn-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #213c80;
  color: #213c80;
}

/* Listas de Diapositivas y Menús Compactas */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-list-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.2s;
}

.admin-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.admin-list-item-title {
  font-weight: 600;
  font-size: 0.78rem;
}

.admin-list-item-actions {
  display: flex;
  gap: 4px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--gray-text);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  transition: 0.2s;
  border-radius: 4px;
}

.icon-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.sortable-ghost {
  opacity: 0.3;
  background-color: rgba(33, 60, 128, 0.08);
  border: 1px dashed #213c80;
}

/* Footer Fijo Compacto */
.admin-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 11, 14, 0.9);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.admin-btn-apply {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: not-allowed;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  transition: 0.25s;
}

.admin-btn-apply.has-changes {
  background: #213c80;
  color: #000000;
  border-color: #213c80;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(33, 60, 128, 0.35);
  animation: pulseApply 2s infinite;
}

.admin-btn-apply.has-changes:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(33, 60, 128, 0.5);
}

/* ==========================================================================
   STAGE UNIVERSAL DE PREVIEW STUDIO (CANVAS & TOOLBAR)
   ========================================================================== */
.admin-preview-stage {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #0b0c10;
  position: relative;
  overflow: hidden;
}

/* Toolbar Superior del Visor */
.admin-stage-toolbar {
  height: 44px;
  background: #13141a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  flex-shrink: 0;
  z-index: 20;
}

.stage-toolbar-left,
.stage-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-mode-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.stage-mode-btn {
  background: transparent;
  border: none;
  color: var(--gray-text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.stage-mode-btn:hover {
  color: #ffffff;
}

.stage-mode-btn.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.stage-toolbar-center {
  display: flex;
  align-items: center;
}

.stage-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-text);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scale-badge {
  color: var(--yellow);
}

.metric-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #467bc5;
  box-shadow: 0 0 6px #467bc5;
}

.stage-tool-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stage-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Lienzo de Simulación Central */
.admin-stage-canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: calc(100% - 44px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
  background: radial-gradient(circle at center, #14161f 0%, #090a0d 100%);
}

/* ==========================================================================
   SIMULADOR DE CELULAR ULTRA REALISTA (IPHONE 15 PRO EMULATOR)
   ========================================================================== */

/* Envoltorio del simulador de smartphone con soporte de zoom/escala */
.smartphone-simulator-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}

/* Chasis de Hardware de Titanio */
.smartphone-chassis {
  position: relative;
  width: 421px; /* 393px pantalla + 28px chasis */
  height: 880px; /* 852px pantalla + 28px chasis */
  background: #1c1d22;
  border-radius: 56px;
  padding: 14px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 3px #121317,
    0 0 0 5px #2b2c33,
    0 30px 90px -15px rgba(0, 0, 0, 0.95),
    0 15px 35px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

/* Botones Físicos Laterales (Titanium Hardware Keys) */
.chassis-hardware-btn {
  position: absolute;
  background: #2b2c34;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* Botón de Acción (Izquierda arriba) */
.hw-action {
  left: -5px;
  top: 115px;
  width: 5px;
  height: 28px;
}

/* Botones de Volumen (Izquierda) */
.hw-vol-up {
  left: -5px;
  top: 165px;
  width: 5px;
  height: 52px;
}

.hw-vol-down {
  left: -5px;
  top: 230px;
  width: 5px;
  height: 52px;
}

/* Botón de Bloqueo / Encendido (Derecha) */
.hw-power {
  right: -5px;
  top: 175px;
  width: 5px;
  height: 80px;
}

/* Bisel de Titanio y Bandas de Antena */
.chassis-titanium-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  background: #000;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}

.antenna-band {
  position: absolute;
  background: #3a3b44;
  z-index: 10;
  opacity: 0.6;
}

.antenna-band.top-left { left: 0; top: 70px; width: 3px; height: 4px; }
.antenna-band.top-right { right: 0; top: 70px; width: 3px; height: 4px; }
.antenna-band.bottom-left { left: 0; bottom: 70px; width: 3px; height: 4px; }
.antenna-band.bottom-right { right: 0; bottom: 70px; width: 3px; height: 4px; }

/* Pantalla OLED Super Retina XDR (393 × 852 px exactos) */
.chassis-oled-screen {
  position: relative;
  width: 393px;
  height: 852px;
  background: #000;
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Barra de Estado Superior iOS (Status Bar) */
.mobile-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 50;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  color: #ffffff;
}

.status-time {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  width: 54px;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  width: 122px;
  height: 34px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.8);
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dynamic-island:hover {
  width: 175px;
  height: 38px;
  border-radius: 22px;
}

.island-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1a2233 0%, #050608 100%);
  border: 1px solid rgba(255,255,255,0.12);
  margin-left: 2px;
}

.island-sensor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06090e;
  border: 1px solid rgba(255,255,255,0.06);
  margin-right: 2px;
}

.status-right-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 60px;
  justify-content: flex-end;
}

.status-signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}

.status-signal-bars span {
  width: 2.5px;
  background: #ffffff;
  border-radius: 0.5px;
}

.status-signal-bars span:nth-child(1) { height: 3px; }
.status-signal-bars span:nth-child(2) { height: 5px; }
.status-signal-bars span:nth-child(3) { height: 7px; }
.status-signal-bars span:nth-child(4) { height: 10px; }

.status-battery-pill {
  width: 22px;
  height: 11px;
  border: 1.5px solid #ffffff;
  border-radius: 3.5px;
  padding: 1px;
  position: relative;
  display: flex;
  align-items: center;
}

.battery-fill {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 1.5px;
}

.battery-tip {
  position: absolute;
  right: -3px;
  top: 2.5px;
  width: 1.5px;
  height: 4px;
  background: #ffffff;
  border-radius: 0 1px 1px 0;
}

/* Contenedor del Viewport Móvil */
.mobile-viewport-container {
  width: 393px;
  height: 852px;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* El Iframe Móvil Nativo */
.preview-device-iframe.mobile-iframe {
  width: 393px;
  height: 852px;
  border: none;
  display: block;
  background: #000;
  -webkit-overflow-scrolling: touch;
}

/* Home Indicator Táctil Inferior */
.mobile-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.home-indicator-bar {
  width: 135px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ==========================================================================
   MODO ESCRITORIO STUDIO
   ========================================================================== */
.desktop-simulator-wrapper {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

.desktop-monitor-frame {
  width: 100%;
  height: 100%;
  max-width: 1360px;
  max-height: 100%;
  background: #15161c;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.85);
}

.monitor-header-bar {
  height: 38px;
  background: #1b1c23;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 15px;
  flex-shrink: 0;
}

.window-traffic-lights {
  display: flex;
  gap: 7px;
}

.light-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.light-dot.red { background: #ff5f56; }
.light-dot.yellow { background: #ffbd2e; }
.light-dot.green { background: #27c93f; }

.window-address-bar {
  flex: 1;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--gray-text);
}

.address-url {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-grotesk);
}

.desktop-viewport-container {
  flex: 1;
  width: 100%;
  min-height: 0;
  position: relative;
  background: #000;
  overflow: hidden;
}

.preview-device-iframe.desktop-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Transiciones no destructivas entre Simulador Móvil y Monitor de Escritorio */
.simulator-view-visible {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
  transition: opacity 0.25s ease;
}

.simulator-view-hidden {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: flex !important;
  z-index: -10 !important;
}

/* ==========================================================================
   VISIBILIDAD Y MANEJO DE PREVIEW LIMPIO
   ========================================================================== */

/* Cuando el Admin está abierto, ocultamos la web base de fondo para que no interfiera */
body.admin-open #mainApp {
  display: none !important;
}

/* Cuando la ventana está en modo preview (?preview=1), ocultamos el portal admin */
body.is-preview-window .admin-portal {
  display: none !important;
}

body.is-preview-window {
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .admin-studio-grid {
    grid-template-columns: 1fr;
  }
  .admin-preview-stage {
    display: none;
  }
}

/* ==========================================================================
   BOTÓN SUPERIOR DE ESTADÍSTICAS (EN CABECERA JUNTO A CERRAR SESIÓN)
   ========================================================================== */
.admin-top-stat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(33, 60, 128, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.admin-top-stat-btn:hover {
  background: rgba(33, 60, 128, 0.45);
  border-color: var(--yellow, #dab42d);
  color: var(--yellow, #dab42d);
  transform: translateY(-1px);
}

.admin-top-stat-btn.is-active {
  background: #213c80;
  border-color: var(--yellow, #dab42d);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(33, 60, 128, 0.5);
}

.admin-top-stat-btn .stat-icon {
  font-size: 0.95rem;
}

/* ==========================================================================
   BOTONES SUPERIORES DE SERVIDOR (GUARDAR Y PUBLICAR EN CABECERA)
   ========================================================================== */
.admin-top-server-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(33, 60, 128, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.admin-top-server-btn:hover:not(:disabled) {
  background: #213c80;
  border-color: var(--yellow, #dab42d);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(33, 60, 128, 0.35);
}

.admin-top-server-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.admin-top-server-btn.btn-publish-unified {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  border-color: rgba(134, 239, 172, 0.45) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.35) !important;
}

.admin-top-server-btn.btn-publish-unified:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  border-color: #86efac !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.5) !important;
  transform: translateY(-1px);
}

.admin-top-server-btn.btn-draft-quiet {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #cbd5e1 !important;
  font-size: 0.74rem !important;
  padding: 5px 10px !important;
}

.admin-top-server-btn.btn-draft-quiet:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.admin-top-server-btn.btn-publish {
  background: rgba(22, 101, 52, 0.35);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

.admin-top-server-btn.btn-publish:hover:not(:disabled) {
  background: #15803d;
  border-color: #86efac;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.4);
}

.admin-top-server-btn .server-btn-icon {
  font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN COMÚN: GESTIÓN ACADÉMICA (PROGRAMAS, COORDINADORES, REVISIONES)
   ========================================================================== */
.academico-hub-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(33, 60, 128, 0.12);
}

.academico-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #213c80;
  background: rgba(33, 60, 128, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.academico-hub-title h3 {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  color: var(--studio-ink, #0f172a);
  font-weight: 700;
}

.academico-nav-pills {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  background: rgba(33, 60, 128, 0.05);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(33, 60, 128, 0.1);
  overflow-x: auto;
}

.academico-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.academico-pill:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.academico-pill.is-active {
  background: #ffffff;
  color: #213c80;
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(33, 60, 128, 0.12);
}

.academico-pane {
  display: none;
}

.academico-pane.is-active {
  display: block;
  animation: fadeInPane 0.25s ease-out;
}

#coordinadoresMountContainer .admin-section,
#programsMountContainer .admin-section,
#revisionesMountContainer .admin-section {
  display: block !important;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Herramientas de Oferta Académica */
.program-actions-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(33, 60, 128, 0.04);
  border: 1px solid rgba(33, 60, 128, 0.1);
  border-radius: 10px;
  align-items: center;
}

.program-line-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dab42d;
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   GESTOR VISUAL DEL MENÚ Y ÁRBOL JERÁRQUICO
   ========================================================================== */
.admin-menu-tree-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-tree-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.menu-tree-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.menu-tree-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-tree-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 1.1rem;
  user-select: none;
}

.menu-tree-icon {
  font-size: 1.2rem;
  color: #213c80;
}

.menu-tree-label-wrap {
  flex: 1;
  min-width: 180px;
}

.menu-label-input {
  width: 100%;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.menu-tree-url-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 220px;
}

.menu-page-picker {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.8rem;
  color: #334155;
  font-family: inherit;
  max-width: 160px;
}

.menu-tree-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-vis-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.menu-vis-toggle-wrap input {
  cursor: pointer;
}

.btn-submenus-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(33, 60, 128, 0.08);
  border: 1px solid rgba(33, 60, 128, 0.18);
  color: #213c80;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submenus-badge:hover {
  background: rgba(33, 60, 128, 0.15);
}

.menu-tree-sublist {
  margin-top: 12px;
  padding-left: 28px;
  border-left: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-tree-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.menu-tree-subitem .branch-icon {
  color: #94a3b8;
  font-family: monospace;
  font-weight: bold;
}

/* ==========================================================================
   ESTADÍSTICAS EN PANTALLA COMPLETA
   ========================================================================== */
.admin-portal.analytics-fullscreen-active .admin-studio-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  height: calc(100% - 56px) !important;
  overflow: hidden !important;
}

.admin-portal.analytics-fullscreen-active .admin-tabs,
.admin-portal.analytics-fullscreen-active .admin-preview-stage,
.admin-portal.analytics-fullscreen-active .studio-inspector,
.admin-portal.analytics-fullscreen-active .admin-footer {
  display: none !important;
}

.admin-portal.analytics-fullscreen-active .admin-sidebar-controls {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
}

.admin-portal.analytics-fullscreen-active .admin-body {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  padding: 24px 36px 80px !important;
  background: #f8fafc !important;
  overflow-y: auto !important;
}

.admin-portal.analytics-fullscreen-active #tab-analytics {
  display: flex !important;
  max-width: 1600px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.admin-top-stat-btn.is-active {
  background: #213c80 !important;
  color: #ffffff !important;
  border-color: var(--yellow, #dab42d) !important;
  box-shadow: 0 0 10px rgba(218, 180, 45, 0.4) !important;
}

/* ==========================================================================
   GESTOR Y EDITOR INTEGRAL DE DIAPOSITIVAS (CAROUSEL 3D)
   ========================================================================== */
.slides-hub-header {
  background: rgba(33, 60, 128, 0.05);
  border: 1px solid rgba(33, 60, 128, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}
.slides-hub-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.slides-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #213c80;
  background: #eef4ff;
  border: 1px solid #c7d9fc;
  padding: 3px 8px;
  border-radius: 6px;
}
.slides-hub-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}
.slides-hub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(33, 60, 128, 0.08);
  padding-top: 10px;
}
.slides-search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 180px;
}
.slides-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #94a3b8;
  pointer-events: none;
}
.slide-search-input {
  padding-left: 30px !important;
  font-size: 0.78rem !important;
  height: 32px !important;
  border-radius: 6px !important;
}
.slides-actions-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.slide-tree-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slide-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.slide-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(33, 60, 128, 0.08);
}
.slide-card-item.is-paused {
  opacity: 0.82;
  background: #fbfcfe;
}
.slide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f6;
  cursor: pointer;
  user-select: none;
}
.slide-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.slide-drag-handle {
  cursor: grab;
  font-size: 1.15rem;
  color: #94a3b8;
  padding: 2px 4px;
}
.slide-drag-handle:active {
  cursor: grabbing;
}
.slide-mini-thumb-wrap {
  position: relative;
  width: 58px;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.slide-mini-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-mini-logo {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  padding: 1px;
}
.slide-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.slide-header-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slide-header-cat {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slide-card-header-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.slide-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: 0.15s;
}
.slide-status-pill.is-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.slide-status-pill.is-paused {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.slide-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #eef2f6;
  background: #ffffff;
}
.slide-card-body[hidden] {
  display: none !important;
}
.slide-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slide-field-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.slide-image-picker-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
}
.slide-large-thumb-preview {
  width: 84px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #1e293b;
  border: 1px solid #cbd5e1;
}
.slide-logo-preview {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: contain;
  background: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 3px;
}
.slide-image-inputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slide-presets-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.slide-preset-chip {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: 0.15s;
}
.slide-preset-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.slide-btn-cta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


