/* Lista desplegable neón de EUPHORIA: sustituye el menú nativo
   (fondo blanco de Windows) y deja el <select> real como fuente de verdad. */

.neon-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.neon-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  background: none !important;
  box-shadow: none !important;
}

.neon-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 226, 230, 0.28);
  background: rgba(8, 4, 18, 0.78);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(45, 226, 230, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.neon-select__trigger:hover {
  border-color: rgba(45, 226, 230, 0.55);
  box-shadow: 0 0 14px rgba(45, 226, 230, 0.18);
}

.neon-select__trigger:focus,
.neon-select__trigger:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 226, 230, 0.22), 0 0 18px rgba(45, 226, 230, 0.28);
}

.neon-select.is-open .neon-select__trigger {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 226, 230, 0.22), 0 0 18px rgba(45, 226, 230, 0.32);
}

.neon-select.is-disabled .neon-select__trigger {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.neon-select__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neon-select__arrow {
  flex: 0 0 auto;
  width: 12px;
  height: 8px;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 0 6px rgba(45, 226, 230, 0.9));
  transition: transform 0.2s ease;
}

.neon-select.is-open .neon-select__arrow {
  transform: rotate(180deg);
}

.neon-select-panel {
  box-sizing: border-box;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--teal);
  background: linear-gradient(180deg, rgba(28, 10, 48, 0.98), rgba(10, 4, 20, 0.98));
  box-shadow:
    0 0 0 1px rgba(45, 226, 230, 0.12),
    0 0 22px rgba(45, 226, 230, 0.28),
    0 18px 40px rgba(8, 2, 16, 0.55);
  overflow-x: hidden;
  overflow-y: auto;
  color-scheme: dark;
  opacity: 0;
  transform: translateY(-0.35rem);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.neon-select-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.neon-select-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.72rem 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, text-shadow 0.15s ease, box-shadow 0.15s ease;
}

.neon-select-option:hover,
.neon-select-option.is-active {
  background: rgba(45, 226, 230, 0.12);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(45, 226, 230, 0.55);
}

.neon-select-option.is-selected {
  color: var(--teal);
  background: rgba(45, 226, 230, 0.16);
  text-shadow: 0 0 12px rgba(45, 226, 230, 0.5);
  box-shadow: inset 3px 0 0 var(--teal);
}

.neon-select-option.is-selected:hover,
.neon-select-option.is-selected.is-active {
  background: rgba(45, 226, 230, 0.22);
  color: var(--cyan);
}

.neon-select-option.is-disabled,
.neon-select-option.is-disabled:hover,
.neon-select-option.is-disabled.is-active {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--muted);
  background: transparent;
  text-shadow: none;
  box-shadow: none;
}

.neon-select-option.is-empty {
  cursor: default;
  color: var(--muted);
  font-style: italic;
}

.neon-select-panel::-webkit-scrollbar {
  width: 8px;
}

.neon-select-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.neon-select-panel::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(45, 226, 230, 0.35);
}

@media (max-width: 699px) {
  .neon-select__trigger,
  .neon-select-option {
    min-height: 2.85rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neon-select__trigger,
  .neon-select__arrow,
  .neon-select-panel,
  .neon-select-option {
    transition: none;
  }

  .neon-select-panel {
    transform: none;
  }
}


/* Combobox de categoría (ceja cian del formulario espejo) */

.neon-combo--eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem 0.28rem;
  max-width: 100%;
  margin: -0.15rem -0.4rem;
  padding: 0.1rem 0.28rem 0.1rem 0.4rem;
  border-radius: 8px;
  border: 1px dashed transparent;
  vertical-align: middle;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.neon-combo--eyebrow:hover,
.neon-combo--eyebrow:focus-within,
.neon-combo--eyebrow.is-open {
  border-color: rgba(45, 226, 230, 0.5);
  background: rgba(45, 226, 230, 0.04);
}

.neon-combo--eyebrow:focus-within,
.neon-combo--eyebrow.is-open {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(45, 226, 230, 0.18), 0 0 16px rgba(45, 226, 230, 0.2);
}

.admin-form.admin-form-espejo .neon-combo--eyebrow .admin-inline,
.neon-combo--eyebrow .admin-inline {
  width: auto;
  min-width: 3.2rem;
  max-width: 16rem;
  field-sizing: content;
  margin: 0;
  padding: 0.05rem 0.1rem;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.neon-combo__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}

.neon-combo__toggle:hover,
.neon-combo__toggle:focus-visible {
  outline: none;
  background: rgba(45, 226, 230, 0.1);
}

.neon-combo__toggle .neon-select__arrow {
  width: 9px;
  height: 6px;
}

.neon-combo--eyebrow.is-open .neon-select__arrow {
  transform: rotate(180deg);
}

.neon-combo-panel {
  min-width: 12.5rem;
  background: linear-gradient(180deg, #241036, #10041c);
}
