/* ==========================================================================
   CANELA SWIMWEAR - PORTAL MAYORISTAS & B2B (CHIVA ESTUDIO)
   Estilos dedicados para Bóveda Privada, Matriz de Curvas y Orden de Corte
   ========================================================================== */

/* TELÓN / MODAL DE ACCESO PRIVADO VIP */
.b2b-vault-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 16, 14, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.b2b-vault-overlay.unlocked,
html.b2b-unlocked .b2b-vault-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.b2b-vault-card {
  background: var(--bright-white);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  max-width: 500px;
  width: 100%;
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
  position: relative;
  animation: vaultCardPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vault-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #FFF;
  border: 1px solid rgba(140, 109, 88, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-apple);
}

.vault-close-btn:hover {
  background: var(--sea-foam-soft);
  color: var(--deep-teal);
  border-color: var(--deep-teal);
}

.vault-back-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--deep-teal);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(140, 109, 88, 0.25);
  border-radius: var(--radius-pill);
  margin-top: 1.1rem;
  text-decoration: none;
  background: #FFF;
  transition: var(--transition-apple);
}

.vault-back-home-btn:hover {
  background: var(--sea-foam-subtle);
  border-color: var(--orange-peel);
  color: var(--orange-peel);
}

@keyframes vaultCardPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.vault-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lemon-cream-soft);
  color: var(--deep-teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(140, 109, 88, 0.15);
  margin-bottom: 1.2rem;
}

.vault-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--deep-teal) 0%, var(--deep-teal-dark) 100%);
  border: 2px solid var(--orange-peel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lemon-cream);
  box-shadow: 0 8px 20px rgba(140, 109, 88, 0.25);
}

.vault-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.vault-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.vault-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vault-input-group {
  position: relative;
}

.vault-pin-input {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: #FFF;
  border: 2px solid rgba(140, 109, 88, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.18em;
  color: var(--deep-teal-dark);
  transition: var(--transition-apple);
  outline: none;
}

.vault-pin-input:focus {
  border-color: var(--orange-peel);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.15);
}

.vault-pin-input.error {
  border-color: #D32F2F;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.vault-submit-btn {
  background: var(--orange-peel);
  color: #FFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-apple);
  box-shadow: 0 6px 18px rgba(255, 138, 31, 0.3);
}

.vault-submit-btn:hover {
  background: var(--orange-peel-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 138, 31, 0.4);
}

.vault-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.vault-hint strong {
  color: var(--deep-teal);
  background: var(--sea-foam-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

.vault-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--deep-teal);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  margin-top: 1.25rem;
  transition: color 0.2s ease;
}

.vault-whatsapp-link:hover {
  color: var(--orange-peel);
}

.vault-owner-note {
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: var(--sea-foam-subtle);
  border: 1px dashed rgba(140, 109, 88, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: var(--deep-teal-dark);
  text-align: left;
  line-height: 1.45;
}

/* BARRA DE ESTADO VIP EN TOP (CUANDO ESTÁ DESBLOQUEADO) */
.b2b-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 230, 207, 0.2);
  color: var(--sea-foam);
  border: 1px solid rgba(168, 230, 207, 0.4);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.b2b-lock-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
}
.b2b-lock-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
}

/* ==========================================================================
   SECCIÓN DE ESCALAS DE DESCUENTO (5% - 10% - 15%) · DARK LUXURY DEEP TEAL
   ========================================================================== */
.b2b-tiers-section {
  padding: 3.5rem 1.25rem 2.5rem;
  background: var(--deep-teal-dark);
  color: #FFF;
  border-top: 1px solid rgba(255, 138, 31, 0.25);
}

.b2b-tiers-section .editorial-title {
  color: #FFF;
}

.b2b-tiers-section p {
  color: var(--text-light-muted) !important;
}

.b2b-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.b2b-tier-card {
  background: #114947;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-apple);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  color: #FFF;
}

.b2b-tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-peel);
  box-shadow: 0 12px 35px rgba(255, 138, 31, 0.25);
}

.b2b-tier-card.active-tier {
  border: 2px solid var(--orange-peel);
  background: #231916;
  box-shadow: 0 10px 30px rgba(255, 138, 31, 0.35);
}

.tier-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(168, 230, 207, 0.18);
  color: var(--lemon-cream);
  border: 1px solid rgba(168, 230, 207, 0.3);
  margin-bottom: 0.85rem;
}

.tier-badge.badge-gold {
  background: var(--orange-peel);
  color: #FFF;
  border-color: var(--orange-peel);
}

.tier-badge.badge-vip {
  background: var(--lemon-cream);
  color: var(--deep-teal-dark);
  border-color: var(--lemon-cream);
}

.tier-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.25rem;
}

.tier-range {
  font-size: 0.85rem;
  color: var(--lemon-cream);
  font-weight: 600;
}

.tier-discount-val {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange-peel);
  line-height: 1;
  margin: 1rem 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.tier-discount-val small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light-muted);
}

.tier-perks-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 auto;
  font-size: 0.82rem;
  color: var(--text-light-muted);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tier-perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tier-perks-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--lemon-cream);
}

/* ==========================================================================
   MATRIZ DE PRODUCTOS B2B
   ========================================================================== */
/* ==========================================================================
   MATRIZ DE PRODUCTOS B2B · DARK LUXURY DEEP TEAL
   ========================================================================== */
.b2b-matrix-section {
  padding: 2.5rem 1.25rem 7rem; /* espacio para sticky bottom bar */
  max-width: 1240px;
  margin: 0 auto;
  color: #FFF;
}

.b2b-matrix-section .editorial-title {
  color: #FFF;
}

.b2b-matrix-section p {
  color: var(--text-light-muted) !important;
}

/* Barra de control: Buscador y Filtros */
.b2b-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  background: #114947;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .b2b-controls-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.b2b-search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.b2b-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  background: #0A3735;
  color: #FFF;
  transition: var(--transition-apple);
}

.b2b-search-input::placeholder {
  color: var(--text-light-muted);
}

.b2b-search-input:focus {
  border-color: var(--orange-peel);
  background: #17100E;
  box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.25);
}

.b2b-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lemon-cream);
}

.b2b-cat-filter-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.b2b-cat-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lemon-cream);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-apple);
}

.b2b-cat-pill:hover, .b2b-cat-pill.active {
  background: var(--orange-peel);
  color: #FFF;
  border-color: var(--orange-peel);
}

/* Grid de Tarjetas B2B */
.b2b-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .b2b-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }
}

.b2b-card {
  background: #0E4341;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: var(--transition-apple);
  color: #FFF;
}

.b2b-card:hover {
  border-color: var(--orange-peel);
  box-shadow: 0 14px 35px rgba(255, 138, 31, 0.2);
  transform: translateY(-2px);
}

.b2b-card-header {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: #0A3735;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.b2b-card-thumb-wrap {
  width: 90px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #072927;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.b2b-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.b2b-card-thumb-wrap:hover .b2b-card-thumb {
  transform: scale(1.06);
}

.b2b-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.b2b-ref-tag {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lemon-cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.b2b-card-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.3;
  margin: 2px 0 4px;
}

.b2b-pricing-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.b2b-pvp-detal {
  font-size: 0.75rem;
  color: var(--text-light-muted);
}
.b2b-pvp-detal del {
  color: rgba(255, 255, 255, 0.5);
}

.b2b-price-mayorista {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--orange-peel);
}

.b2b-profit-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lemon-cream);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
  align-self: flex-start;
}

/* CUERPO DE LA TARJETA: MATRIZ DE COLORES Y CURVAS */
.b2b-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  color: #FFF;
}

.b2b-color-row {
  background: #0A3735;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.b2b-color-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.b2b-color-swatch-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFF;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.b2b-curve-shortcut-btn {
  background: var(--lemon-cream);
  color: var(--deep-teal-dark);
  border: 1px solid rgba(140, 109, 88, 0.2);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-apple);
}

.b2b-curve-shortcut-btn:hover {
  background: var(--orange-peel);
  color: #FFF;
  border-color: var(--orange-peel);
}

/* Grilla de Tallas y Selectores */
.b2b-sizes-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.b2b-size-box {
  flex: 1;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 4px;
}

.b2b-size-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--deep-teal);
  text-transform: uppercase;
}

.b2b-qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
  width: 100%;
}

.b2b-qty-btn {
  width: 20px;
  height: 22px;
  background: var(--bright-white);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-apple);
  padding: 0;
}

.b2b-qty-btn:hover {
  background: var(--deep-teal);
  color: #FFF;
}

.b2b-qty-input {
  width: 26px;
  text-align: center;
  border: none;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 0;
  outline: none;
  background: transparent;
}

/* Subtotal por Prenda */
.b2b-card-footer {
  padding: 0.85rem 1.2rem;
  background: #082928;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.b2b-card-selected-count {
  font-weight: 700;
  color: var(--lemon-cream);
}

.b2b-card-subtotal-val {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--orange-peel);
  font-size: 0.95rem;
}

/* ==========================================================================
   DOCK ULTRA-COMPACTO DE LIQUIDACIÓN B2B (MOBILE-FIRST)
   ========================================================================== */
.b2b-sticky-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(23, 16, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFF;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.35);
  border-top: 2px solid var(--orange-peel);
  z-index: 2000;
  padding: 0.65rem 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.b2b-dock-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dock-summary-brief {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dock-units-pill {
  background: var(--orange-peel);
  color: #FFF;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dock-total-price {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dock-tier-tag {
  background: var(--lemon-cream);
  color: var(--deep-teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.dock-empty-msg {
  font-size: 0.82rem;
  color: var(--lemon-cream);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-dock-review-order {
  background: linear-gradient(135deg, var(--orange-peel) 0%, var(--orange-peel-hover) 100%);
  color: #FFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 138, 31, 0.35);
  transition: var(--transition-apple);
}

.btn-dock-review-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 138, 31, 0.5);
}

@media (max-width: 540px) {
  .b2b-sticky-dock {
    padding: 0.5rem 0.75rem;
  }
  .dock-total-price {
    font-size: 1.05rem;
  }
  .btn-dock-review-order {
    padding: 0.55rem 0.95rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   MODAL DE INSPECCIÓN FOTOGRÁFICA Y DETALLE TÉCNICO B2B (IN-PAGE)
   ========================================================================== */
.b2b-photo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 16, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.b2b-photo-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.b2b-photo-modal-card {
  background: var(--bright-white);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-gold);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  animation: vaultCardPop 0.3s ease;
}

@media (min-width: 768px) {
  .b2b-photo-modal-card {
    grid-template-columns: 1fr 1.15fr;
    padding: 2rem;
  }
}

.b2b-modal-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.b2b-modal-main-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #EFEFEF;
  border: 1px solid var(--border-subtle);
}

.b2b-modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.b2b-modal-thumbs-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.b2b-modal-thumb-item {
  width: 52px;
  height: 70px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition-apple);
}

.b2b-modal-thumb-item:hover, .b2b-modal-thumb-item.active {
  border-color: var(--orange-peel);
  opacity: 1;
}

.b2b-modal-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b2b-modal-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.b2b-modal-back-btn {
  background: var(--lemon-cream);
  color: var(--deep-teal-dark);
  border: 1px solid rgba(140, 109, 88, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-apple);
  margin-top: 1.25rem;
}

.b2b-modal-back-btn:hover {
  background: var(--orange-peel);
  color: #FFF;
  border-color: var(--orange-peel);
}

/* MODAL DE ORDEN DE CORTE Y DATOS BOUTIQUE (SLIDE-UP DRAWER) */
.b2b-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.b2b-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.b2b-modal-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-gold);
  padding: 2rem;
  position: relative;
  animation: vaultCardPop 0.3s ease;
}

.b2b-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #FFF;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-apple);
}

.b2b-modal-close:hover {
  color: #000;
  border-color: var(--orange-peel);
}

/* BOTONES DE ACCIÓN DE CIERRE B2B */
.btn-b2b-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFF !important;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: var(--transition-apple);
}

.btn-b2b-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
  filter: brightness(1.05);
}

.btn-b2b-excel {
  background: linear-gradient(135deg, var(--deep-teal) 0%, var(--deep-teal-dark) 100%);
  color: #FFF !important;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(140, 109, 88, 0.25);
  transition: var(--transition-apple);
}

.btn-b2b-excel:hover {
  background: var(--deep-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(140, 109, 88, 0.4);
}

.btn-b2b-clear {
  background: rgba(239, 68, 68, 0.08);
  color: #DC2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.75rem 1rem;
  transition: var(--transition-apple);
}

.btn-b2b-clear:hover {
  background: #DC2626;
  color: #FFF !important;
  border-color: #DC2626;
}

