/* =====================================================================
   DESIGN SYSTEM - MEMBERPASS APP (CSS VANILLA CON WHITE-LABEL THEMING)
   ===================================================================== */

:root {
  --primary-color: #0f2a4a;
  --secondary-color: #00a8e8;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --bg-surface: #ffffff;
  --text-color: #0f172a;
  --text-muted: #475569;
  --subcard-bg: #f1f5f9;
  --border-color: #cbd5e1;
  --success-color: #059669;
  --brand-primary-contrast: #ffffff;
}

html.dark-mode, body.dark-mode {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --bg-surface: #1e293b;
  --text-color: #ffffff;
  --text-muted: #cbd5e1;
  --subcard-bg: #334155;
  --border-color: #475569;
  --brand-primary-contrast: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  padding-bottom: 40px;
  min-height: 100vh;
}

.header {
  background: var(--primary-color);
  color: white;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.role-nav-bar {
  width: 100%;
  display: flex;
  justify-content: center;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.brand-logo {
  height: 38px;
  border-radius: 8px;
  background: var(--bg-surface);
  padding: 3px;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px 40px 14px;
}

/* NAVEGACIÓN WEB APP (TABS NATIVAS PWA) */
.nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--card-bg);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(0, 168, 232, 0.08);
}

.tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 42, 74, 0.25);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px -2px rgba(15, 42, 74, 0.05);
  transition: box-shadow 0.2s ease;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 11px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--card-bg);
  color: var(--text-color);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.22);
  background-color: var(--bg-surface);
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300a8e8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--brand-primary-contrast);
  height: 48px;
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Contrato con Scroll Obligatorio */
.contract-scroll-box {
  height: 220px;
  overflow-y: scroll;
  border: 1px solid var(--border-color);
  background: var(--subcard-bg);
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-color);
  margin-bottom: 16px;
}

/* Biometría Canvas */
.canvas-pad {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  width: 100%;
  height: 180px;
  touch-action: none;
}

/* KPIs y Tablero Supervisor */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--subcard-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.role-simulator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 168, 232, 0.15);
  border: 1px solid #00a8e8;
  color: #00a8e8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Credencial Digital */
.digital-credential {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
  color: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(15,42,74,0.3);
  position: relative;
  overflow: hidden;
  max-width: 420px;
  margin: 20px auto;
}

.digital-credential::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(0, 168, 232, 0.2);
  border-radius: 50%;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th, .table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-enviado {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-afiliada {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* SISTEMA UNIFICADO DE TOASTS & MODALES (HOLDING OTTHER NORMAS) */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #1e293b;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #065f46;
  border-left: 4px solid #10b981;
}

.toast-error {
  background: #881337;
  border-left: 4px solid #f43f5e;
}

.toast-info {
  background: #0f172a;
  border-left: 4px solid #38bdf8;
}

.toast-warning {
  background: #78350f;
  border-left: 4px solid #f59e0b;
}

.toast-icon {
  display: flex;
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.modal-backdrop.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.card-elevated {
  background: var(--card-bg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
}

.modal-content {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.modal-active .modal-content {
  transform: scale(1);
}

.modal-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(6, 95, 70, 0.12);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

.modal-card-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-action-pdf, .btn-action-wa {
  cursor: pointer;
}

/* Componente Telefonico Unificado del Holding */
.phone-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--card-bg);
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.phone-input-container:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.22);
  background-color: var(--bg-surface);
}

.phone-prefix-tag {
  background-color: var(--subcard-bg);
  color: var(--text-color);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1.5px solid var(--border-color);
  user-select: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.phone-clean-input {
  flex: 1;
  height: 100%;
  padding: 0 14px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.phone-clean-input::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

/* =====================================================================
   CLASES SEMANTICAS LIMPIAS - MEMBERPASS NORMAS OTTHER 360
   Erradicacion 100% de estilos inline y cumplimiento WCAG
   ===================================================================== */

.brand-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 168, 232, 0.15);
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  flex-shrink: 0;
  padding: 4px;
}

.brand-text-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
  color: #ffffff;
}

.brand-tag {
  background: var(--secondary-color);
  color: #0f2a4a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.75rem;
  opacity: 0.85;
  margin: 0;
  color: #cbd5e1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.role-toggle-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
  background: rgba(0, 0, 0, 0.28);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 480px;
}

.role-pill-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  min-height: 36px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.role-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.role-pill-btn.active {
  background: var(--secondary-color);
  color: #0f2a4a;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 168, 232, 0.35);
}

.btn-vendedora-login {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
}

.btn-dark-toggle {
  padding: 6px 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-status-banner {
  background: rgba(0, 168, 232, 0.1);
  border-left: 4px solid var(--secondary-color);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
}

.role-panel-hidden {
  display: none;
}

.svg-sun-icon {
  display: none;
}

.admin-gov-card {
  border: 2px solid var(--secondary-color);
  background: var(--subcard-bg);
  margin-bottom: 20px;
}

.admin-gov-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-gov-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
}

.admin-gov-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 2px 0 0 0;
}

.admin-gov-actions {
  display: flex;
  gap: 8px;
}

.btn-admin-pill {
  font-size: 0.75rem;
  padding: 6px 10px;
}

.admin-gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  font-size: 0.8rem;
  background: var(--card-bg);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.form-grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.datos-adicionales-container {
  margin-top: 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--subcard-bg);
}

.datos-adicionales-summary {
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.datos-adicionales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.form-actions-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.btn-submit-prospecto {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(15, 42, 74, 0.2);
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn-abrir-alta-modal {
  background: var(--primary-color);
  color: var(--brand-primary-contrast);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-abrir-alta-modal:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-1px);
}

.form-header-bar {
  animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-reset-datos {
  font-size: 0.75rem;
  padding: 4px 10px;
  opacity: 0.8;
}

.table-responsive-box {
  overflow-x: hidden;
}

.table-full {
  width: 100%;
}

.clienta-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.btn-volver-consola {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clienta-role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clienta-greeting-box {
  background: var(--subcard-bg);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid var(--secondary-color);
}

.clienta-greeting-text {
  font-size: 13px;
  color: var(--text-color);
  font-weight: 600;
}

.form-section-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.titular-summary-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: var(--subcard-bg);
  color: var(--text-color);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
}

.titular-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.titular-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.titular-icon-secondary {
  background: rgba(0, 168, 232, 0.12);
  color: var(--secondary-color);
}

.titular-icon-success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.titular-summary-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.titular-summary-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-color);
}

.titular-summary-plan {
  color: var(--primary-color);
}

.contract-notice-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.contract-end-notice {
  text-align: center;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: 15px;
}

.contract-accept-wrapper {
  margin: 12px 0 16px 0;
}

.btn-unlock-contract {
  width: 100%;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--secondary-color);
  color: #0f2a4a;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 168, 232, 0.3);
}

.chk-contract-row {
  margin-top: 8px;
}

.chk-contract-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

.chk-contract-text {
  color: var(--text-muted);
  font-weight: 600;
}

.biometric-area-container {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.biometric-grid-2cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.biometric-pad-label {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.btn-clear-pad {
  font-size: 0.75rem;
  padding: 4px 8px;
  margin-top: 4px;
}

.btn-submit-adhesion {
  width: 100%;
  margin-top: 20px;
  font-size: 15px;
  padding: 14px;
  gap: 8px;
}

.credencial-card-success-title {
  color: #166534;
}

.btn-descargar-cred {
  width: 100%;
  margin-top: 14px;
  font-size: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cred-volver-consola {
  width: 100%;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* =====================================================================
   RESPONSIVE DESIGN MOVIL PWA - HOLDING OTTHER
   Piso minimo 0.75rem (12px), ergonomia tactil y navegacion adaptativa
   ===================================================================== */
@media (max-width: 600px) {
  .header {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-logo-container {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .brand-text-row {
    min-width: 0;
  }
  .brand-logo-badge {
    width: 34px;
    height: 34px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    display: none;
  }
  .header-actions {
    flex-shrink: 0;
    gap: 6px;
  }
  .btn-vendedora-login {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
  }
  .btn-vendedora-login .btn-login-text {
    display: none;
  }
  .btn-dark-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .role-pill-btn {
    font-size: 0.76rem;
    padding: 6px 2px;
    gap: 4px;
    min-height: 36px;
  }
  .role-pill-btn svg {
    width: 12px;
    height: 12px;
  }
  .container {
    padding: 8px 10px 60px 10px;
    margin: 0 auto;
  }
  .card {
    padding: 14px 12px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .admin-gov-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .btn-admin-pill {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    font-size: 0.8rem;
  }
  .admin-gov-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

