/* =========================================================================
   IBIZA MUEBLES · WEB ECOMMERCE 2027 (ESTILO EDITORIAL CONFORT + ORBITAL CHAT)
   Paleta y tipografía sincronizadas con https://www.milink.pe/ibizamuebles
   ========================================================================= */
:root {
  --navy-deep: #021b29;
  --bg: #042b40;
  --hdr: #063954;
  --surface: #0b587c;
  --s2: #0e6b96;
  --gold: #cfa849;
  --gold-l: #e6c773;
  --gold-soft: #fbf6e8;
  --gold-brd: rgba(207, 168, 73, 0.34);
  --cream: #f5f7fa;
  --sand: #eef2f6;
  --paper: #ffffff;
  --brd: #e2e8f0;
  --ink: #072232;
  --ink-soft: #2c4657;
  --muted: #64748b;
  --emerald: #0d8a5e;
  --emerald-soft: #eafaf3;
  --danger: #dc2626;
  --radius-sm: 11px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-editorial: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-card: 0 6px 24px -4px rgba(4, 43, 64, 0.06);
  --shadow-hover: 0 20px 40px -10px rgba(4, 43, 64, 0.13);
  --shadow-modal: 0 28px 70px rgba(2, 27, 41, 0.42);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Regla anti-desborde universal en contenedores Grid y Flex (sin encoger botones ni píldoras) */
main, section, header, footer, article, aside, form, div, h1, h2, h3, h4, p {
  min-width: 0;
}

.hero-section,
.benefits-strip,
.catalog-section,
.showroom-section,
.site-footer,
.chk-body-grid {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.008em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, .font-editorial {
  font-family: var(--font-editorial);
  font-weight: 600;
  letter-spacing: -0.028em;
  margin: 0;
}

h3, h4, .font-display {
  font-family: var(--font-editorial);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== TOP PROMO / CYBER BAR ==================== */
.promo-bar {
  background: linear-gradient(90deg, var(--navy-deep) 0%, #073b56 50%, var(--navy-deep) 100%);
  color: #f6f2e8;
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
  font-size: 12.5px;
  padding: 8px 14px;
  position: relative;
  z-index: 45;
}

.promo-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid rgba(227, 200, 123, 0.45);
  color: var(--gold-l);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-l);
  box-shadow: 0 0 8px var(--gold-l);
  animation: softPulse 1.8s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ==================== STICKY LUXURY HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 35, 52, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.header-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.brand-wordmark-logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.brand-text-wrap {
  min-width: 0;
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  padding: 3px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-editorial);
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 11px;
  color: var(--gold-l);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 13.5px;
  font-weight: 400;
  outline: none;
  transition: all 0.2s ease;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-l);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.header-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-l);
  pointer-events: none;
  display: flex;
}

.header-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-chat-hdr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(227, 200, 123, 0.45);
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold-l);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-chat-hdr:hover {
  background: rgba(201, 168, 76, 0.26);
  transform: translateY(-1px);
}

.live-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  flex-shrink: 0;
}

.btn-cart-hdr {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(201, 168, 76, 0.26);
  white-space: nowrap;
}

.btn-cart-hdr:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.cart-count-pill {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--gold-l);
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-row {
  display: none;
  padding: 0 16px 11px;
}

/* ==================== HERO MODERN ARCHITECTURAL 2027 ==================== */
.hero-section {
  background:
    radial-gradient(ellipse 62% 85% at 84% 20%, rgba(14, 116, 168, 0.34), transparent 62%),
    radial-gradient(ellipse 48% 60% at 8% 92%, rgba(207, 168, 73, 0.12), transparent 58%),
    linear-gradient(135deg, #021b29 0%, #042b40 54%, #073f5c 100%);
  color: #fff;
  padding: 36px 0 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 34px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(227, 200, 123, 0.35);
  color: var(--gold-l);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-editorial);
  font-size: clamp(29px, 3.5vw, 45px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--gold-l);
  font-weight: 500;
}

.hero-desc {
  font-size: 15.5px;
  font-weight: 300;
  color: rgba(246, 242, 232, 0.86);
  line-height: 1.62;
  max-width: 590px;
  margin: 0 0 22px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-gold-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  height: auto;
  padding: 10px 22px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(201, 168, 76, 0.28);
  transition: all 0.22s ease;
}

.btn-gold-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 168, 76, 0.38);
}

.btn-glass-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  height: auto;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid rgba(227, 200, 123, 0.42);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-glass-lg:hover {
  background: rgba(201, 168, 76, 0.18);
  border-color: var(--gold-l);
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 580px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(201, 168, 76, 0.18);
  color: var(--gold-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.hero-trust-copy {
  min-width: 0;
}

.hero-trust-copy strong {
  display: block;
  font-weight: 500;
  line-height: 1.2;
}

.hero-trust-sub {
  display: block;
  font-size: 11.5px;
  opacity: 0.75;
  line-height: 1.25;
  margin-top: 1px;
}

/* Hero Right Spotlight Card — Estructura Fija + Transición Suave + Swipe Táctil */
.hero-spotlight {
  background: #fff;
  color: var(--ink);
  border-radius: 26px;
  padding: 16px;
  border: 1px solid rgba(227, 200, 123, 0.45);
  box-shadow: 0 24px 55px rgba(2, 20, 31, 0.42);
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.spotlight-stage {
  display: grid;
  grid-template-columns: 100%;
  position: relative;
}

.spotlight-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.68s ease;
  will-change: opacity;
}

.spotlight-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.spotlight-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  height: 285px;
  min-height: 285px;
  max-height: 285px;
  background: #f1f5f9;
  cursor: pointer;
}

.spotlight-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.spotlight-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(4, 43, 64, 0.88);
  color: var(--gold-l);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.carousel-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(4, 43, 64, 0.68);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.carousel-nav-arrow:hover {
  background: rgba(4, 43, 64, 0.92);
}

.carousel-nav-arrow.prev {
  left: 10px;
}

.carousel-nav-arrow.next {
  right: 10px;
}

.spotlight-body {
  padding: 14px 4px 2px;
}

.spotlight-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  margin-bottom: 6px;
}

.spotlight-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-price-box {
  text-align: right;
  flex-shrink: 0;
  min-height: 44px;
}

.spotlight-price {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 600;
  color: var(--bg);
  white-space: nowrap;
}

.spotlight-reg {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  white-space: nowrap;
  min-height: 16px;
}

.spotlight-meta {
  font-size: 12.5px;
  color: var(--muted);
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

.spotlight-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--brd);
}

.spotlight-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spotlight-dot {
  width: 20px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
  padding: 0;
}

.spotlight-dot.active {
  width: 34px;
  background: var(--bg);
}

/* ==================== BENEFITS STRIP ==================== */
.benefits-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--brd);
  padding: 14px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px;
}

.benefit-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(4, 43, 64, 0.06);
  border: 1px solid rgba(4, 43, 64, 0.1);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.benefit-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.benefit-sub {
  font-size: 11.5px;
  color: var(--muted);
}

/* ==================== CATALOG TOOLBAR & FILTERS ==================== */
.catalog-section {
  padding: 34px 0 64px;
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.catalog-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  color: var(--ink);
}

.catalog-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}

.toolbar-bar {
  background: var(--paper);
  border: 1px solid var(--brd);
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(4, 43, 64, 0.035);
}

.cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--brd);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.cat-pill:hover {
  border-color: var(--gold);
  color: var(--bg);
}

.cat-pill.active {
  background: var(--bg);
  border-color: var(--bg);
  color: #fff;
  box-shadow: 0 4px 12px rgba(4, 43, 64, 0.18);
}

.cat-pill .count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(4, 43, 64, 0.08);
  color: inherit;
  flex-shrink: 0;
}

.cat-pill.active .count {
  background: rgba(201, 168, 76, 0.25);
  color: var(--gold-l);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.mode-switch {
  display: inline-flex;
  background: var(--cream);
  border: 1px solid var(--brd);
  border-radius: 999px;
  padding: 3px;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.mode-btn.active {
  background: var(--paper);
  color: var(--bg);
  box-shadow: 0 2px 6px rgba(4, 43, 64, 0.09);
}

.sort-select {
  height: 38px;
  line-height: 36px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--brd);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23042b40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

/* ==================== SHOPIFY 2027 PRODUCT GRID & CARDS ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--brd);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  box-shadow: var(--shadow-card);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.pcard-media {
  position: relative;
  width: 100%;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  background: #eff3f7;
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.pcard-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pcard-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: opacity;
}

.pcard-slide-img.active {
  opacity: 1;
  z-index: 1;
}

.pcard-dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(4, 43, 64, 0.52);
  backdrop-filter: blur(4px);
}

.pcard-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.pcard-dot.active {
  width: 16px;
  background: var(--gold-l);
}

.pcard-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(4, 43, 64, 0.58);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.2s ease;
}

.product-card:hover .pcard-arrow {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .pcard-arrow {
    opacity: 0.88;
  }
}

.pcard-arrow.prev {
  left: 8px;
}

.pcard-arrow.next {
  right: 8px;
}

.pcard-badges {
  position: absolute;
  top: 11px;
  left: 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge-disc {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--gold-l);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.badge-cyber {
  background: linear-gradient(135deg, #111827 0%, #991b1b 55%, #dc2626 100%);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: #fff;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--brd);
  font-size: 10.5px;
  font-weight: 500;
}

.pcard-quickview-btn {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(4, 43, 64, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.pcard-quickview-btn:hover {
  background: var(--bg);
  color: #fff;
}

.pcard-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 11px;
}

.pcard-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.pcard-cat {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--surface);
  font-weight: 500;
}

.pcard-sku {
  color: var(--muted);
  font-size: 10.5px;
}

.pcard-title {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 20px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  margin-top: 4px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-title:hover {
  color: var(--surface);
}

/* Color Swatches on Card — Altura uniforme para alineación horizontal perfecta */
.pcard-swatches-wrap {
  margin-top: 8px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pcard-color-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.pcard-color-label strong {
  color: var(--ink);
  font-weight: 500;
}

.swatch-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  position: relative;
}

.swatch-dot:hover {
  transform: scale(1.13);
}

.swatch-dot.active {
  box-shadow: 0 0 0 2px var(--bg);
  transform: scale(1.1);
}

.pcard-attrs {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  height: 23px;
  gap: 5px;
  margin-top: 8px;
}

.attr-chip {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--brd);
  color: var(--ink-soft);
  white-space: nowrap;
}

.pcard-price-block {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf1f5;
}

.pcard-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
}

.pcard-price-now {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 600;
  color: var(--bg);
  white-space: nowrap;
}

.pcard-price-reg {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.pcard-sep-note {
  font-size: 11.5px;
  color: var(--emerald);
  margin-top: 2px;
  font-weight: 400;
}

.pcard-sep-note strong {
  font-weight: 500;
}

.pcard-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

/* Insignia de Fuego Black Friday / Campaña Diciembre sobrepuesta al botón Comprar ahora */
.buy-btn-wrap {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
}

.buy-btn-wrap > button {
  width: 100%;
}

.buy-btn-wrap.has-bf > button {
  padding-top: 4px;
}

.bf-fire-pill {
  position: absolute;
  top: -9px;
  left: 9px;
  z-index: 6;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  height: 18px;
  padding: 0 7.5px 0 5.5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #7f1d1d 52%, #dc2626 100%);
  border: 1px solid rgba(251, 191, 36, 0.85);
  color: #ffffff;
  font-family: var(--font-editorial);
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  max-width: calc(100% - 14px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 3px 9px rgba(185, 28, 28, 0.34);
}

.bf-fire-pill svg {
  width: 10.5px;
  height: 10.5px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.55));
}

.btn-buy-fast {
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, var(--bg) 0%, #084463 100%);
  color: #fff;
  font-family: var(--font-editorial);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(4, 43, 64, 0.14);
}

.btn-buy-fast:hover {
  background: linear-gradient(135deg, #073b56 0%, var(--surface) 100%);
  transform: translateY(-1px);
}

.btn-buy-fast .bolt {
  color: var(--gold-l);
}

.btn-add-cart {
  height: 42px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid #d5dee8;
  background: #f1f5f9;
  color: var(--bg);
  font-family: var(--font-editorial);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
}

.btn-wrap-safe {
  white-space: normal !important;
  height: auto !important;
  padding-top: 11px !important;
  padding-bottom: 11px !important;
  line-height: 1.25 !important;
  text-align: center;
}

.btn-add-cart:hover {
  background: var(--bg);
  border-color: var(--bg);
  color: #ffffff;
}

/* ==================== SHOWROOM & FOOTER ==================== */
.showroom-section {
  padding: 20px 0 56px;
}

.showroom-card {
  background: linear-gradient(135deg, var(--bg) 0%, var(--hdr) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 20px 48px rgba(4, 43, 64, 0.16);
}

.showroom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.16);
  border: 1px solid rgba(227, 200, 123, 0.38);
  color: var(--gold-l);
  font-size: 11.5px;
  margin-bottom: 12px;
}

.showroom-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  margin-bottom: 10px;
}

.showroom-text {
  font-size: 14.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
  line-height: 1.6;
}

.showroom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.showroom-btn {
  min-height: 44px;
  height: 44px;
  font-size: 13.5px;
  padding: 0 20px;
}

.showroom-info-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showroom-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(201, 168, 76, 0.22);
  padding: 36px 0 105px;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==================== MODALS & SLIDE DRAWERS ==================== */
.backdrop-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(3, 24, 36, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.backdrop-overlay.open {
  display: flex;
  animation: fadeOverlay 0.2s ease;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* PDP Quick-View Modal */
.pdp-modal-card {
  width: 100%;
  max-width: 980px;
  max-height: 92dvh;
  background: var(--paper);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  position: relative;
  border: 1px solid var(--brd);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--brd);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.modal-close-btn:hover {
  background: var(--bg);
  color: #fff;
}

.pdp-gallery-col {
  background: #f1f5f9;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow-y: auto;
}

.pdp-main-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
  width: 100%;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  border: 1px solid var(--brd);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.pdp-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pdp-slide-img.active {
  opacity: 1;
  z-index: 1;
}

.pdp-counter-pill {
  position: absolute;
  bottom: 11px;
  right: 12px;
  z-index: 3;
  background: rgba(4, 43, 64, 0.82);
  color: var(--gold-l);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.pdp-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pdp-thumb {
  width: 64px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.pdp-thumb.active {
  border-color: var(--bg);
}

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

.pdp-info-col {
  padding: 24px 26px;
  overflow-y: auto;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdp-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.24;
  padding-right: 28px;
}

.pdp-price-box {
  background: var(--cream);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pdp-price-now {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  color: var(--bg);
}

.pdp-ficha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--brd);
  border-radius: 15px;
  padding: 12px;
  font-size: 12.5px;
}

.pdp-ficha-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.pdp-ficha-item strong {
  font-weight: 500;
  color: var(--ink);
}

.pdp-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 6px;
}

.pdp-consult-box {
  background: var(--gold-soft);
  border: 1px solid rgba(201, 168, 76, 0.42);
  border-radius: 16px;
  padding: 12px 14px;
}

/* ==================== CART SLIDE-OVER DRAWER ==================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 24, 36, 0.56);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: flex-end;
}

.cart-drawer-overlay.open {
  display: flex;
}

.cart-drawer {
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(3, 24, 36, 0.28);
  animation: slideLeftIn 0.24s ease;
}

@keyframes slideLeftIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-hdr {
  background: var(--bg);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--brd);
  background: var(--cream);
  position: relative;
}

.btn-remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #f0cfd4;
  background: #fff5f6;
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

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

.btn-clear-cart {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease;
}

.btn-clear-cart:hover {
  background: rgba(197, 51, 71, 0.85);
  border-color: rgba(197, 51, 71, 0.9);
}

.cart-item img {
  width: 74px;
  height: 62px;
  border-radius: 11px;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--brd);
  background: #fff;
  border-radius: 999px;
  height: 28px;
}

.qty-ctrl button {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
}

.qty-ctrl span {
  min-width: 22px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
}

.cart-ftr {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--brd);
  background: #fff;
}

/* ==================== 1-SCREEN EXPRESS CHECK-IN & CHECKOUT 2027 ==================== */
.checkout-modal-card {
  width: 100%;
  max-width: 1040px;
  max-height: 94dvh;
  background: var(--cream);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.chk-topbar {
  background: var(--bg);
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  flex-shrink: 0;
}

.chk-body-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.chk-panel {
  background: var(--paper);
  border: 1px solid var(--brd);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chk-step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.chk-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--gold-l);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
}

.ship-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ship-opt {
  border: 1.5px solid var(--brd);
  background: var(--cream);
  border-radius: 14px;
  padding: 10px 9px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ship-opt.active {
  border-color: var(--bg);
  background: rgba(4, 43, 64, 0.05);
  box-shadow: 0 0 0 1px var(--bg);
}

.ship-opt-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  display: block;
}

.ship-opt-sub {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-lbl {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  font-weight: 500;
}

.field-inp {
  width: 100%;
  height: 41px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s ease;
}

.field-inp:focus {
  border-color: var(--bg);
  box-shadow: 0 0 0 3px rgba(4, 43, 64, 0.08);
}

.pay-ratio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ratio-card {
  border: 1.5px solid var(--brd);
  background: var(--cream);
  border-radius: 15px;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ratio-card.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold);
}

.method-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: var(--cream);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--brd);
}

.method-tab {
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.method-tab.active {
  background: var(--bg);
  color: #fff;
}

.bank-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--brd);
  background: #fff;
}

.bank-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bank-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid #eee;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

.btn-copy-acct {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--brd);
  background: var(--cream);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-copy-acct:hover {
  background: var(--bg);
  color: #fff;
}

.voucher-dropzone {
  border: 1.5px dashed var(--gold);
  background: var(--gold-soft);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.voucher-dropzone:hover {
  background: #fbf1d4;
}

/* ==================== ORBITAL CHAT-ECOMMERCE WIDGET (ESTILO MILINK.PE) ==================== */
.orbital-backdrop {
  position: fixed;
  inset: 0;
  z-index: 68;
  background: rgba(3, 24, 36, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
}

.orbital-backdrop.open {
  display: block;
  animation: fadeOverlay 0.2s ease;
}

.orbital-dock {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.orbital-dock.chat-open {
  z-index: 75;
}

body.overlay-active .orbital-dock {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.orbital-dock.chat-open .orbital-pill-cta {
  display: none;
}

.orbital-pill-cta {
  background: rgba(4, 43, 64, 0.96);
  color: #fff;
  border: 1px solid rgba(227, 200, 123, 0.55);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 12px 30px rgba(3, 24, 36, 0.34);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.22s ease;
  backdrop-filter: blur(10px);
}

.orbital-pill-cta:hover {
  transform: translateY(-2px);
  border-color: var(--gold-l);
}

.orbital-pill-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.orbital-pill-sub {
  font-size: 10.5px;
  color: var(--gold-l);
  display: block;
}

.orbital-core-btn {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Anillos Orbitales Animados */
.orbit-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(201, 168, 76, 0.65);
  animation: orbitSpinCW 11s linear infinite;
  pointer-events: none;
}

.orbit-ring::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-l);
  box-shadow: 0 0 10px var(--gold-l);
}

.orbit-ring-outer {
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.28);
  animation: orbitSpinCCW 16s linear infinite;
  pointer-events: none;
}

.orbit-ring-outer::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 9px #22c55e;
}

@keyframes orbitSpinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.orbital-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg) 0%, var(--hdr) 100%);
  border: 2.5px solid var(--gold);
  box-shadow: 0 12px 28px rgba(3, 24, 36, 0.42), 0 0 22px rgba(201, 168, 76, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.22s ease;
}

.orbital-core-btn:hover .orbital-avatar {
  transform: scale(1.06);
}

.orbital-avatar img {
  width: 82%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.orbital-status-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  z-index: 3;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #fff;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.85);
}

/* Ventana Flotante del Chat-Ecommerce Orbital (Solo cabecera nativa de milink) */
.orbital-chat-window {
  position: fixed;
  right: 22px;
  bottom: 100px;
  z-index: 72;
  width: 425px;
  height: min(640px, calc(100dvh - 118px));
  background: var(--bg);
  border-radius: 24px;
  border: 1.5px solid rgba(227, 200, 123, 0.55);
  box-shadow: 0 28px 75px rgba(2, 18, 28, 0.58);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
}

.orbital-chat-window.open {
  display: flex;
  animation: orbitalPopIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes orbitalPopIn {
  from { opacity: 0; transform: scale(0.86) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.orbital-ctrl-btn {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.16s ease;
}

.orbital-ctrl-btn:hover {
  background: rgba(201, 168, 76, 0.32);
}

.orbital-splash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, var(--hdr), var(--navy-deep));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.orbital-splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.orbital-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: var(--bg);
}

/* Toast Notification — Centrada arriba con márgenes seguros en 100% de pantallas */
.toast-msg {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: 14px;
  right: 14px;
  margin: 0 auto;
  transform: translateY(-16px);
  z-index: 140;
  background: var(--bg);
  color: #fff;
  border: 1px solid var(--gold);
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  width: fit-content;
  max-width: min(520px, calc(100% - 28px));
  white-space: normal;
  word-break: break-word;
  box-shadow: 0 14px 34px rgba(3, 24, 36, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE MOBILE / TABLET ==================== */
@media (max-width: 992px) {
  .hero-grid,
  .showroom-card,
  .pdp-modal-card,
  .chk-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cta-row,
  .hero-trust-grid {
    display: none !important;
  }

  .hero-desc {
    margin-bottom: 0;
  }

  .pdp-modal-card {
    max-height: 94dvh;
    overflow-y: auto;
  }

  .pdp-info-col {
    max-height: none;
    overflow: visible;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }

  .header-main {
    padding: 9px 14px;
    gap: 8px;
  }

  .brand-link {
    gap: 9px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-wordmark-logo {
    height: 27px;
    max-width: 148px;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .header-search {
    display: none;
  }

  .mobile-search-row {
    display: block;
    padding: 0 14px 9px;
  }

  .mobile-search-row .header-search input {
    height: 38px;
    font-size: 13.5px;
  }

  .btn-chat-hdr {
    height: 35px;
    padding: 0 10px;
    gap: 5px;
  }

  .btn-chat-hdr span.txt {
    display: none;
  }

  .btn-cart-hdr {
    height: 35px;
    padding: 0 10px;
    gap: 6px;
    font-size: 12px;
  }

  .btn-cart-hdr .cart-lbl {
    display: none;
  }

  .hero-section {
    padding: 14px 0 20px;
  }

  .hero-grid {
    gap: 14px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 7px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.48;
    margin-bottom: 0;
  }

  .hero-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .hero-trust-item {
    padding: 7px 9px;
    font-size: 11px;
    gap: 7px;
    border-radius: 12px;
  }

  .hero-trust-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 7px;
  }

  .hero-trust-sub {
    display: none;
  }

  .hero-spotlight {
    padding: 12px;
    border-radius: 20px;
  }

  .spotlight-media {
    height: 235px;
    min-height: 235px;
    max-height: 235px;
  }

  .spotlight-row-top {
    height: 54px;
    min-height: 54px;
    max-height: 54px;
  }

  .spotlight-name {
    font-size: 15.5px;
  }

  .spotlight-price {
    font-size: 19px;
  }

  .spotlight-footer {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .spotlight-dot {
    width: 14px;
  }

  .spotlight-dot.active {
    width: 24px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .benefit-card {
    padding: 4px 2px;
    gap: 8px;
  }

  .benefit-ico {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .benefit-title {
    font-size: 12px;
  }

  .benefit-sub {
    font-size: 10.5px;
  }

  .catalog-section {
    padding: 24px 0 54px;
  }

  .toolbar-bar {
    padding: 12px;
    gap: 12px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .cat-pills {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .cat-pill {
    height: 35px;
    padding: 0 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .toolbar-controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e8eef5;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .mode-btn {
    text-align: center;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
  }

  .sort-select {
    width: 100%;
    height: 38px;
    line-height: 36px;
    font-size: 12.5px;
    padding: 0 34px 0 14px;
  }

  /* 1 SOLA COLUMNA EN CELULAR CON ALTURA DE IMAGEN UNIFORME */
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .product-card {
    border-radius: 20px;
  }

  .pcard-media {
    height: 265px;
    min-height: 265px;
    max-height: 265px;
  }

  .pcard-body {
    padding: 15px 16px 16px;
    gap: 10px;
  }

  .pcard-title {
    font-size: 16.5px;
    line-height: 21px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
  }

  .pcard-price-now {
    font-size: 22px;
  }

  .pcard-swatches-wrap {
    min-height: 0;
  }

  .pcard-actions {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
  }

  .btn-buy-fast,
  .btn-add-cart {
    height: 42px;
    font-size: 13px;
    padding: 0 12px;
  }

  .pdp-gallery-col {
    padding: 14px;
  }

  .pdp-info-col {
    padding: 16px 15px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .pdp-title {
    font-size: 19px;
  }

  .pdp-ficha-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdp-cta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .pdp-main-img-wrap {
    height: 265px;
    min-height: 265px;
    max-height: 265px;
  }

  .chk-topbar {
    padding: 12px 14px;
  }

  .chk-body-grid {
    padding: 12px;
    gap: 12px;
  }

  .chk-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .showroom-card {
    padding: 22px 16px;
    border-radius: 22px;
    gap: 18px;
  }

  .showroom-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .showroom-btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 14px;
    text-align: center;
  }

  .ship-options,
  .form-grid-2,
  .pay-ratio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .orbital-dock {
    right: 14px;
    bottom: 14px;
  }

  .orbital-dock.chat-open {
    right: 12px;
    bottom: 10px;
  }

  .orbital-dock.chat-open .orbital-core-btn {
    width: 54px;
    height: 54px;
  }

  .orbital-dock.chat-open .orbital-avatar {
    width: 48px;
    height: 48px;
  }

  .orbital-pill-cta {
    padding: 8px 13px;
  }

  .orbital-pill-sub {
    display: none;
  }

  .orbital-chat-window {
    top: 10px;
    left: 8px;
    right: 8px;
    bottom: 74px;
    width: auto;
    height: auto;
    border-radius: 22px;
  }

  .backdrop-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .checkout-modal-card,
  .pdp-modal-card {
    border-radius: 22px 22px 0 0;
    max-height: 95dvh;
  }
}

@media (max-width: 390px) {
  .orbital-pill-cta {
    display: none;
  }
}
