/* ============================================================
   UbiqoCR — Design System v2
   Estilo: Minimalista moderno con carácter propio
   Fuentes: DM Sans (cuerpo) + DM Serif Display (marca)
   Paleta: Azul índigo profundo + acentos cálidos + blancos puros
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* === Variables === */
:root {
  /* Paleta principal */
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #eff6ff;
  --accent:        #f59e0b;
  --accent-light:  #fffbeb;

  /* Neutros */
  --bg:            #f8fafc;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --border-hover:  #cbd5e1;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;

  /* Estados */
  --success:       #10b981;
  --success-light: #ecfdf5;
  --danger:        #ef4444;
  --danger-light:  #fef2f2;

  /* Layout */
  --max-width:     1120px;
  --pad-x:         clamp(16px, 5vw, 48px);
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-full:   999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:     0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
  --shadow-md:  0 8px 32px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.06);
  --shadow-lg:  0 20px 60px rgba(15,23,42,.12), 0 4px 16px rgba(15,23,42,.08);

  /* Tipografía */
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  /* Transiciones */
  --ease:         cubic-bezier(.4, 0, .2, 1);
  --duration:     180ms;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.02em;
}

p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .875rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .375rem;
}

.logo::before { display: none; }

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: 0;
}

.menu li { list-style: none; }

.menu a {
  display: flex;
  align-items: center;
  padding: .45rem .85rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.menu a:hover {
  color: var(--text);
  background: var(--border);
}

.menu a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-light);
}

@media (max-width: 640px) {
  .nav { padding: .75rem var(--pad-x); }
  .logo { font-size: 1.25rem; }
  .menu a { padding: .4rem .65rem; font-size: .825rem; }
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}

.hero h1 span {
  color: var(--primary);
  font-style: italic;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* === TABS === */
.tabs {
  display: flex;
  gap: .375rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.tab-btn {
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 500;
  font-size: .875rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  letter-spacing: -.01em;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.tab-btn[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* === PANEL / CARD === */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}

/* === BARRA DE BÚSQUEDA === */
.searchbar {
  display: flex;
  gap: .625rem;
  margin-top: 1.25rem;
  position: relative;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  padding: .875rem 1.125rem .875rem 3rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9375rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  outline: none;
}

.searchbar input::placeholder { color: var(--text-light); }

.searchbar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Ícono de lupa dentro del input */
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

/* === HINT DE SINÓNIMOS === */
.synonym-hint {
  margin-top: .625rem;
  font-size: .8125rem;
  color: var(--text-muted);
  min-height: 1.5em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
}

.synonym-tag {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  border: 1px solid rgba(37,99,235,.2);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  padding: .15rem .625rem;
  font-size: .775rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.synonym-tag:hover { background: #dbeafe; }

/* === FILTROS === */
.filters-row {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 1rem;
}

.filters-row .field { min-width: 160px; }

/* === CAMPO DE FORMULARIO === */
.field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.field label {
  font-weight: 500;
  font-size: .8125rem;
  color: var(--text-muted);
  letter-spacing: .01em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  padding: .6875rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9375rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.25rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-light); }

.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* === DIVIDER === */
.divider {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* === RESULTADOS HEADER === */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.results-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.sort-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sort-row label {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.sort-row select {
  padding: .375rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .8125rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .625rem center;
  padding-right: 1.75rem;
  transition: border-color var(--duration) var(--ease);
}

.sort-row select:focus {
  border-color: var(--primary);
  outline: none;
}

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .625rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .01em;
}

.badge-primary {
  background: var(--primary-light);
  border-color: rgba(37,99,235,.2);
  color: var(--primary-dark);
}

.badge-premium {
  background: var(--accent-light);
  border-color: rgba(245,158,11,.25);
  color: #92400e;
}

/* === RESULTADO CARD === */
.results {
  display: grid;
  gap: .875rem;
  margin-top: .25rem;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.result-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.result-card.is-premium {
  border-color: rgba(245,158,11,.3);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(245,158,11,.15);
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .25rem;
  letter-spacing: -.01em;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem .75rem;
  margin-top: .375rem;
}

.result-meta-item {
  font-size: .8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* === RELEVANCIA === */
.relevance-bar {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-top: .5rem;
}

.relevance-dots {
  display: flex;
  gap: 3px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--duration);
}

.dot.active { background: var(--primary); }

.relevance-label {
  font-size: .7rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* === ACCIONES DEL RESULTADO === */
.result-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .875rem;
}

/* === PRODUCTOS EN RESULTADO === */
.result-products {
  margin-top: .875rem;
  border-top: 1px solid var(--border);
  padding-top: .875rem;
  display: grid;
  gap: 0;
}

.result-products .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .875rem;
}

.result-products .line:last-child { border-bottom: none; }

.result-products .line .prod-name {
  color: var(--text);
  font-weight: 500;
}

.result-products .line .prod-price {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}

.result-products .line.no-match {
  opacity: .45;
}

/* === HIGHLIGHT === */
mark.highlight {
  background: #fef9c3;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
  color: inherit;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
  opacity: .4;
}

.empty-state p {
  font-size: .9375rem;
  margin: 0;
}

/* === BOTONES === */
button, .btn { cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .625rem 1.125rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  outline: none;
  white-space: nowrap;
}

/* Primario */
.btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(37,99,235,.3);
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 3px 10px rgba(37,99,235,.35);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); box-shadow: none; }

/* Outline */
.btn.outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn.outline:hover {
  border-color: var(--border-hover);
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Danger */
.btn.danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: rgba(239,68,68,.2);
  box-shadow: none;
}

.btn.danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* Búsqueda — más grande */
.btn-search {
  padding: .875rem 1.5rem;
  font-size: .9375rem;
  border-radius: var(--radius);
}

/* === FORMULARIO GRID === */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* === SECCIÓN PRODUCTOS (formulario) === */
.rows-wrap {
  margin-top: .875rem;
  display: grid;
  gap: .625rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1.4fr .65fr .85fr auto;
  gap: .5rem;
  align-items: flex-end;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem;
}

@media (max-width: 640px) {
  .price-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .price-row .remove-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.add-product-wrap {
  margin-top: .875rem;
}

.form-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--border);
}

/* === EXPORT / IMPORT === */
.io-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .875rem;
  padding: .875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.io-row label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

#importFile { display: none; }

.import-count {
  font-size: .8125rem;
  color: var(--success);
  font-weight: 600;
}

/* === MENSAJES === */
.msg-ok {
  margin-top: .875rem;
  padding: .75rem 1rem;
  background: var(--success-light);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius-sm);
  color: #065f46;
  font-weight: 500;
  font-size: .875rem;
}

.msg-warn {
  margin-top: .875rem;
  padding: .75rem 1rem;
  background: var(--danger-light);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-weight: 500;
  font-size: .875rem;
}

/* compat con clases antiguas */
.ok  { color: #065f46; font-weight: 600; margin-top: .75rem; }
.warn{ color: #991b1b; font-weight: 600; margin-top: .75rem; }
.muted { color: var(--text-muted); }
.mini  { font-size: .8125rem; color: var(--text-muted); }

/* === FOOTER === */
.site-footer {
  text-align: center;
  padding: 2rem var(--pad-x);
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--text-light);
  margin-top: 3rem;
}

/* === ACCESIBILIDAD === */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === RESPONSIVE GENERAL === */
@media (max-width: 480px) {
  .panel { padding: 1.125rem 1rem; }
  .hero { padding: 2.5rem .75rem 1.5rem; }
  .result-card { padding: 1rem; }
}

/* === ANIMACIÓN DE ENTRADA === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-card {
  animation: fadeUp 220ms var(--ease) both;
}

.result-card:nth-child(1) { animation-delay: 0ms; }
.result-card:nth-child(2) { animation-delay: 40ms; }
.result-card:nth-child(3) { animation-delay: 80ms; }
.result-card:nth-child(4) { animation-delay: 120ms; }
.result-card:nth-child(5) { animation-delay: 160ms; }

/* ============================================================
   PANEL ADMIN — Agregar / Gestionar negocios
   ============================================================ */

/* Header admin */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: .2rem;
}

.admin-header-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Tabs internos */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.admin-tab {
  padding: .625rem 1.25rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.admin-tab:hover { color: var(--text); }

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.admin-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--border);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-tab.active .admin-count {
  background: var(--primary-light);
  color: var(--primary);
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Pasos del formulario */
.form-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: .875rem;
}

.form-step-header {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1rem;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text);
}

.step-optional {
  font-size: .75rem;
  color: var(--text-light);
  background: var(--border);
  padding: .15rem .5rem;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.req { color: var(--primary); font-weight: 700; }

.field-hint {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: .25rem;
}

/* Botón pequeño */
.btn-sm {
  padding: .4rem .875rem !important;
  font-size: .8125rem !important;
}

/* Encabezados columnas productos */
.products-cols-header {
  display: grid;
  grid-template-columns: 1.4fr .65fr .85fr 36px;
  gap: .5rem;
  padding: 0 .75rem .375rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-light);
}

@media (max-width: 640px) {
  .products-cols-header { display: none; }
}

/* Fila de producto mejorada */
.price-row {
  display: grid;
  grid-template-columns: 1.4fr .65fr .85fr 36px;
  gap: .5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .625rem .75rem;
  transition: border-color var(--duration);
}

.price-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.price-row .field { gap: 0; }
.price-row .field label { display: none; }

.price-row input,
.price-row select {
  padding: .5rem .625rem;
  font-size: .875rem;
  border-radius: 6px;
}

.price-row .remove-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  border-radius: 6px;
  color: var(--text-light);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration);
  flex-shrink: 0;
}

.price-row .remove-btn:hover {
  background: var(--danger-light);
  border-color: rgba(239,68,68,.2);
  color: var(--danger);
}

@media (max-width: 640px) {
  .price-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: .375rem;
  }
  .price-row > *:nth-child(3) { grid-column: 1; }
  .price-row .remove-btn { grid-column: 2; justify-self: end; }
}

/* Botón agregar producto */
.btn-add-product {
  margin-top: .75rem;
  width: 100%;
  justify-content: center;
  border-style: dashed;
  color: var(--text-muted);
  font-size: .875rem;
}

.btn-add-product:hover {
  border-style: solid;
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Acciones finales */
.form-final-actions {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.25rem 0 .5rem;
  border-top: 1px solid var(--border);
  margin-top: .25rem;
}

.btn-guardar {
  padding: .75rem 2rem !important;
  font-size: .9375rem !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}

/* ── Lista de negocios ── */
.lista-toolbar {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.lista-search {
  flex: 1;
  min-width: 200px;
  padding: .6rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .875rem;
  outline: none;
  transition: border-color var(--duration);
  background: var(--surface);
}

.lista-search:focus { border-color: var(--primary); }

.lista-negocios {
  display: grid;
  gap: .625rem;
}

.lista-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .875rem 1rem;
  transition: border-color var(--duration), box-shadow var(--duration);
}

.lista-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.lista-card-info { flex: 1; min-width: 0; }

.lista-card-nombre {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lista-card-meta {
  font-size: .775rem;
  color: var(--text-muted);
  margin-top: .15rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.lista-card-actions {
  display: flex;
  gap: .375rem;
  flex-shrink: 0;
}

.lista-card-actions button {
  padding: .35rem .7rem;
  font-size: .775rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
  transition: all var(--duration);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.lista-card-actions button:hover {
  background: var(--bg);
  color: var(--text);
}

.lista-card-actions .btn-del:hover {
  background: var(--danger-light);
  border-color: rgba(239,68,68,.25);
  color: var(--danger);
}

.lista-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-light);
  font-size: .9rem;
}

/* ── Banner modo edición ── */
.edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: #92400e;
  flex-wrap: wrap;
}

.edit-banner-cancel {
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 6px;
  border: 1.5px solid #f59e0b;
  background: #fff;
  color: #92400e;
  cursor: pointer;
  transition: all var(--duration);
}

.edit-banner-cancel:hover {
  background: #f59e0b;
  color: #fff;
}

/* ── Botón editar en lista ── */
.lista-card-actions button {
  white-space: nowrap;
}

/* ── Admin gate (pantalla de contraseña) ── */
.admin-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.admin-gate-box {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.admin-gate-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  opacity: .6;
}

.admin-gate-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: .375rem;
  text-align: center;
}

.admin-gate-form {
  display: flex;
  gap: .5rem;
  width: 100%;
  margin-top: .25rem;
}

.admin-gate-input {
  flex: 1;
  padding: .65rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--duration);
}

.admin-gate-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
