/* ==========================================================================
   ADMIN PANEL CSS - RONEO SHOP (FASE 5.1 DEFINITIVA)
   Diseño Mobile-First estilo Instagram / Vinted & Shopify Admin
   Zero Emojis · 100% Iconos SVG Vectoriales · Animaciones Fluidas
   ========================================================================== */

:root {
  --admin-bg: #f8f7f5;
  --admin-card-bg: #ffffff;
  --admin-text: #231515;
  --admin-text-muted: #6e5a5a;
  --admin-border: #e8e5e1;
  --admin-primary: #4d2525;
  --admin-primary-hover: #381a1a;

  /* Semáforo de estados */
  --badge-green-bg: #e3fcef;
  --badge-green-text: #006644;
  --badge-orange-bg: #fff4e5;
  --badge-orange-text: #b76e00;
  --badge-red-bg: #ffebe6;
  --badge-red-text: #bf2600;
  --badge-blue-bg: #deebff;
  --badge-blue-text: #0747a6;
  --badge-gray-bg: #e8e5e1;
  --badge-gray-text: #5f3636;

  --radius-card: 14px;
  --radius-btn: 8px;
  --header-height: 64px;
}

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

/* Regla estricta para elementos con atributo hidden */
[hidden] {
  display: none !important;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 74px;
  /* Espacio para barra móvil */
}

@media (min-width: 990px) {
  body {
    padding-bottom: 0;
  }
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   PANTALLA DE LOGIN
   ========================================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #ececf2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 34px 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--admin-border);
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-symbol {
  font-size: 26px;
  display: block;
  margin-bottom: 4px;
}

.login-brand h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.login-brand p {
  font-size: 12.5px;
  color: var(--admin-text-muted);
}

.login-restricted-note {
  font-size: 13px;
  color: var(--admin-text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 18px;
}

.login-error-msg {
  background-color: var(--badge-red-bg);
  color: var(--badge-red-text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 14px;
}

.btn-login-google {
  width: 100%;
  height: 48px;
  background-color: #ffffff;
  color: #231515;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(35, 21, 21, 0.05);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn-login-google:hover:not(:disabled) {
  background-color: #f8f7f5;
  border-color: #d6d0ca;
  box-shadow: 0 4px 12px rgba(35, 21, 21, 0.08);
  transform: translateY(-1px);
}

.btn-login-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-back-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--admin-text-muted);
  transition: color 0.15s ease;
}

.login-back-link:hover {
  color: var(--admin-primary);
  text-decoration: underline;
}

/* ==========================================================================
   CABECERA DEL PANEL
   ========================================================================== */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid var(--admin-border);
}

.admin-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-header__symbol {
  font-size: 20px;
  font-weight: 600;
}

.admin-header__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-header__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background-color: #121212;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-cloud-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--admin-text-muted);
  margin-left: 12px;
  padding: 4px 10px;
  background-color: #f4f4f7;
  border-radius: 20px;
}

.cloud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-btn-sync,
.admin-btn-outline,
.admin-btn-secondary {
  height: 38px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-btn);
  color: var(--admin-text);
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-btn-sync:hover,
.admin-btn-outline:hover,
.admin-btn-secondary:hover {
  background-color: #f7f7f9;
  border-color: #d0d0d8;
}

.admin-btn-primary {
  height: 38px;
  padding: 0 16px;
  background-color: var(--admin-primary);
  border: none;
  border-radius: var(--radius-btn);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.admin-btn-primary:hover {
  background-color: var(--admin-primary-hover);
}

.admin-btn-logout {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--admin-border);
  background-color: #ffffff;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-btn-logout:hover {
  color: var(--badge-red-text);
  border-color: #fca5a5;
  background-color: #fef2f2;
}

.btn-admin-subtle {
  height: 36px;
  padding: 0 14px;
  background-color: #f0f0f4;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  color: var(--admin-text);
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-subtle:hover {
  background-color: #e4e4e9;
}

.admin-link-btn {
  background: none;
  border: none;
  color: var(--admin-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.admin-link-btn:hover {
  text-decoration: underline;
}

.btn-admin-danger {
  height: 38px;
  padding: 0 16px;
  background-color: var(--badge-red-bg);
  border: 1px solid #fecaca;
  border-radius: var(--radius-btn);
  color: var(--badge-red-text);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-danger:hover {
  background-color: #fee2e2;
}

/* Barra de Pestañas Desktop */
.admin-nav-tabs {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
}

.admin-tab-btn {
  height: 44px;
  padding: 0 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--admin-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

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

/* ==========================================================================
   PUNTO 5: BARRA DE ORDENACIÓN (DRAG & DROP)
   OCULTA ESTRICTAMENTE POR DEFECTO
   ========================================================================== */
.admin-sort-banner,
.sort-mode-banner {
  display: none !important;
  background: #121212;
  color: #ffffff;
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.admin-sort-banner.is-active,
.sort-mode-banner.is-active {
  display: flex !important;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sort-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
}

.admin-btn-secondary.is-sorting {
  background-color: #121212;
  color: #ffffff;
  border-color: #121212;
}

/* ==========================================================================
   ESTRUCTURA PRINCIPAL Y KPIS
   ========================================================================== */
.admin-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
}

.admin-tab-view {
  display: none;
}

.admin-tab-view.is-active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.kpi-card {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.kpi-val {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.text-green {
  color: var(--badge-green-text);
}

.text-orange {
  color: var(--badge-orange-text);
}

.text-red {
  color: var(--badge-red-text);
}

/* Barra de herramientas / Búsqueda y Filtros */
.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .admin-toolbar {
    flex-direction: row;
    align-items: center;
  }
}

.admin-search-wrap {
  flex: 1;
}

.admin-search-input {
  width: 100%;
  height: 42px;
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-btn);
  padding: 0 14px;
  outline: none;
  font-size: 13.5px;
}

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

.admin-select {
  height: 42px;
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-btn);
  padding: 0 14px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   LISTADO Y TARJETAS DE PRENDAS (ESTILO JVELOCE)
   ========================================================================== */
.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-product-card {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.18s ease;
  position: relative;
}

@media (min-width: 768px) {
  .admin-product-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-product-card.is-sortable {
  cursor: grab;
  user-select: none;
}

.admin-product-card.is-dragging {
  opacity: 0.4;
  border-color: #121212;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.admin-product-card.drag-over {
  border-top: 3px solid #121212;
}

.admin-card__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.admin-card__img-wrap {
  width: 64px;
  height: 85px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f2f2f5;
  flex-shrink: 0;
  position: relative;
}

.admin-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.admin-card__price {
  font-weight: 700;
}

.admin-card__compare {
  text-decoration: line-through;
  color: var(--admin-text-muted);
  font-size: 12px;
}

/* Desglose de Stock por Color */
.admin-card__stock-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.color-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f4f4f7;
  border: 1px solid #e4e4e9;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
}

.color-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.color-stock-text {
  color: var(--admin-text-muted);
}

/* Lado Derecho de la Tarjeta */
.admin-card__right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

/* Badge de Estado */
.status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.is-active {
  background-color: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.status-pill.is-soldout {
  background-color: var(--badge-red-bg);
  color: var(--badge-red-text);
}

/* Menú de 3 Puntos ⋮ */
.dropdown-menu-wrap {
  position: relative;
}

.card-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--admin-border);
  background-color: #ffffff;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.card-menu-btn:hover {
  background-color: #f4f4f7;
}

.card-menu-dropdown {
  position: absolute;
  right: 0;
  top: 42px;
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  min-width: 190px;
  z-index: 60;
  padding: 6px;
  display: none;
}

.card-menu-dropdown.is-open {
  display: block;
}

.dropdown-item {
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.dropdown-item:hover {
  background-color: #f4f4f7;
}

.dropdown-item.text-danger {
  color: var(--badge-red-text);
}

.dropdown-item.text-danger:hover {
  background-color: #fef2f2;
}

/* ==========================================================================
   MODAL: CREADOR / EDITOR DE PRENDA
   ========================================================================== */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-modal.is-open {
  display: flex;
}

.admin-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.admin-modal__container {
  position: relative;
  background-color: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.admin-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal__title {
  font-size: 17px;
  font-weight: 700;
}

.admin-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: #f2f2f5;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-modal__close:hover {
  background-color: #e4e4e9;
}

.admin-modal__body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  height: 42px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  background-color: #ffffff;
  outline: none;
}

.form-group textarea {
  height: auto;
  padding: 10px 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--admin-primary);
}

.admin-input-hero {
  font-size: 15px;
  font-weight: 600;
}

.admin-discount-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: var(--badge-orange-bg);
  color: var(--badge-orange-text);
}

/* ==========================================================================
   BLOQUE 1: GALERÍA DE FOTOS + FILEREADER + CROPPER
   ========================================================================== */
.admin-insta-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.admin-insta-upload-card {
  width: 82px;
  height: 110px;
  border: 2px dashed var(--admin-border);
  border-radius: 10px;
  background-color: #fbfbfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  color: var(--admin-text-muted);
  font-size: 11px;
  text-align: center;
}

.admin-insta-upload-card:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
  background-color: #f4f4f7;
}

.photo-thumb-card {
  width: 82px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--admin-border);
  background-color: #f2f2f5;
}

.photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botón Tijeras SVG para Cropper.js */
.photo-crop-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.92);
  color: #121212;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease;
  z-index: 2;
}

.photo-crop-btn:hover {
  transform: scale(1.1);
  background-color: #ffffff;
}

/* Botón Eliminar Foto */
.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background-color: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

/* Botones Mover Izq / Der */
.photo-nav-btn {
  position: absolute;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.photo-nav-left {
  left: 4px;
}

.photo-nav-right {
  right: 4px;
}

.photo-badge-cover {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #121212;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Categoría Píldoras */
.admin-cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-cat-pill {
  height: 36px;
  padding: 0 16px;
  background-color: #f2f2f5;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-cat-pill.is-active {
  background-color: #121212;
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   BLOQUE 3: PALETA DE COLORES
   ========================================================================== */
.admin-color-palette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-color-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.admin-color-bubble:hover {
  transform: scale(1.15);
}

.admin-color-bubble-custom {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-weight: 700;
}

.admin-color-bubble-custom input[type="color"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f4f4f7;
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}

.color-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
}

.color-chip-remove:hover {
  color: var(--badge-red-text);
}

/* ==========================================================================
   BLOQUE 4: GESTOR DE STOCK CON SUB-PESTAÑAS DE COLOR
   ========================================================================== */
.ios-toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 12px;
}

.ios-switch-wrap {
  position: relative;
  width: 44px;
  height: 24px;
}

.ios-switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  inset: 0;
  background-color: #d1d1d6;
  border-radius: 24px;
  transition: 0.2s ease;
}

.ios-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.2s ease;
}

.ios-switch-wrap input:checked+.ios-slider {
  background-color: #10b981;
}

.ios-switch-wrap input:checked+.ios-slider::before {
  transform: translateX(20px);
}

/* Sub-pestañas de color */
.color-stock-tabs-container {
  background-color: #f7f7f9;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.color-stock-tabs-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.color-stock-tabs-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.color-stock-actions {
  display: flex;
  gap: 8px;
}

.btn-color-quick-action {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--admin-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.btn-color-quick-action.text-danger {
  color: var(--badge-red-text);
}

.color-stock-tabs-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.color-stock-tab-btn {
  height: 34px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.color-stock-tab-btn.is-active {
  background-color: #121212;
  color: #ffffff;
  border-color: #121212;
  font-weight: 600;
}

/* Filas de tallas del color */
.variants-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.size-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fafafc;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 8px 12px;
}

.size-pill-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #121212;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background-color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stepper-btn:hover {
  background-color: #f2f2f5;
}

.stepper-input {
  width: 52px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-weight: 600;
  outline: none;
}

.btn-zero-stock {
  font-size: 11px;
  background-color: #fee2e2;
  color: var(--badge-red-text);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
}

.btn-remove-size {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-size:hover {
  color: var(--badge-red-text);
}

/* Fila de unidades por color cuando hasSizes = false */
.admin-single-stock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-single-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fafafc;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 8px 12px;
}

/* Pie fijo del modal */
.modal-footer-sticky {
  position: sticky;
  bottom: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--admin-border);
  padding: 14px 20px;
  margin: 0 -20px -20px -20px;
}

/* ==========================================================================
   PUNTO 2: SUB-MODAL CROPPER.JS ESTRICTO (ESTILO JVELOCE)
   ========================================================================== */
.cropper-stage {
  width: 100%;
  height: 420px;
  max-height: 60vh;
  background-color: #121212;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cropper-image-target {
  display: block;
  max-width: 100%;
}

.btn-crop-ratio {
  height: 32px;
  padding: 0 12px;
  background-color: #f2f2f5;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.btn-crop-ratio.is-active {
  background-color: #121212;
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   PUNTO 4: GESTOR DE CATEGORÍAS EN AJUSTES
   ========================================================================== */
.admin-settings-mode-bar {
  display: flex;
  gap: 10px;
  background-color: #fafafc;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  margin-bottom: 24px;
  width: fit-content;
  max-width: 100%;
}

.settings-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-mode-btn:hover {
  color: #1e293b;
}

.settings-mode-btn.is-active {
  background: var(--color-choco, #4d2525);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(77, 37, 37, 0.28);
}

.settings-view-panel {
  width: 100%;
}

.categories-manager-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.category-manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #fafafc;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}

.cat-item-thumb {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e2e2;
  background: #f3f1ed;
  flex-shrink: 0;
}

.btn-cat-action.btn-cat-edit {
  width: auto;
  padding: 0 10px;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.cat-products-search-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  font-size: 12.5px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 8px;
  outline: none;
}

.cat-products-search-input:focus {
  border-color: var(--color-choco, #4d2525);
}

.cat-item-badge {
  font-size: 11px;
  font-weight: 700;
  background-color: #e4e4e9;
  color: #333;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.cat-name-input {
  flex: 1;
  max-width: 260px;
  height: 32px;
  padding: 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cat-name-input:focus {
  border-color: var(--color-choco, #4d2525);
  box-shadow: 0 0 0 2px rgba(77, 37, 37, 0.12);
}

.cat-count-badge {
  font-size: 11.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.cat-status-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.cat-status-badge.is-active {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.cat-status-badge.is-placeholder {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.cat-item-name {
  font-size: 14px;
  font-weight: 600;
}

.cat-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-cat-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background-color: #ffffff;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-cat-action:hover {
  background-color: #f2f2f5;
}

.btn-cat-action.btn-cat-delete:hover {
  background-color: #fee2e2;
  color: var(--badge-red-text);
  border-color: #fecaca;
}

.add-cat-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

/* Gestor de Colecciones */
.collections-manager-list,
.admin-collections-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}

.collection-manage-item,
.admin-collection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  gap: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.admin-collection-item:hover {
  border-color: #c8c8c8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.col-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.col-item-thumb,
.admin-collection-item__thumb {
  width: 60px !important;
  height: 80px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  background-color: #eee;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.col-item-info,
.admin-collection-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.col-item-title,
.admin-collection-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.col-item-subtitle,
.admin-collection-item__subtitle {
  font-size: 12px;
  color: var(--admin-text-muted);
  line-height: 1.3;
}

.admin-collection-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.admin-col-badge {
  font-size: 11px;
  color: #555;
  background: #f0f0f2;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.col-item-count,
.admin-col-linked-count {
  font-size: 11px;
  color: #121212;
  background: #eef7ed;
  border: 1px solid #cce8c8;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
}

.col-item-actions,
.admin-collection-item__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-col-action {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  border-radius: 6px;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-col-action:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #bbb;
  color: #121212;
}

.btn-col-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-col-delete {
  color: #c92a2a;
  border-color: #ffd8d8;
  background: #fff8f8;
}

.btn-col-delete:hover:not(:disabled) {
  background: #ffe3e3;
  border-color: #fcc2c2;
  color: #b02525;
}

/* Checklist de Prendas en Modal de Colección */
.col-prod-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.col-prod-check-item:hover {
  background: #f6f6f6;
}

.col-prod-check-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.col-prod-check-thumb {
  width: 32px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  background: #f0f0f0;
  flex-shrink: 0;
}

.col-prod-check-title {
  font-size: 12px;
  font-weight: 500;
  color: #121212;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-prod-check-price {
  font-size: 11.5px;
  font-weight: 600;
  color: #666;
}

.add-cat-form-row input {
  flex: 1;
  height: 42px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  outline: none;
}

.admin-card {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 18px;
}

.admin-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card__hint {
  font-size: 12.5px;
  color: var(--admin-text-muted);
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   TOAST Y NOTIFICACIONES
   ========================================================================== */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #121212;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast--error {
  background-color: #5c1414 !important;
  color: #ffffff !important;
  border: 1px solid #822222;
  box-shadow: 0 10px 24px rgba(92, 20, 20, 0.4);
}


/* Barra Móvil Inferior */
.admin-mobile-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #ffffff;
  border-top: 1px solid var(--admin-border);
  display: flex;
  z-index: 40;
}

.admin-mobile-tab {
  flex: 1;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--admin-text-muted);
  font-size: 11px;
  cursor: pointer;
}

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

@media (min-width: 990px) {
  .hide-desktop {
    display: none !important;
  }
}

@media (max-width: 989px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   FASE 6.0: PACKLINK PRO OFICIAL - ESTILOS DEL PANEL Y SIMULADOR
   ========================================================================== */
.admin-packlink-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.packlink-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.packlink-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.packlink-api-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff5f2;
  border: 1px solid #ffdcd4;
  color: #4d2525;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
}

.packlink-api-badge code {
  font-family: monospace;
  background-color: rgba(77, 37, 37, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
}

.packlink-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.packlink-status-badge {
  display: inline-flex;
  align-items: center;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

/* Tarjeta de Pedido en Lista */
.admin-order-card {
  background-color: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 16px;
  transition: box-shadow 0.15s ease;
}

.admin-order-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #f0f0f4;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.order-card-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-customer-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background-color: #f7f7f9;
  border: 1px solid #ececf2;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

@media (max-width: 860px) {
  .order-customer-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .order-customer-details {
    grid-template-columns: 1fr;
  }
}

.packlink-parcel-breakdown-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #faf6f3;
  border: 1px solid #eadfd8;
  color: #4d2525;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.packlink-parcel-breakdown-banner strong {
  font-weight: 700;
}

.order-customer-col strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.order-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 4px;
}

.order-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background-color: #ffffff;
  border: 1px solid #f0f0f4;
  border-radius: 8px;
}

.order-item-thumb {
  width: 44px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #f2f2f2;
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #121212;
}

.order-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #27272a;
}

.order-size-pill {
  display: inline-flex;
  align-items: center;
  background-color: #121212;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
}

/* Caja Interactiva Packlink PRO dentro de la tarjeta de pedido */
.packlink-interactive-box {
  background-color: #fffbf9;
  border: 1px solid #fed7ce;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
}

.packlink-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.packlink-box-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4d2525;
}

.packlink-box-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.packlink-box-inputs label {
  font-size: 11px;
  color: var(--admin-text-muted);
  display: block;
  margin-bottom: 3px;
}

.packlink-box-inputs input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 12.5px;
  background: #ffffff;
}

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

/* Tabla de transportistas cotizados */
.pl-rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ffdcd4;
  font-size: 12px;
}

.pl-rates-table th {
  background-color: #fff2ed;
  color: #4d2525;
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #ffdcd4;
}

.pl-rates-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f8ece8;
  vertical-align: middle;
}

.pl-rates-table tr:last-child td {
  border-bottom: none;
}

.pl-test-success-box {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  margin-top: 10px;
}

.pl-test-error-box {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  margin-top: 10px;
}

/* ==========================================================================
   PUNTO 5: FILTROS DE PEDIDOS Y ACCIONES DIRECTAS PACKLINK PRO
   ========================================================================== */
.admin-pills-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-pill-btn {
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid rgba(77, 37, 37, 0.16);
  background: #ffffff;
  color: #4d2525;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-pill-btn:hover {
  background: #fbf9f8;
  border-color: rgba(77, 37, 37, 0.35);
  transform: translateY(-1px);
}

.admin-pill-btn.is-active,
.admin-pill-btn.active {
  background: var(--color-choco, #4d2525) !important;
  color: #ffffff !important;
  border-color: var(--color-choco, #4d2525) !important;
  box-shadow: 0 2px 8px rgba(77, 37, 37, 0.28);
}

.packlink-direct-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #fed7ce;
}

.packlink-advanced-details {
  margin-top: 10px;
}

.packlink-advanced-summary {
  font-size: 12px;
  font-weight: 600;
  color: #7d6868;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.packlink-advanced-summary:hover {
  color: #4d2525;
}

.packlink-advanced-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f8ece8;
}

/* Tarjeta de Portada y Estética de Inicio (Ajustes Básicos) */
@media (max-width: 640px) {
  .hero-appearance-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .hero-preview-box {
    margin: 0 auto;
  }
}
