/* === Experto Telcel · Catálogo Menu (Off-canvas izquierda) v1.0.3 === */

/* Reset agresivo dentro del drawer — neutraliza overrides de tema/Elementor */
.etcm-root,
.etcm-root *,
.etcm-trigger,
.etcm-trigger * {
  box-sizing: border-box;
}
.etcm-root button,
.etcm-trigger {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-family: inherit !important;
}

/* Trigger button */
.etcm-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  background: linear-gradient(90deg, #ff3399, #6b29c7) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 14px rgba(107, 41, 199, .25) !important;
  text-transform: none !important;
  letter-spacing: .2px;
}
.etcm-trigger:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(107, 41, 199, .35) !important; }
.etcm-trigger:active { transform: translateY(0); }
.etcm-trigger-icon { font-size: 18px; line-height: 1; }
.etcm-trigger-label { letter-spacing: .2px; }

/* === Auto-injected FAB (bottom-left, no choca con chat widget) === */
.etcm-trigger.etcm-trigger-fab {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  z-index: 99997 !important;
  padding: 14px 22px !important;
  font-size: 15px !important;
  box-shadow: 0 10px 28px rgba(107, 41, 199, .40) !important;
}
.etcm-trigger.etcm-trigger-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(107, 41, 199, .50) !important;
}
.etcm-trigger.etcm-trigger-fab .etcm-trigger-icon { font-size: 20px; }

/* Mobile: FAB un poco más compacto */
@media (max-width: 480px) {
  .etcm-trigger.etcm-trigger-fab {
    bottom: 16px !important;
    left: 16px !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
  }
}

/* Drawer root */
.etcm-root {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.etcm-root.etcm-open { opacity: 1; pointer-events: auto; }

/* Backdrop */
.etcm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 6, 40, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.etcm-root.etcm-open .etcm-backdrop { opacity: 1; }

/* Drawer panel */
.etcm-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 90vw);
  background: #fff;
  box-shadow: 4px 0 30px rgba(0,0,0,.18);
  transform: translateX(-110%);
  transition: transform .28s cubic-bezier(.2,.7,.25,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
}
.etcm-root.etcm-open .etcm-drawer { transform: translateX(0); }

/* Views — only .etcm-active visible */
.etcm-drawer .etcm-view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: #fff;
}
.etcm-drawer .etcm-view.etcm-active { display: flex; }
.etcm-drawer .etcm-view[hidden] { display: none !important; }

/* Header */
.etcm-drawer .etcm-header {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 12px !important;
  border-bottom: 1px solid #f0eaf6;
  flex-shrink: 0;
  background: #fff !important;
}
.etcm-drawer .etcm-title {
  flex: 1;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #25154a !important;
  letter-spacing: .2px;
  line-height: 1.3 !important;
  text-transform: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Header buttons (back + close) — round, no background */
.etcm-drawer .etcm-back,
.etcm-drawer .etcm-close {
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
  color: #6b29c7 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  transition: background .12s ease;
  font-weight: 400 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.etcm-drawer .etcm-back:hover,
.etcm-drawer .etcm-close:hover {
  background: #f4ecfb !important;
}
.etcm-drawer .etcm-close { color: #25154a !important; }

/* Search */
.etcm-drawer .etcm-search-wrap { padding: 10px 18px !important; flex-shrink: 0; background: #fff !important; }
.etcm-drawer .etcm-search {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1px solid #e6e0ec !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color .12s ease, box-shadow .12s ease;
  font-family: inherit !important;
  background: #fafaff !important;
  color: #25154a !important;
  box-shadow: none !important;
}
.etcm-drawer .etcm-search:focus {
  border-color: #6b29c7 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(107, 41, 199, .12) !important;
}

/* List */
.etcm-drawer .etcm-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 0 24px !important;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  background: #fff !important;
}
.etcm-drawer .etcm-list-models { padding-bottom: 40px !important; }

.etcm-drawer .etcm-item {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
}
.etcm-drawer .etcm-item[hidden],
.etcm-drawer .etcm-item.etcm-hidden { display: none !important; }

.etcm-drawer .etcm-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 18px !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #f5f1fa !important;
  text-align: left !important;
  text-decoration: none !important;
  color: #25154a !important;
  cursor: pointer;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  transition: background .1s ease;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
.etcm-drawer .etcm-row:hover { background: #fbf6ff !important; }
.etcm-drawer .etcm-row:active { background: #f3eafa !important; }
.etcm-drawer .etcm-row:focus { outline: 2px solid #6b29c7 !important; outline-offset: -2px; }

.etcm-drawer .etcm-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f3eefa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.etcm-drawer .etcm-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.etcm-drawer .etcm-thumb-fallback {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #6b29c7 !important;
  letter-spacing: -.5px;
  text-transform: uppercase;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f4ecfb 0%, #ffe9f5 100%);
  border-radius: 8px;
}

.etcm-drawer .etcm-label-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.etcm-drawer .etcm-label {
  font-weight: 600 !important;
  color: #25154a !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent !important;
}
.etcm-drawer .etcm-sublabel {
  font-size: 12px !important;
  color: #888097 !important;
  margin-top: 2px;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  background: transparent !important;
}
.etcm-drawer .etcm-arrow {
  flex-shrink: 0;
  color: #b8a6d6 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
  background: transparent !important;
}

/* Empty state */
.etcm-drawer .etcm-list[data-empty="1"]::after {
  content: "Sin resultados";
  display: block;
  padding: 30px 18px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Body lock when drawer open */
body.etcm-locked { overflow: hidden; }

/* Small screens */
@media (max-width: 480px) {
  .etcm-drawer { width: 100vw; }
  .etcm-drawer .etcm-title { font-size: 16px !important; }
  .etcm-drawer .etcm-row { padding: 9px 14px !important; font-size: 14px !important; }
  .etcm-drawer .etcm-search-wrap { padding: 10px 14px !important; }
}
