:root {
  --color-primary: #0A0A0A;
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F5F5F7;
  --color-border: #E5E5EA;
  --color-accent: #FF6B35;
  --color-accent-hover: #E55A2B;
  --color-success: #34C759;
  --color-warning: #FF9500;
  --color-danger: #FF3B30;
  --color-text-secondary: #8E8E93;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-height: 60px;
  --header-height: 56px;
  --font: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-primary);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--nav-height);
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

/* ── Typography ── */
h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.3px; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p  { font-size: 0.9rem; line-height: 1.5; }
small { font-size: 0.78rem; color: var(--color-text-secondary); }

/* ── Header ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.header-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.header-logo-fallback {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  white-space: nowrap;
  font-family: "Courier New", monospace;
}
.header-title {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-subtitle {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-user {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.65rem;
  font-family: var(--font);
  font-weight: 500;
  min-height: 44px;
  transition: color 0.15s;
  text-decoration: none;
  padding: 4px 0;
}
.nav-item.active { color: var(--color-accent); }
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* ── Content ── */
.page { padding: 0 0 16px; display: none; }
.page.active { display: block; }
.section { padding: 16px; }
.section + .section { border-top: 1px solid var(--color-border); }
.section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

/* ── Cards ── */
.card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}
.card-row:last-child { border-bottom: none; }

/* ── Stato dot ── */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-success { background: var(--color-success); }
.dot-warning { background: var(--color-warning); }
.dot-danger  { background: var(--color-danger); }
.dot-gray    { background: var(--color-border); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: #E8F9EE; color: #1A7A35; }
.badge-warning { background: #FFF4E5; color: #A05C00; }
.badge-danger  { background: #FFF0EF; color: #B22020; }
.badge-blue    { background: #EEF4FF; color: #1A4FA0; }
.badge-gray    { background: var(--color-bg-secondary); color: var(--color-text-secondary); border: 1px solid var(--color-border); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover, .btn-primary:active { background: var(--color-accent-hover); }
.btn-secondary { background: var(--color-bg-secondary); color: var(--color-primary); border: 1px solid var(--color-border); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-accent); border: 1px solid var(--color-accent); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  right: 16px;
  z-index: 150;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
  font-size: 1.6rem;
  line-height: 1;
  transition: background 0.15s, transform 0.1s;
}
.fab:active { transform: scale(0.94); background: var(--color-accent-hover); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--color-accent); }
.form-control.error { border-color: var(--color-danger); }
.form-error {
  font-size: 0.78rem;
  color: var(--color-danger);
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }
.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
select.form-control { 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='%238E8E93' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { min-height: 80px; resize: vertical; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--color-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--color-border);
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--color-text-secondary);
}
.modal-body { overflow-y: auto; padding: 20px; flex: 1; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--color-border); display: flex; gap: 10px; }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-secondary) 25%, #EBEBEB 50%, var(--color-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-line { height: 16px; margin-bottom: 8px; }
.skel-card { height: 72px; margin-bottom: 8px; }

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
  color: var(--color-text-secondary);
}
.empty-state-icon { font-size: 2.5rem; }
.empty-state h3 { font-size: 1rem; color: var(--color-primary); }
.empty-state p { font-size: 0.85rem; }

/* ── Alert strip ── */
.alert-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
}
.alert-strip.danger { background: #FFF0EF; border-left: 3px solid var(--color-danger); }
.alert-strip.warning { background: #FFF4E5; border-left: 3px solid var(--color-warning); }
.alert-strip .alert-text { flex: 1; min-width: 0; }
.alert-strip .alert-title { font-size: 0.85rem; font-weight: 600; }
.alert-strip .alert-sub { font-size: 0.75rem; color: var(--color-text-secondary); }

/* ── Flota card ── */
.flota-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  min-height: 64px;
  transition: background 0.1s;
}
.flota-item:active { background: var(--color-bg-secondary); }
.flota-item:last-child { border-bottom: none; }
.flota-info { flex: 1; min-width: 0; }
.flota-matricula { font-size: 0.95rem; font-weight: 700; }
.flota-modelo { font-size: 0.78rem; color: var(--color-text-secondary); }
.flota-estado { font-size: 0.78rem; margin-top: 2px; }
.flota-servicio { font-size: 0.78rem; color: var(--color-primary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Settimana grid ── */
.semana-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.semana-grid {
  display: grid;
  min-width: 700px;
}
.semana-header-row, .semana-row { display: contents; }
.semana-cell {
  padding: 6px 4px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  min-height: 48px;
  font-size: 0.72rem;
}
.semana-cell-label {
  background: var(--color-bg-secondary);
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  position: sticky;
  left: 0;
  z-index: 10;
  border-right: 2px solid var(--color-border);
}
.semana-day-header {
  background: var(--color-bg-secondary);
  font-weight: 600;
  font-size: 0.72rem;
  text-align: center;
  padding: 6px 4px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.semana-day-header.today { color: var(--color-accent); font-weight: 800; }
.semana-servicio-chip {
  background: var(--color-accent);
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  margin: 1px 0;
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.semana-empty-cell { cursor: pointer; display: block; width: 100%; height: 100%; }

/* ── Settimana nav ── */
.semana-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  gap: 8px;
}
.semana-nav-title { font-size: 0.9rem; font-weight: 700; text-align: center; flex: 1; }

/* ── Lista ── */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  min-height: 56px;
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--color-bg-secondary); }
.list-item-info { flex: 1; min-width: 0; }
.list-item-title { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub { font-size: 0.75rem; color: var(--color-text-secondary); margin-top: 2px; }

/* ── Overlap warning ── */
.overlap-warning {
  background: #FFF4E5;
  border: 1px solid var(--color-warning);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}
.overlap-warning strong { color: #A05C00; }

/* ── Ajustes ── */
.settings-section { padding: 16px; }
.settings-section + .settings-section { border-top: 8px solid var(--color-bg-secondary); }
.settings-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--color-text-secondary); margin-bottom: 12px; }

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--color-danger); }
#toast.success { background: var(--color-success); }

/* ── Login ── */
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--color-bg);
}
.login-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 12px; }
.login-logo-fallback {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--color-primary);
  font-family: "Courier New", monospace;
  margin-bottom: 8px;
}
.login-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.login-sub { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 32px; }
.login-form { width: 100%; max-width: 360px; }
.login-error {
  background: #FFF0EF;
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--color-danger);
  margin-bottom: 16px;
  display: none;
}
.login-error.visible { display: block; }

/* ── Powered by ── */
.powered-by {
  font-size: 11px;
  color: #999;
  text-align: center;
  padding: 12px;
  margin-top: auto;
}

/* ── Autocomplete ── */
.autocomplete-container { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: none;
}
.autocomplete-dropdown.open { display: block; }
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--color-border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item:active { background: var(--color-bg-secondary); }
.autocomplete-item.new-item { color: var(--color-accent); font-weight: 600; }

/* ── Detail header ── */
.detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
.detail-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0;
}
.detail-title { font-size: 1rem; font-weight: 700; }

/* ── Date strip ── */
.date-strip {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-bottom: 1px solid var(--color-border);
}

/* ── Responsive tweaks ── */
@media (min-width: 600px) {
  .modal { border-radius: var(--radius); margin: auto; margin-bottom: 0; }
  .modal-backdrop { align-items: center; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1C1C1E;
    --color-bg-secondary: #2C2C2E;
    --color-border: #3A3A3C;
    --color-primary: #F2F2F7;
    --color-text-secondary: #8E8E93;
  }
  .semana-day-header, .semana-cell-label { background: #2C2C2E; }
  .autocomplete-dropdown { background: #2C2C2E; }
  .modal { background: #1C1C1E; }
  .login-page { background: #1C1C1E; }
}

/* ── WhatsApp button ── */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font);
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}
.btn-whatsapp:hover { background: #1DA851; }
.btn-whatsapp:active { background: #178A44; }

/* ── Hamburger button ── */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.hamburger:active { background: var(--color-bg-secondary); }

/* ── Drawer ── */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 399;
}
.drawer-backdrop.open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 82vw;
  background: var(--color-bg);
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  min-height: 60px;
}
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text-secondary);
  padding: 4px 6px;
  line-height: 1;
  border-radius: var(--radius-sm);
}
.drawer-close:hover { background: var(--color-bg-secondary); }
.drawer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.drawer-nav {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
.drawer-nav li button {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 14px;
}
.drawer-nav li button:hover,
.drawer-nav li button:active { background: var(--color-bg-secondary); }
.drawer-nav li button svg { flex-shrink: 0; color: var(--color-text-secondary); }
.drawer-separator { border-top: 1px solid var(--color-border); margin: 8px 0; }

/* ── Service contextual action sheet ── */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  min-width: 36px;
  min-height: 36px;
}
.btn-icon:active { background: var(--color-bg-secondary); }

.svc-mas-sheet {
  position: fixed;
  bottom: var(--nav-height);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 350;
  padding: 0 0 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.14);
}
.svc-mas-handle {
  width: 32px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 10px auto 8px;
}
.svc-mas-item {
  width: 100%;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font);
  font-size: 0.97rem;
  font-weight: 500;
  color: #111111;
  -webkit-text-fill-color: #111111;
  display: flex;
  align-items: center;
  gap: 14px;
}
.svc-mas-item:hover, .svc-mas-item:active { background: #f5f5f7; }
.svc-mas-item svg { flex-shrink: 0; color: #555555; }
.svc-mas-item-danger { color: #C0392B !important; -webkit-text-fill-color: #C0392B !important; }
.svc-mas-item-danger svg { color: #C0392B !important; }

/* ── Bottom-nav "Más" menu ─────────────────────────────────────────────── */
.mas-menu-bottom {
  display: none;
  position: fixed;
  bottom: var(--nav-height);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #E5E5EA;
  z-index: 199;
  padding: 8px 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.mas-menu-bottom.is-open { display: block; }

.mas-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(0,0,0,0.3);
}
.mas-menu-backdrop.is-open { display: block; }

.mas-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: #FFFFFF;
  color: #1A1A1A;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-text-fill-color: #1A1A1A;
  -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}
.mas-menu-item:active { background: #F5F5F7; }
.mas-menu-item svg { stroke: #555555; flex-shrink: 0; width: 20px; height: 20px; }
.mas-menu-item .list-item-title { color: #1A1A1A; -webkit-text-fill-color: #1A1A1A; }
.mas-menu-item.is-hidden { display: none !important; }

@media (prefers-color-scheme: dark) {
  .mas-menu-bottom { background: #FFFFFF !important; border-top-color: #E5E5EA !important; }
  .mas-menu-item { background: #FFFFFF !important; color: #1A1A1A !important; -webkit-text-fill-color: #1A1A1A !important; }
  .mas-menu-item .list-item-title { color: #1A1A1A !important; -webkit-text-fill-color: #1A1A1A !important; }
}

/* WhatsApp inline icon in servicio rows */
.svc-row-wa-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.svc-row-wa-active {
  background: #25D366;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
.svc-row-wa-active:active { opacity: 0.7; }
.svc-row-wa-disabled {
  background: #E0E0E0;
  color: #9E9E9E;
  -webkit-text-fill-color: #9E9E9E;
  -webkit-appearance: none;
}
@media (prefers-color-scheme: dark) {
  .svc-row-wa-disabled { background: #3A3A3A; color: #666666; -webkit-text-fill-color: #666666; }
}
