/* ── CSS Variables (Color.kt) ──────────────────────────────────────── */
:root {
  --bg-main:        #0B1640;
  --bg-card:        #102258;
  --bg-card-light:  #173070;
  --bg-divider:     #1E3D8A;

  --accent-yellow:  #ffca28;
  --accent-green:   #00f090;
  --accent-cyan:    #29b6f6;
  --accent-orange:  #ff7043;
  --accent-purple:  #9c27b0;
  --accent-red:     #ff5252;
  --accent-teal:    #26c6da;

  --text-primary:   #ddeeff;
  --text-secondary: #7a9cc0;
  --text-muted:     #3d5a78;

  --brand-black:    #000000;
  --brand-navy:     #050D24;
  --brand-yellow:   #ffca28;

  --beige-bg:       #ece5dd;
  --wa-green:       #128c7e;
  --wa-green-light: #dcf8c6;
  --bot-bubble:     #ffffff;
  --dark-card:      #2a2a2a;

  --status-recibido:     #8B6914;
  --status-validado:     #1B5E20;
  --status-preparacion:  #0D47A1;
  --status-listo:        #4A148C;
  --status-encamino:     #BF360C;
  --status-entregado:    #2E7D32;

  --tab-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── App Shell ────────────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ── Tab Content ──────────────────────────────────────────────────── */
#tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-pane {
  display: none;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.tab-pane.active { display: flex; flex-direction: column; }

/* ── Bottom Navigation ────────────────────────────────────────────── */
#bottom-nav {
  display: flex;
  background: var(--bg-card);
  border-top: 1px solid var(--bg-divider);
  padding-bottom: var(--safe-bottom);
  flex-shrink: 0;
  z-index: 100;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  cursor: pointer;
  position: relative;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.15s;
  min-height: var(--tab-h);
}

.nav-tab .tab-emoji  { font-size: 28px; line-height: 1; }
.nav-tab .tab-label  { font-size: 11px; margin-top: 3px; text-align: center; font-weight: 400; }
.nav-tab .tab-indicator {
  position: absolute;
  bottom: 6px;
  width: 20px; height: 2px;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.15s;
}

.nav-tab.active { background: transparent; }
.nav-tab.active .tab-label { font-weight: 700; }
.nav-tab.active .tab-indicator { opacity: 1; }

.nav-tab[data-tab="domicilios"]     { --tab-color: var(--accent-yellow); }
.nav-tab[data-tab="solicitudes"]    { --tab-color: var(--accent-cyan); }
.nav-tab[data-tab="alertas"]        { --tab-color: var(--accent-red); }
.nav-tab[data-tab="ph"]             { --tab-color: var(--accent-green); }
.nav-tab[data-tab="promos"]         { --tab-color: var(--accent-yellow); }

.nav-tab.active .tab-label        { color: var(--tab-color); }
.nav-tab.active .tab-indicator    { background: var(--tab-color); }
.nav-tab.active .tab-bg           {
  position: absolute; inset: 0;
  background: var(--tab-color);
  opacity: 0.1;
  border-radius: 10px;
  pointer-events: none;
}

/* ── PROMOS toggle ────────────────────────────────────────────────── */
.nav-tab.promo-on .tab-label     { color: var(--accent-yellow); font-weight: 700; }
.nav-tab.promo-on .tab-indicator { background: var(--accent-yellow); opacity: 1; }
.nav-tab.promo-on .tab-bg        { background: var(--accent-yellow); opacity: 0.1; }

/* ── Scrollbar hide ───────────────────────────────────────────────── */
::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   CHAT / DOMICILIOS SCREEN
═══════════════════════════════════════════════════════════════════ */
#pane-domicilios {
  background: var(--bg-main);
}

/* Header */
.chat-header {
  background: linear-gradient(90deg, #0D2466, #1848C8);
  padding: 10px 12px;
  flex-shrink: 0;
}
.chat-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-logo {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, #2979FF, #0D2466);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.chat-brand {
  flex: 1;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.chat-brand span.ctrl { color: #fff; }
.chat-brand span.clik { color: var(--accent-cyan); }
.badge-online {
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,240,144,0.15);
  border-radius: 12px;
  padding: 4px 8px;
}
.badge-online .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
}
.badge-online span { font-size: 10px; color: var(--accent-green); font-weight: 600; }
.chat-subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Chat body */
.chat-body {
  flex: 1;
  position: relative;
  background: var(--beige-bg);
  overflow: hidden;
  display: flex;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* Chat bubbles */
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}
.bubble.bot {
  background: var(--bot-bubble);
  color: #1C1C1C;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.bubble.user {
  background: var(--wa-green-light);
  color: #1C1C1C;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

/* Side category tabs */
.side-cats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  flex-shrink: 0;
  width: 76px;
  overflow-y: auto;
  overflow-x: hidden;
}
.side-cat {
  width: 76px; height: 52px;
  border-radius: 10px 0 0 10px;
  background: #E8E8E8;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  gap: 2px;
}
.side-cat.active { background: var(--wa-green); }
.side-cat .cat-emoji { font-size: 18px; }
.side-cat .cat-name  {
  font-size: 9px; color: #555;
  font-weight: 400; max-width: 68px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-cat.active .cat-name { color: #fff; font-weight: 700; }

.side-cart {
  width: 76px; height: 52px;
  border-radius: 10px 0 0 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  background: #E8E8E8;
  gap: 2px;
  margin-top: 6px;
}
.side-cart.has-items { background: var(--wa-green); }
.side-cart .cart-name { font-size: 9px; font-weight: 700; color: #555; max-width: 68px; text-align: center; }
.side-cart.has-items .cart-name { color: #fff; }

/* Combo promo bar */
.promo-bar {
  background: #f0f0f0;
  padding: 6px 12px;
  flex-shrink: 0;
}
.combo-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.combo-emoji { font-size: 28px; }
.combo-info { flex: 1; }
.combo-info .combo-name { font-size: 13px; font-weight: 700; color: #1C1C1C; }
.combo-info .combo-desc { font-size: 11px; color: #666; }
.combo-price { font-size: 14px; font-weight: 800; color: var(--wa-green); }
.btn-add-combo {
  background: var(--wa-green);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Input bar */
.chat-input-bar {
  background: #f0f0f0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1px solid #CCC;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 15px;
  background: #fff;
  color: #1C1C1C;
  outline: none;
  height: 50px;
}
.chat-input:focus { border-color: var(--wa-green); }
.btn-send {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--wa-green);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   MODALES (Bottom Sheet)
═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.hidden { display: none; }

.bottom-sheet {
  background: var(--bg-main);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  padding-bottom: 24px;
}
.sheet-handle {
  width: 48px; height: 4px;
  background: var(--bg-divider);
  border-radius: 2px;
  margin: 10px auto;
}
.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 4px 16px 12px;
}
.products-row {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
}

/* Product card */
.product-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px;
  width: 150px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-emoji { font-size: 32px; text-align: center; }
.product-name  { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.product-desc  { font-size: 11px; color: var(--text-secondary); line-height: 1.35; }
.product-price { font-size: 14px; font-weight: 800; color: var(--accent-green); }
.btn-add-product {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

/* Cart sheet */
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--bg-divider);
}
.cart-item-name { flex: 1; font-size: 13px; color: var(--text-primary); }
.cart-item-qty  { font-size: 12px; color: var(--text-muted); margin-right: 8px; }
.cart-item-price{ font-size: 13px; font-weight: 700; color: #fff; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px 0;
}
.cart-total-label { font-size: 15px; font-weight: 700; color: var(--accent-cyan); }
.cart-total-val   { font-size: 15px; font-weight: 700; color: var(--accent-cyan); }
.btn-confirm {
  display: block;
  width: calc(100% - 32px);
  margin: 16px auto 0;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cart-empty { padding: 16px; font-size: 14px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════
   ORDER STATUS SCREEN
═══════════════════════════════════════════════════════════════════ */
#pane-solicitudes { background: var(--beige-bg); }

.order-header {
  background: #000;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.order-header-emoji { font-size: 28px; }
.order-header-id {
  font-size: 18px; font-weight: 700;
  color: var(--brand-yellow);
}
.order-header-status { font-size: 12px; color: #fff; }

.order-body { padding: 16px 12px; display: flex; flex-direction: column; gap: 16px; }

.section-label-small {
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Timeline widget */
.timeline-widget {
  background: #1C1C2E;
  border-radius: 16px;
  padding: 16px 0;
  overflow-x: auto;
}
.timeline-row {
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-width: max-content;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}
.step-emoji    { font-size: 20px; margin-bottom: 4px; }
.step-emoji.current { font-size: 26px; }
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #3A3A4A;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
  font-weight: 700;
  transition: transform 0.3s;
}
.step-circle.completed { opacity: 0.75; }
.step-circle.current   { width: 36px; height: 36px; animation: pulse-step 0.9s ease-in-out infinite alternate; }
.step-circle .step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
}
@keyframes pulse-step {
  from { transform: scale(1); }
  to   { transform: scale(1.18); }
}
.step-time {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  margin-top: 6px; text-align: center;
}
.step-time.has-time { color: var(--brand-yellow); }
.step-label {
  font-size: 9px; color: var(--text-muted);
  text-align: center; max-width: 72px; line-height: 1.2;
  margin-top: 1px;
}
.step-label.current { color: #fff; font-weight: 700; }
.step-label.completed { color: rgba(221,238,255,0.75); }

.timeline-connector {
  width: 16px; height: 3px;
  border-radius: 2px;
  background: #3A3A4A;
  flex-shrink: 0;
}
.timeline-connector.filled { background: var(--brand-yellow); }

/* Dark cards */
.dark-card {
  background: var(--dark-card);
  border-radius: 16px;
  padding: 16px;
}
.dark-section-title {
  font-size: 13px; font-weight: 700;
  color: var(--brand-yellow);
  margin-bottom: 8px;
}
.dark-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--bg-divider);
}
.dark-row:last-child { border-bottom: none; }
.dark-row .item-name { flex: 1; font-size: 13px; color: var(--text-primary); }
.dark-row .item-price{ font-size: 13px; font-weight: 700; color: #fff; }
.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 0;
}
.total-label { font-size: 15px; font-weight: 700; color: var(--brand-yellow); }
.total-val   { font-size: 15px; font-weight: 700; color: var(--brand-yellow); }

.data-row {
  display: flex;
  padding: 4px 0;
}
.data-label { flex: 0 0 35%; font-size: 12px; color: var(--text-muted); }
.data-value { flex: 0 0 65%; font-size: 12px; color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════════
   ALERTAS (AC 3000) SCREEN
═══════════════════════════════════════════════════════════════════ */
#pane-alertas {
  background: linear-gradient(180deg, #080E2A 0%, #0D1B4B 50%, #080E2A 100%);
}

.ac-header {
  background: linear-gradient(90deg, #050D24, #0D1B4B, #050D24);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.ac-logo { width: 56px; height: 56px; flex-shrink: 0; }
.ac-divider { width: 1.5px; height: 52px; background: #1A2A6C; }
.ac-title-row { display: flex; align-items: flex-end; gap: 2px; }
.ac-title-row .ac-word { font-size: 28px; font-weight: 900; color: #B0BEC5; }
.ac-title-row .ac-num  { font-size: 28px; font-weight: 900; color: #2979FF; }
.ac-subtitle { font-size: 9px; font-weight: 700; color: rgba(176,190,197,0.7); letter-spacing: 1.5px; }
.ac-spacer { flex: 1; }
.ac-status { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pulsing-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #2E7D32;
  animation: pulse-dot 0.9s ease-in-out infinite alternate;
}
@keyframes pulse-dot {
  from { transform: scale(1); }
  to   { transform: scale(1.4); }
}
.ac-active-label { font-size: 8px; font-weight: 700; color: #2E7D32; letter-spacing: 1px; }
.ac-online-label { font-size: 7px; color: rgba(176,190,197,0.5); }

.ac-body { padding: 0 12px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; }

.ac-section-label {
  font-size: 10px; font-weight: 700;
  color: rgba(176,190,197,0.6);
  letter-spacing: 2px;
  padding: 4px 0 0 4px;
}

.system-card {
  background: #0D1B4B;
  border-radius: 16px;
  border: 1px solid #1A2A6C;
  padding: 16px;
}
.system-card-title {
  font-size: 10px; font-weight: 700;
  color: rgba(176,190,197,0.5);
  letter-spacing: 1.5px; margin-bottom: 12px;
}
.kpi-row { display: flex; justify-content: space-around; }
.kpi-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.kpi-emoji { font-size: 20px; }
.kpi-value { font-size: 16px; font-weight: 700; }
.kpi-label { font-size: 9px; color: rgba(176,190,197,0.5); }

.alert-level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #1A2A6C;
  background: #0D1B4B;
}
.alert-level-row.active-row { border-width: 1.5px; }
.level-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.level-info { flex: 1; }
.level-name { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.level-desc { font-size: 10px; color: rgba(176,190,197,0.6); }
.level-active-badge { font-size: 9px; font-weight: 700; }

.alert-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0D1B4B;
  border-radius: 10px;
  padding: 12px;
}
.history-dot-emoji { font-size: 14px; }
.history-info { flex: 1; }
.history-msg  { font-size: 12px; color: #fff; font-weight: 500; }
.history-time { font-size: 10px; color: rgba(176,190,197,0.5); }

.feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13,27,75,0.6);
  border-radius: 10px;
  padding: 12px;
}
.feature-emoji { font-size: 18px; }
.feature-text  { flex: 1; font-size: 12px; color: rgba(176,190,197,0.7); }
.feature-soon  { font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   PH SCREEN
═══════════════════════════════════════════════════════════════════ */
#pane-ph { background: var(--bg-main); }

.ph-header {
  background: var(--bg-card);
  padding: 18px 20px;
  flex-shrink: 0;
}
.ph-header-row { display: flex; align-items: center; gap: 12px; }
.ph-logo { font-size: 32px; }
.ph-title   { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.ph-subtitle{ font-size: 12px; color: var(--text-secondary); }

.account-banner {
  margin-top: 12px;
  background: rgba(0,240,144,0.10);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.account-status { font-size: 11px; color: var(--text-secondary); }
.account-status .al-dia { font-size: 16px; font-weight: 700; color: var(--accent-green); }
.account-status .last-pay { font-size: 11px; color: var(--text-muted); }
.account-right { text-align: right; }
.account-right .cuota-label { font-size: 11px; color: var(--text-secondary); }
.account-right .cuota-val   { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.account-right .apto-label  { font-size: 11px; color: var(--text-muted); }

.ph-kpi-row {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  overflow-x: auto;
}
.ph-kpi {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.ph-kpi-val   { font-size: 22px; font-weight: 700; }
.ph-kpi-label { font-size: 10px; color: var(--text-secondary); }

.section-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
}
.section-bar-line { width: 3px; height: 16px; border-radius: 2px; }
.section-bar-text { font-size: 13px; font-weight: 700; color: var(--text-primary); }

.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 14px;
}
.module-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.module-card:active { opacity: 0.7; }
.module-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.module-emoji { font-size: 26px; }
.module-badge {
  font-size: 9px;
  border-radius: 4px;
  padding: 2px 5px;
}
.module-title    { font-size: 13px; font-weight: 600; }
.module-subtitle { font-size: 10px; color: var(--text-secondary); margin-top: 1px; }

.announcement-row {
  margin: 0 14px 8px;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
}
.ann-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ann-left { display: flex; align-items: center; gap: 8px; }
.ann-tag {
  font-size: 9px;
  border-radius: 4px;
  padding: 2px 6px;
}
.ann-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.ann-date  { font-size: 10px; color: var(--text-muted); }
.ann-preview { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-top: 8px; }
.ann-preview.hidden { display: none; }

.ph-prox-card {
  margin: 12px 14px 0;
  background: var(--bg-card-light);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.ph-prox-emoji  { font-size: 32px; }
.ph-prox-title  { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.ph-prox-text   { font-size: 11px; color: var(--text-secondary); }

/* ── Spacer at bottom of scrollable panes ─────────────────────────── */
.bottom-spacer { height: 16px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════
   NUEVOS COMPONENTES BETA
   ══════════════════════════════════════════════════════════════════ */

/* ── Botón hamburguesa ───────────────────────────────────────────── */
.menu-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  background: #102258;
  border: 1px solid #1E3D8A;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Dropdown overlay ────────────────────────────────────────────── */
.dropdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: flex-end;
}
.dropdown-overlay.hidden { display: none; }

.dropdown-panel {
  background: #0D1B4B;
  width: 260px;
  height: 100%;
  overflow-y: auto;
  padding-top: 16px;
  border-left: 1px solid #1E3D8A;
  display: flex;
  flex-direction: column;
}

.dropdown-close {
  text-align: right;
  padding: 8px 16px 4px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.dropdown-section-title {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 16px 6px;
  font-weight: 600;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  cursor: pointer;
  transition: background .15s;
}
.dropdown-item:hover, .dropdown-item:active {
  background: #173070;
}
.dropdown-item-emoji { font-size: 18px; width: 26px; text-align: center; }
.dropdown-item-label { font-size: 14px; color: var(--text-primary); }

.dropdown-divider {
  height: 1px;
  background: #1E3D8A;
  margin: 8px 0;
}

/* ── Chat Recepción ──────────────────────────────────────────────── */
.bubble-wrap        { display: flex; flex-direction: column; margin-bottom: 3px; }
.bw-left            { align-items: flex-start; }
.bw-right           { align-items: flex-end; }
.bubble-time        { font-size: 10px; color: var(--text-muted); margin-top: 1px; padding: 0 6px; }

.rec-avatar {
  width: 40px; height: 40px;
  background: var(--bg-card-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.rec-name   { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.rec-online { font-size: 11px; color: var(--accent-green); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.rec-dot    { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); }

/* ── Citófono ────────────────────────────────────────────────────── */
.cito-header {
  background: var(--bg-card);
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-divider);
  flex-shrink: 0;
}
.cito-header-row    { display: flex; align-items: center; gap: 12px; }
.cito-icon-hdr      { font-size: 26px; }
.cito-title         { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.cito-subtitle      { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.cito-badge         { margin-left: auto; font-size: 10px; color: var(--text-muted); letter-spacing: .5px; }
.cito-badge-active  { color: var(--accent-green); }

.cito-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 14px;
  text-align: center;
}
.cito-big-icon      { font-size: 72px; line-height: 1; }
.cito-state-label   { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.cito-state-desc    { font-size: 13px; color: var(--text-secondary); line-height: 1.5; max-width: 260px; }

.btn-simular {
  margin-top: 12px;
  background: var(--bg-card-light);
  border: 1px solid var(--bg-divider);
  border-radius: 20px;
  padding: 10px 22px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

/* Entrante */
.cito-entrante      { gap: 10px; }
.cito-ring-icon     { font-size: 72px; animation: cito-ring .5s infinite alternate; }
@keyframes cito-ring { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.cito-caller-tag    { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.cito-caller-name   { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.cito-caller-sub    { font-size: 12px; color: var(--text-secondary); }

.cito-actions       { display: flex; gap: 40px; margin-top: 20px; }
.cito-action-col    { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cito-action-label  { font-size: 11px; color: var(--text-secondary); }

.btn-cito-rechazar {
  width: 64px; height: 64px; border-radius: 50%; border: none;
  background: var(--accent-red); color: #fff; font-size: 26px; cursor: pointer;
}
.btn-cito-contestar {
  width: 64px; height: 64px; border-radius: 50%; border: none;
  background: var(--accent-green); color: #000; font-size: 26px; cursor: pointer;
}

/* En llamada */
.cito-timer {
  font-size: 38px; font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}
.btn-abrir-puerta {
  width: 100%; max-width: 240px;
  background: var(--accent-green);
  border: none; border-radius: 12px;
  padding: 15px; font-size: 16px; font-weight: 700;
  color: #000; cursor: pointer;
}
.btn-colgar {
  width: 100%; max-width: 240px;
  background: var(--accent-red);
  border: none; border-radius: 12px;
  padding: 12px; font-size: 14px;
  color: #fff; cursor: pointer;
}
