/* =========================================================================
   INNOVATIVE PTY GRAPHICS — ESTILOS OFICIALES DE DETALLES DE PRODUCTO
   Layout 2 columnas: Izquierda (55%) / Derecha (45%) | Max-width 1400px
   Altura controlada de galería (~500px Desktop / ~300px Móvil)
   ========================================================================= */

:root {
  --blue: #118cff;
  --blue-hover: #0077e6;
  --blue-glow: rgba(17, 140, 255, 0.4);
  --cyan: #00d4ff;
  --bg: #03060a;
  --panel: #060b13;
  --panel-elevated: #080f1a;
  --line: rgba(17, 140, 255, 0.22);
  --line-subtle: rgba(255, 255, 255, 0.12);
  --muted: #cbd5e1;
  --muted-dim: #94a3b8;
  --text: #f8fafc;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "League Spartan", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   1. ÚNICO ENCABEZADO OFICIAL APROBADO
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 6, 11, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover .brand-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2vw;
  margin: auto;
}

.desktop-nav a {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

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

/* Language Selector Desktop */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.lang-selector:hover {
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  user-select: none;
}

.cart-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 140, 255, 0.15);
  border: 1px solid var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cart-top:hover {
  background: var(--blue);
  box-shadow: 0 0 16px var(--blue-glow);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(17, 140, 255, 0.1);
  border: 1px solid rgba(17, 140, 255, 0.35);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn:hover {
  background: rgba(17, 140, 255, 0.25);
  border-color: var(--blue);
}

/* =========================================================================
   2. MIGAS DE PAN (BREADCRUMBS)
   ========================================================================= */
.crumbs {
  padding: 10px 4vw;
  font-size: 0.80rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #020508;
  max-width: 100%;
  white-space: nowrap;
  overflow-x: auto;
}

.crumbs span {
  color: #fff;
  font-weight: 700;
}

/* =========================================================================
   3. DISTRIBUCIÓN PRINCIPAL (55% GALERÍA / 45% INFORMACIÓN, MAX-WIDTH 1400PX)
   ========================================================================= */
.product-shell,
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
  align-items: start;
}

/* =========================================================================
   4. COLUMNA IZQUIERDA (55%): GALERÍA Y FOTOGRAFÍA PRINCIPAL
   ========================================================================= */
.product-gallery,
.product-info,
.gallery-panel,
.info-panel {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.gallery-panel,
.product-gallery {
  position: sticky;
  top: 90px;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(340px, 36vw, 480px);
  max-height: 500px;
  background: radial-gradient(circle at 50% 50%, rgba(17, 140, 255, 0.08) 0%, rgba(3, 7, 13, 0.98) 75%), #03060c;
  border: 1px solid rgba(17, 140, 255, 0.22);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.product-main-image,
#mainImage,
.hero-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  transition: opacity 0.2s ease;
  user-select: none;
}

.kit-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--blue), #004da8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(17, 140, 255, 0.35);
  pointer-events: none;
  z-index: 2;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(3, 7, 13, 0.95);
  border-radius: var(--radius-lg);
  z-index: 3;
}

.fallback-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.fallback-msg {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 280px;
  line-height: 1.35;
}

.fallback-retry-btn {
  background: rgba(17, 140, 255, 0.15);
  border: 1px solid var(--blue);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fallback-retry-btn:hover {
  background: var(--blue);
  color: #fff;
}

.zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(3, 6, 12, 0.85);
  border: 1px solid rgba(17, 140, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.zoom:hover {
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue-glow);
  transform: scale(1.05);
}

.variant-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 112px));
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

.variant-thumb {
  aspect-ratio: 16 / 10;
  min-height: 58px;
  max-height: 72px;
  width: 100%;
  background: #04080e;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.variant-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 4px;
  pointer-events: none;
  transition: transform 0.22s ease;
}

.variant-thumb span,
.variant-thumb b {
  display: none !important;
}

.variant-thumb:hover {
  border-color: rgba(17, 140, 255, 0.7);
  background: rgba(17, 140, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(17, 140, 255, 0.25);
}

.variant-thumb:hover img {
  transform: scale(1.06);
}

.variant-thumb.active {
  border-color: var(--blue);
  border-width: 2px;
  background: rgba(17, 140, 255, 0.18);
  box-shadow: 0 0 16px rgba(17, 140, 255, 0.5), inset 0 0 8px rgba(17, 140, 255, 0.15);
  transform: scale(1.02);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #050a12;
  border: 1px solid rgba(17, 140, 255, 0.2);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.benefits div {
  text-align: center;
  font-size: 0.80rem;
}

.benefits b {
  font-size: 0.78rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.benefits span {
  font-size: 0.72rem;
  color: var(--muted);
  display: block;
  line-height: 1.25;
}

/* =========================================================================
   5. COLUMNA DERECHA (45%): PANEL DE INFORMACIÓN Y COMPRA
   ========================================================================= */
.info-panel {
  background: #060b13;
  border: 1px solid rgba(17, 140, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.best {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 9px;
  letter-spacing: 0.05em;
}

#sku {
  font-size: 0.80rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

#productTitle {
  font-size: clamp(1.45rem, 1.9vw, 1.95rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.01em;
}

.compatible {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.compatible strong {
  color: #fff;
  font-weight: 700;
}

.price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--cyan);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shipping {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: #03070d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.80rem;
  width: 100%;
  box-sizing: border-box;
}

.shipping div {
  line-height: 1.3;
}

.shipping div b {
  font-size: 0.80rem;
  color: #fff;
  display: block;
  margin-top: 2px;
  font-weight: 700;
}

.shipping div span {
  font-size: 0.74rem;
  color: var(--muted);
  display: block;
}

.section-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin: 14px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-title span,
.section-title small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.variant-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #04080e;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  min-height: 48px;
  height: auto;
  width: 100%;
  box-sizing: border-box;
}

.variant-swatch img {
  width: 38px;
  max-width: 38px;
  height: 30px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: block;
}

.variant-swatch b {
  display: block !important;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  hyphens: auto;
  flex: 1;
}

.variant-swatch:hover {
  border-color: rgba(17, 140, 255, 0.6);
  background: rgba(17, 140, 255, 0.08);
  transform: translateY(-1px);
}

.variant-swatch.active {
  border-color: var(--blue);
  background: rgba(17, 140, 255, 0.18);
  box-shadow: 0 0 12px rgba(17, 140, 255, 0.35);
}

.variant-swatch.active b {
  color: #fff;
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.finish {
  background: #04080e;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.finish:hover {
  border-color: rgba(17, 140, 255, 0.6);
  background: rgba(17, 140, 255, 0.08);
  transform: translateY(-1px);
}

.finish.active {
  border-color: var(--blue);
  background: rgba(17, 140, 255, 0.18);
  box-shadow: 0 0 14px rgba(17, 140, 255, 0.35);
}

.finish b {
  display: block;
  font-size: 0.90rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
}

.finish span {
  display: block;
  font-size: 0.80rem;
  color: var(--muted);
  font-weight: 600;
}

.finish.active span {
  color: var(--cyan);
}

.customization-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.no-customization #customizationSection,
.no-customization .customization-section {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.custom-grid label,
.info-panel label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.custom-grid input,
.custom-grid select,
.info-panel textarea {
  width: 100%;
  background: #03060a;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  padding: 8px 12px;
  font-size: 0.88rem;
  min-height: 42px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.custom-grid input:focus,
.custom-grid select:focus,
.info-panel textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 8px rgba(17, 140, 255, 0.3);
}

.info-panel textarea {
  min-height: 68px;
  max-height: 110px;
  margin-top: 4px;
  resize: vertical;
}

.upload-box {
  border: 1px dashed rgba(17, 140, 255, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
  background: rgba(17, 140, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.upload-box b {
  font-size: 0.92rem;
  color: #fff;
  display: block;
}

.upload-box span {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
}

.upload-btn {
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.upload-btn:hover {
  background: var(--blue-hover);
}

.upload-box input[type="file"] {
  display: none;
}

.file-name {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
}

.quantity {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.qty-label,
.quantity span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qty-stepper,
.quantity div {
  display: inline-flex;
  align-items: center;
  background: #03060a;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 48px;
  box-sizing: border-box;
}

.qty-btn,
.quantity button {
  width: 36px;
  min-width: 36px;
  height: 48px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
  padding: 0;
}

.qty-btn:hover,
.quantity button:hover {
  background: rgba(17, 140, 255, 0.2);
  color: var(--cyan);
}

.qty-btn:active,
.quantity button:active {
  background: rgba(17, 140, 255, 0.35);
}

.qty-val,
.quantity strong {
  min-width: 34px;
  padding: 0 4px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: inherit;
}

.add-cart,
.buy-now {
  min-height: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-sizing: border-box;
  padding: 0 14px;
  min-width: 0;
  font-family: inherit;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05em;
  line-height: 1;
  flex-shrink: 0;
}

.btn-label {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.add-cart {
  flex: 1 1 185px;
  background: rgba(17, 140, 255, 0.14);
  border: 1px solid var(--blue);
  color: #fff;
}

.add-cart:hover {
  background: rgba(17, 140, 255, 0.28);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(17, 140, 255, 0.4);
}

.buy-now {
  flex: 1 1 210px;
  background: linear-gradient(135deg, #0077ff, #00b4ff);
  border: 1px solid #00c8ff;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 150, 255, 0.35);
}

.buy-now:hover {
  box-shadow: 0 6px 22px rgba(0, 180, 255, 0.55);
  transform: translateY(-1px);
}

/* Fila de Métodos de Pago Seguros */
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.secure-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.secure-divider {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

.secure-methods {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.method-badge {
  font-size: 13.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-sizing: border-box;
  line-height: 1.2;
}

.method-badge.active {
  color: #ffffff;
  background: #03060a;
  border: 1px solid rgba(17, 140, 255, 0.35);
  box-shadow: 0 0 8px rgba(17, 140, 255, 0.12);
}

.method-badge.upcoming {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.upcoming-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
}

/* =========================================================================
   6. CARRITO SLIDE-OUT
   ========================================================================= */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 94vw);
  background: #05080e;
  border-left: 1px solid var(--line);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
  z-index: 230;
  padding: max(20px, var(--safe-top)) 20px max(20px, var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-sizing: border-box;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cart-head button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.cart-head button:hover {
  color: var(--cyan);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 14px 0;
}

.cart-line {
  background: #070c12;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.cart-line b {
  font-size: 0.92rem;
  display: block;
  margin-bottom: 2px;
}

.cart-line small {
  color: var(--muted);
  font-size: 0.72rem;
  display: block;
}

.cart-line strong {
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 4px;
  display: block;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.cart-total strong {
  color: var(--cyan);
}

.checkout-online-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--cyan), #0077ff);
  border: 1px solid var(--cyan);
  color: #000;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
  transition: all 0.2s ease;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.checkout-online-btn:hover {
  box-shadow: 0 6px 26px rgba(0, 229, 255, 0.65);
  transform: translateY(-2px);
  color: #000;
}

.checkout {
  width: 100%;
  padding: 14px;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #25d366;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
  transition: all 0.2s ease;
}

.checkout:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.22);
  transform: translateY(-1px);
}

/* =========================================================================
   7. MODAL LIGHTBOX PARA ZOOM DE IMAGEN
   ========================================================================= */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
  box-sizing: border-box;
}

.image-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  user-select: none;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--cyan);
}

.modal-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

/* =========================================================================
   8. WIDGETS FLOTANTES (WHATSAPP & ASISTENTE IA)
   ========================================================================= */
.social-float-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 95;
  pointer-events: none;
}

.social-float {
  pointer-events: auto;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.whatsapp-float {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  border-radius: 50% !important;
  background: #25D366 !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(37, 211, 102, 0.35) !important;
  cursor: pointer !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  pointer-events: auto !important;
}

.whatsapp-float svg {
  width: 34px !important;
  height: 34px !important;
  fill: #ffffff !important;
  display: block !important;
  pointer-events: none !important;
  transition: transform 0.22s ease !important;
}

.whatsapp-float:hover {
  background: #20bd5a !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 24px rgba(37, 211, 102, 0.55) !important;
}

.whatsapp-float:hover svg {
  transform: scale(1.06) !important;
}

.whatsapp-float:active {
  transform: translateY(-1px) scale(0.98) !important;
}

.ai-launcher {
  background: linear-gradient(135deg, #118cff, #9933ff);
  color: #fff;
}

.ai-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(17, 140, 255, 0.5);
}

.ai-chat {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: min(360px, 92vw);
  height: 480px;
  background: #05080e;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.ai-chat.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ai-head {
  padding: 14px 16px;
  background: #070d18;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-head b {
  font-size: 0.9rem;
  color: #fff;
  display: block;
}

.ai-head span {
  font-size: 0.85rem;
  color: var(--cyan);
  display: block;
}

.ai-head button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.ai-messages {
  flex-grow: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.35;
  max-width: 85%;
}

.msg.bot {
  background: #08111d;
  border: 1px solid var(--line);
  color: #d8e2ec;
  align-self: flex-start;
}

.msg.user {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
}

.quick-row {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
}

.quick-row button {
  background: #08111d;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 16px;
  padding: 5px 10px;
  font-size: 0.68rem;
  cursor: pointer;
  white-space: nowrap;
}

.quick-row button:hover {
  color: #fff;
  border-color: var(--blue);
}

.ai-form {
  padding: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  background: #04070c;
}

.ai-form input {
  flex-grow: 1;
  background: #060b12;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.ai-form button {
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 6px;
  width: 36px;
  cursor: pointer;
}

/* =========================================================================
   9. MENÚ MÓVIL Y BLINDAJE CONTRA HEADER DUPLICADO
   ========================================================================= */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: rgba(4, 8, 14, 0.98);
  border-left: 1px solid rgba(17, 140, 255, 0.3);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(20px, var(--safe-top)) 20px max(24px, var(--safe-bottom));
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 210;
  box-sizing: border-box;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.mobile-drawer-close {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
}

.mobile-nav-link {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(17, 140, 255, 0.15);
  color: #fff;
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.mobile-drawer-cta.primary {
  background: var(--blue);
  color: #fff;
}

.mobile-drawer-cta.whatsapp {
  background: #25d366;
  color: #fff;
}

/* En pantallas de escritorio y tablets (> 768px), el drawer móvil está completamente oculto */
@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .mobile-drawer-backdrop,
  .mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* =========================================================================
   10. RESPONSIVE MÓVIL (PASO 3: <= 768PX)
   ========================================================================= */
@media (max-width: 768px) {
  .topbar {
    height: 60px;
    height: calc(60px + var(--safe-top, 0px));
    padding: var(--safe-top, 0px) max(12px, var(--safe-right, 12px)) 0 max(12px, var(--safe-left, 12px));
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .logo {
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }
  .brand-logo-img {
    height: 20px !important;
    max-height: 20px !important;
    width: auto !important;
    max-width: 125px !important;
    object-fit: contain;
    display: block;
  }
  .desktop-nav {
    display: none;
  }
  .top-actions {
    gap: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .cart-top {
    padding: 6px 11px;
    font-size: 0.68rem;
    min-height: 34px;
    height: 34px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    gap: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .mobile-menu-btn {
    display: flex;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 6px;
    gap: 4px;
    padding: 0;
  }
  .mobile-menu-btn span {
    width: 18px;
    height: 2px;
  }
  .mobile-drawer-backdrop.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-drawer-backdrop.active .mobile-drawer {
    transform: translateX(0);
  }

  /* Estructura responsive móvil de una columna */
  .product-shell,
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 12px 14px 90px !important;
    width: 100%;
    max-width: 100%;
  }

  .gallery-panel,
  .product-gallery {
    position: static;
    width: 100%;
  }

  .hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 210px;
    max-height: 320px;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .product-main-image,
  #mainImage,
  .hero-image img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }

  .kit-badge {
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .zoom {
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  /* Miniaturas: deslizamiento horizontal táctil suave para no desbordar */
  .variant-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 2px 8px;
    margin-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 140, 255, 0.4) transparent;
  }
  .variant-thumbs::-webkit-scrollbar {
    height: 4px;
  }
  .variant-thumbs::-webkit-scrollbar-thumb {
    background: rgba(17, 140, 255, 0.4);
    border-radius: 4px;
  }
  .variant-thumb {
    flex: 0 0 84px;
    width: 84px;
    min-width: 84px;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 4px 6px;
    border-radius: 6px;
  }

  /* Bloque de características alineado y proporcionado */
  .benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 8px;
    margin-top: 10px;
    background: #050a12;
    border: 1px solid rgba(17, 140, 255, 0.18);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .benefits div {
    text-align: center;
    padding: 2px 4px;
  }
  .benefits b {
    font-size: 0.78rem;
    color: var(--cyan);
    display: block;
    margin-bottom: 2px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }
  .benefits span {
    font-size: 0.72rem;
    color: var(--muted);
    display: block;
    line-height: 1.25;
  }

  .info-panel,
  .product-info {
    padding: 16px 14px;
    width: 100%;
    border-radius: 12px;
  }
  #productTitle {
    font-size: clamp(1.25rem, 5.2vw, 1.6rem);
    line-height: 1.15;
    word-break: break-word;
  }
  .price {
    font-size: 1.45rem;
    margin-bottom: 10px;
  }
  .shipping {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
  }
  .shipping div {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .shipping div b {
    display: inline;
    margin-top: 0;
  }
  .shipping div span {
    display: inline;
    color: var(--muted);
  }
  .shipping div span::before {
    content: " — ";
  }

  .color-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .finish-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .custom-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .buy-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .quantity {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
  }
  .qty-label,
  .quantity span {
    font-size: 0.85rem;
  }
  .qty-stepper,
  .quantity div {
    width: 126px;
    height: 48px;
    flex-shrink: 0;
  }
  .qty-val,
  .quantity strong {
    font-size: 16.5px;
  }
  .add-cart,
  .buy-now {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 48px;
    height: 48px;
    font-size: 15px;
    border-radius: 8px;
    padding: 0 14px;
    box-sizing: border-box;
  }
  .secure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .secure-title {
    font-size: 14px;
    text-align: center;
    width: 100%;
  }
  .secure-divider {
    display: none;
  }
  .secure-methods {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
  }
  .method-badge {
    font-size: 13px;
    padding: 3px 7px;
  }
  .upload-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .upload-btn {
    width: 100%;
    justify-content: center;
  }
  .file-name {
    max-width: 100%;
  }
  .crumbs {
    padding: 8px 14px;
  }

  /* Widgets flotantes globales y compactos */
  .social-float-container {
    right: 14px !important;
    bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    gap: 14px !important;
    z-index: 95 !important;
  }
  .whatsapp-float {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
  }
  .whatsapp-float svg {
    width: 29px !important;
    height: 29px !important;
  }
  .ai-launcher,
  .ai-chat-launcher {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .ai-launcher .ai-label,
  .ai-chat-launcher .ai-label {
    display: none !important;
  }
  .ai-launcher .ai-sparkle,
  .ai-chat-launcher .ai-sparkle {
    margin: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .color-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .finish-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits {
    gap: 4px;
    padding: 8px 6px;
  }
  .benefits b {
    font-size: 0.62rem;
  }
  .benefits span {
    font-size: 0.55rem;
  }
}

@media (max-width: 380px) {
  .cart-top span {
    display: none;
  }
  .cart-top {
    min-width: 36px;
    width: 36px;
    padding: 6px 8px;
    font-size: 0.95rem;
  }
  .add-cart,
  .buy-now {
    font-size: 14px;
    padding: 0 8px;
    gap: 6px;
    min-height: 46px;
    height: 46px;
  }
  .qty-stepper,
  .quantity div {
    width: 110px;
    height: 44px;
  }
  .qty-btn,
  .quantity button {
    width: 32px;
    min-width: 32px;
    height: 44px;
  }
  .qty-val,
  .quantity strong {
    font-size: 16px;
  }
  .secure-title {
    font-size: 13px;
  }
  .method-badge {
    font-size: 12px;
    padding: 2px 6px;
  }
}

/* =========================================================================
   11. SECCIÓN DE DESCRIPCIÓN COMERCIAL DEL PRODUCTO
   ========================================================================= */
.product-description-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 140, 255, 0.22);
  width: 100%;
  box-sizing: border-box;
}

.description-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-description-body {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #cbd5e1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.product-description-body .desc-p {
  margin: 0 0 14px 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.product-description-body .desc-p:last-child {
  margin-bottom: 0;
}

.product-description-body strong {
  color: #ffffff;
  font-weight: 800;
}

.product-description-body em {
  color: var(--cyan);
  font-style: italic;
}

/* Filas destacadas con checks, emojis o llamadas de atención */
.product-description-body .desc-feature {
  padding: 8px 12px;
  margin: 0 0 10px 0;
  background: rgba(17, 140, 255, 0.05);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  color: #e2e8f0;
  transition: background 0.2s ease;
}

.product-description-body .desc-feature:hover {
  background: rgba(17, 140, 255, 0.1);
}

/* Listas con viñetas */
.product-description-body .desc-list {
  margin: 10px 0 16px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-description-body .desc-list-item {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
  color: #cbd5e1;
}

.product-description-body .desc-list-item::before {
  content: '▸';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .product-description-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top-color: rgba(17, 140, 255, 0.18);
  }
  .description-title {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  .product-description-body {
    font-size: 0.86rem;
    line-height: 1.55;
  }
  .product-description-body .desc-p {
    margin-bottom: 12px;
  }
  .product-description-body .desc-feature {
    padding: 8px 12px;
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   CONFIGURADOR DE LAMINADOS, MATERIALES Y DESGLOSE DINÁMICO DE PRECIOS
   ========================================================================== */
.config-section {
  margin-top: 16px;
}

.config-section .section-title {
  margin: 0 0 8px 0;
}

.config-section .section-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.config-grid {
  display: grid;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.config-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.config-grid.materials-grid {
  grid-template-columns: repeat(2, 1fr);
}

.config-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 13px;
  background: #04080e;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  text-align: left;
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  touch-action: manipulation;
}

.config-card:hover:not(.disabled) {
  border-color: rgba(17, 140, 255, 0.6);
  background: rgba(17, 140, 255, 0.08);
  transform: translateY(-1px);
}

.config-card.active {
  border-color: var(--blue);
  background: rgba(17, 140, 255, 0.16);
  box-shadow: 0 0 14px rgba(17, 140, 255, 0.32);
}

.config-card.disabled {
  opacity: 0.32;
  cursor: not-allowed;
  filter: grayscale(0.8);
  border-style: dashed;
  pointer-events: none;
}

.config-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.config-card .card-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.config-card.active .card-name {
  color: #ffffff;
}

.config-card .card-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  white-space: nowrap;
}

.config-card .card-badge.highlight {
  background: rgba(17, 140, 255, 0.22);
  color: var(--cyan);
  border: 1px solid rgba(17, 140, 255, 0.4);
}

.config-card .card-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.config-card .card-desc {
  font-size: 0.80rem;
  color: var(--muted);
  line-height: 1.3;
}

.config-card.active .card-desc {
  color: #cbd5e1;
}

/* DESGLOSE DEL PRECIO EN TIEMPO REAL */
.price-breakdown-card {
  margin: 16px 0 12px 0;
  padding: 12px 14px;
  background: linear-gradient(145deg, #070d18 0%, #03060c 100%);
  border: 1px solid rgba(17, 140, 255, 0.25);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

.price-breakdown-card .breakdown-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.price-breakdown-card .breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-breakdown-card .breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.price-breakdown-card .breakdown-row strong {
  color: #e2e8f0;
  font-weight: 700;
}

.price-breakdown-card .breakdown-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.price-breakdown-card .total-highlight {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

@media (max-width: 600px) {
  .config-grid.two,
  .config-grid.materials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .config-card {
    padding: 8px 10px;
    min-height: 48px;
  }
  .config-card .card-name {
    font-size: 0.84rem;
  }
  .config-card .card-desc {
    font-size: 0.76rem;
  }
}

/* Mobile Drawer Language Selector */
.mobile-drawer-lang {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.mobile-lang-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.lang-selector-mobile {
  display: flex;
  gap: 8px;
}

.lang-btn-mob {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.lang-btn-mob.active {
  background: rgba(0, 212, 255, 0.18);
  border-color: #00d4ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

