/* ========================================================================= */
/* CSS DESIGN SYSTEM & CSS VARIABLES */
/* ========================================================================= */

:root {
  /* Common variables */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --box-shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.3);

  /* Light Theme (Orange & White) */
  --bg-color: #f7f9fc;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-color: #e5e7eb;
  --border-card: #e2e8f0;
  --text-color: #111827;
  --text-muted: #6b7280;
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  
  --primary-color: #ff7a00;
  --primary-hover: #e06c00;
  --primary-glow: rgba(255, 122, 0, 0.2);
  
  --accent-color: #ff4500;
  --badge-used-bg: #ffedd5;
  --badge-used-color: #d97706;
  --badge-new-bg: #dbeafe;
  --badge-new-color: #2563eb;
  
  --danger-color: #ef4444;
  --success-color: #10b981;

  /* Responsive spacing & sizing tokens */
  --container-max: 1400px;
  --container-pad: clamp(12px, 2vw, 24px);
  --touch-target: 44px;
  --card-gap: clamp(10px, 1.5vw, 24px);
}

[data-theme="dark"] {
  /* Dark Theme (Orange & Black) */
  --bg-color: #0b0b0e;
  --bg-panel: #121217;
  --bg-card: #0e131f;
  --bg-glass: rgba(18, 18, 23, 0.75);
  --border-color: #2a2520;
  --border-card: rgba(255, 255, 255, 0.08);
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  
  --primary-color: #ff7a00;
  --primary-hover: #e06c00;
  --primary-glow: rgba(255, 122, 0, 0.35);
  
  --accent-color: #ffb366;
  --badge-used-bg: #ffedd5;
  --badge-used-color: #d97706;
  --badge-new-bg: #1c1207;
  --badge-new-color: #ffb366;
  
  --danger-color: #f87171;
  --success-color: #34d399;
  
  --box-shadow-premium: 0 10px 40px -15px rgba(255, 122, 0, 0.2);
}

/* ========================================================================= */
/* BASE STYLES */
/* ========================================================================= */

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

html {
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--text-color);
  line-height: 1.6;
  transition: color 0.4s ease;
}

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

ul {
  list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ========================================================================= */
/* TYPOGRAPHY & BUTTONS */
/* ========================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  margin: 40px 0 20px;
  position: relative;
  display: inline-block;
}

.section-title h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text-color);
  text-transform: uppercase;
}

.section-title .accent-line {
  display: block;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), #ff6b00);
  margin-top: 8px;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-color);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ponytail: La lÃ­nea de acento se expande cuando la secciÃ³n entra al viewport */
.aparecerVisible .accent-line {
  width: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-secondary {
  background-color: var(--bg-panel);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* ========================================================================= */
/* NAVBAR STYLE */
/* ========================================================================= */

.navbar-container {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  gap: 15px;
}

.brand {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}

.brand .logo-text {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(255, 122, 0, 0.15);
}

[data-theme="dark"] .brand .logo-text {
  color: #fff;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.brand .logo-subtext {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search Bar */
.search-bar {
  display: flex;
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 480px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.search-bar:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 14px;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 60px;
}

.search-bar input:focus {
  outline: none;
}

.search-bar button {
  background: transparent;
  border: none;
  padding: 0 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button:hover {
  color: var(--primary-color);
}

/* Navigation links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-color);
  padding: 7px 10px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  position: relative;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-color);
  background-color: var(--primary-glow);
}

.nav-item .badge {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background-color: var(--border-color);
  color: var(--primary-color);
}

/* Category Quick Bar */
.category-nav {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
}

.category-nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  min-width: max-content;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cat-chip i {
  font-size: 0.95rem;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.cat-chip:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px var(--primary-glow), 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.cat-chip.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.cat-chip:hover i {
  color: white;
  transform: rotate(15deg) scale(1.25);
}

.cat-chip.active i {
  color: white;
  transform: scale(1.15);
}

/* ========================================================================= */
/* MAIN CONTENT TAB SYSTEM */
/* ========================================================================= */

.app-main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 250px);
}

.app-tab {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.app-tab.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================= */
/* HERO CAROUSEL */
/* ========================================================================= */
.carousel-container {
  position: relative;
  width: 100%;
  height: clamp(260px, 30vw, 440px);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-premium);
  margin-bottom: 30px;
  background-color: #000;
}

.carousel-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  image-rendering: auto;
}

/* Sin difuminados ni filtros: renderizado 100% nítido y directo */
.carousel-slide::before {
  display: none;
}

/* Gradiente sutil inferior sólo para contraste del botón */
.carousel-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.carousel-info {
  position: relative;
  z-index: 2;
  padding: clamp(14px, 2.2vw, 28px);
  color: white;
  max-width: clamp(340px, 45vw, 580px);
  margin-bottom: clamp(6px, 1.2vw, 14px);
}

/* Si el slide no tiene título ni descripción, mantenemos limpio el diseño */
.carousel-info:empty {
  display: none;
}

/* Animación de entrada de elementos del carrusel */
.carousel-info .carousel-tag,
.carousel-info h1,
.carousel-info p,
.carousel-info .btn {
  opacity: 0;
  transform: translateY(16px);
  animation: slideTextIn 0.5s ease forwards;
}

.carousel-info .carousel-tag { animation-delay: 0.1s; }
.carousel-info h1 { animation-delay: 0.2s; }
.carousel-info p { animation-delay: 0.3s; }
.carousel-info .btn { animation-delay: 0.4s; }

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

.carousel-tag {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 6px;
  box-shadow: 0 0 10px var(--primary-color);
}

.carousel-info h1 {
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  line-height: 1.22;
  margin-bottom: 6px;
  font-family: var(--font-title);
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.carousel-info p {
  font-size: clamp(0.75rem, 1.1vw, 0.92rem);
  color: #e5e7eb;
  margin-bottom: 12px;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0,0,0,0.75);
}

/* Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.carousel-control:hover {
  background-color: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color);
  animation: controlPulse 1.5s ease-in-out infinite;
}

@keyframes controlPulse {
  0%, 100% { box-shadow: 0 0 15px var(--primary-color); }
  50% { box-shadow: 0 0 25px var(--primary-color), 0 0 40px rgba(249, 115, 22, 0.3); }
}

.carousel-control.prev { left: 14px; }
.carousel-control.next { right: 14px; }

/* ponytail: Barra de progreso reemplaza los dots â€” se llena en 5s sincronizada con autoplay */
.carousel-indicators {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 0 20px 15px;
}

.carousel-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.carousel-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--primary-color);
}

.carousel-dot.active::after {
  width: 100%;
  animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ========================================================================= */
/* PRODUCTS CATALOG GRID */
/* ========================================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: var(--card-gap, 20px);
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  /* ponytail: 21st.dev 3D Depth Engine — Preservación de espacio 3D para elevación multicapa */
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translate3d(0, var(--card-ty, 0px), 0);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
    0 4px 6px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.product-card:hover {
  /* ponytail: Elevación moderada a -3px para evitar saltos bruscos */
  --card-ty: -3px;
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 1px var(--primary-color),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    0 4px 10px -2px rgba(0, 0, 0, 0.25),
    0 10px 20px -5px rgba(0, 0, 0, 0.3),
    0 15px 30px -10px var(--primary-glow);
}

.product-card.is-tilting {
  transition: transform 0.08s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Badge container */
.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-state {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.badge-state.nuevo,
.badge-state.badge-new {
  background-color: var(--badge-new-bg);
  color: var(--badge-new-color);
}

.badge-state.usado,
.badge-state.badge-used {
  background-color: var(--badge-used-bg);
  color: var(--badge-used-color);
}

.badge-state.outlet {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-state.reacondicionado {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-state.deactivated {
  background-color: var(--danger-color);
  color: white;
}

/* Badge de Descuento por Evento Especial (Día del Gamer, Hot Sale, etc.) */
.badge-event-discount {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
  letter-spacing: 0.3px;
  animation: eventGlowPulse 2.5s infinite ease-in-out;
}

@keyframes eventGlowPulse {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.7);
    transform: scale(1.02);
  }
}

/* Heart Favorite button on Card */
.btn-fav-card {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: var(--transition-smooth);
}

.btn-fav-card:hover {
  transform: scale(1.1);
  color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-fav-card.active {
  color: var(--danger-color);
  background-color: #fee2e2;
  border-color: #fca5a5;
}

/* Product image wrapper */
.product-img-wrapper {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.product-img-wrapper img {
  max-width: 90% !important;
  max-height: 90% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
  transform: none;
}

/* Card Content details & Native Link Support */
.product-card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}

a.product-img-wrapper.product-card-link {
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
}

.product-details-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
}

.product-actions {
  position: relative;
  z-index: 6;
}

.btn-fav-card,
.btn-card-admin-action {
  z-index: 6;
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.4;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-title);
}

.product-usd-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.role-discount-badge {
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.original-price-strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* User Role VIP Badges in Header & Profile */
.user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: pulseGlow 2.5s infinite alternate;
}

.user-role-badge.cliente-amigo {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.user-role-badge.cliente-frecuente {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.5);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.user-role-badge.super-admin {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid rgba(253, 186, 116, 0.5);
}

.user-role-badge.admin {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  border: 1px solid rgba(216, 180, 254, 0.5);
}

.user-role-badge.cm {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: #ffffff;
}

@keyframes pulseGlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

/* VIP Banner in Profile */
.vip-profile-banner {
  padding: 16px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.vip-profile-banner.cliente-amigo {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.06) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.vip-profile-banner.cliente-frecuente {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.06) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.product-stock {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stock-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.stock-indicator.in-stock { background-color: var(--success-color); }
.stock-indicator.out-of-stock { background-color: var(--danger-color); }

/* Card Actions */
.product-actions {
  display: flex;
  gap: 10px;
}

/* Admin floating circular actions on product cards (No tapa el botón de carrito) */
.btn-card-admin-action {
  position: absolute;
  right: 15px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-panel);
}

.btn-card-admin-action:hover {
  transform: scale(1.15);
}

.btn-card-admin-action.play-pause {
  top: 58px;
}

.btn-card-admin-action.star-dest {
  top: 100px;
}

.btn-card-admin-action.img-edit {
  top: 142px;
}

/* ========================================================================= */
/* CATALOG HEADER & FILTER ROW */
/* ========================================================================= */

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.catalog-filters {
  display: flex;
  gap: 15px;
}

.catalog-filters select {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-body);
  padding: 8px 15px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.catalog-filters select:focus,
.catalog-filters input:focus {
  border-color: var(--primary-color);
}

.catalog-filters input {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-body);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  outline: none;
  width: 100px;
  transition: var(--transition-smooth);
}

/* Pagination Row */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
}

.page-btn {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-btn:hover, .page-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================================================= */
/* BANNER HIGHLIGHT */
/* ========================================================================= */

.banner-highlight {
  background: linear-gradient(135deg, rgba(255,122,0,0.05) 0%, rgba(255,69,0,0.1) 100%);
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: var(--border-radius-md);
  padding: clamp(16px, 3vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
}

[data-theme="dark"] .banner-highlight {
  background: linear-gradient(135deg, rgba(168,85,247,0.05) 0%, rgba(139,92,246,0.1) 100%);
  border-color: rgba(168, 85, 247, 0.2);
}

.banner-text h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.banner-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
}

@media (max-width: 768px) {
  .banner-highlight {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

/* ========================================================================= */
/* SHOPPING CART DRAWER (SLIDE-IN STYLE) */
/* ========================================================================= */

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background-color: var(--bg-panel);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Cart Drawer Responsive */
@media (max-width: 576px) {
  .cart-drawer {
    max-width: 100% !important;
    width: 100% !important;
  }
  .cart-header { padding: 16px !important; }
  .cart-header h3 { font-size: 1.2rem !important; }
  .cart-items-container { padding: 14px !important; }
  .cart-item { gap: 10px !important; }
  .cart-item-img { width: 55px !important; height: 55px !important; }
  .cart-footer { padding: 14px !important; }
}

@media (min-width: 1921px) {
  .cart-drawer {
    max-width: 520px !important;
  }
  .cart-header h3 { font-size: 1.6rem !important; }
  .cart-items-container { padding: 28px !important; }
  .cart-footer { padding: 24px !important; }
}

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

.cart-header h3 {
  font-size: 1.5rem;
  font-family: var(--font-title);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Cart Item card styling */
.cart-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-sm);
  background-color: white;
  padding: 5px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-qty-adjuster {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: var(--bg-color);
}

.cart-qty-adjuster button {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition-smooth);
}

.cart-qty-adjuster button:hover {
  background-color: var(--border-color);
  color: var(--primary-color);
}

.cart-qty-adjuster span {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-remove-item {
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-remove-item:hover {
  color: var(--danger-color);
}

/* Cart Footer elements */
.cart-footer {
  padding: 24px;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cart-total-row span:first-child {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cart-total-row span:last-child {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-title);
}

.cart-disclaimer {
  display: flex;
  gap: 10px;
  padding: 12px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 20px;
}

.cart-disclaimer i {
  color: var(--primary-color);
  font-size: 1rem;
  margin-top: 2px;
}

/* Empty State Cart */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: var(--border-color);
}

/* ========================================================================= */
/* MODAL STYLING SYSTEM */
/* ========================================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  will-change: opacity, visibility;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--box-shadow-premium);
  transform: scale(0.95) translateY(10px) translateZ(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0) translateZ(0);
}

.modal-lg {
  max-width: 700px;
}

.modal-xl,
.maint-modal-xl {
  max-width: 1250px;
  width: 95%;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Form layouts */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-body);
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.auth-error {
  color: var(--danger-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 15px;
  display: none;
}

.auth-switch {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--primary-color);
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ========================================================================= */
/* ADMIN DASHBOARD PANELS */
/* ========================================================================= */

/* Senior Level Admin Dashboard Layout */
.admin-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  margin-top: 25px;
  align-items: start;
}

@media (max-width: 992px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px !important;
  border-radius: 16px;
  background: rgba(20, 20, 30, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px !important;
  }
  .admin-menu-item {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .admin-menu-item {
    flex: 1 1 100%;
  }
}

.admin-menu-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-menu-item i {
  font-size: 1.1rem;
}

.admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
  transform: translateX(3px);
}

@media (max-width: 992px) {
  .admin-menu-item:hover {
    transform: none;
  }
}

.admin-menu-item.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.2) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Admin Content Panels Styling */
.admin-content {
  background: rgba(20, 20, 30, 0.6) !important;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 30px !important;
  min-height: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

:root:not([data-theme="dark"]) .admin-sidebar,
:root:not([data-theme="dark"]) .admin-content {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

:root:not([data-theme="dark"]) .admin-menu-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

:root:not([data-theme="dark"]) .admin-menu-item.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.03));
}

.admin-content {
  flex: 1;
}

.admin-subtab {
  display: none;
}

.admin-subtab.active {
  display: block;
}

.admin-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.buttons-row {
  display: flex;
  gap: 10px;
}

/* Tables styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

.table-responsive::-webkit-scrollbar {
  height: 7px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.admin-table-container {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th, .admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table th {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-muted);
  background-color: var(--bg-color);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-table tr:hover {
  background-color: rgba(255,255,255,0.02);
}

/* Toggle Switch Checkbox */
.switch-status {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--success-color);
}

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

/* Carousel admin items list */
.carousel-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carousel-list-item {
  display: flex;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px;
  gap: 20px;
  align-items: center;
}

.carousel-item-preview {
  width: 150px;
  height: 90px;
  border-radius: var(--border-radius-sm);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
}

.carousel-item-details {
  flex: 1;
}

.carousel-item-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.carousel-item-details p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================================================= */
/* FOOTER DESIGN */
/* ========================================================================= */

.app-footer {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================================================= */
/* RESPONSIVE DESIGN MEDIA QUERIES */
/* ========================================================================= */

/* Global scroll protection */
body, html {
  overflow-x: auto;
  width: 100%;
}

* {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 576px) {
  .nav-item {
    font-size: 0.8rem !important;
    padding: 5px 8px !important;
  }
  
  .nav-text {
    display: inline !important; /* Keep the labels visible but smaller */
  }

  .carousel-container {
    width: 100%;
    height: clamp(170px, 48vw, 240px);
    margin-bottom: 18px;
  }

  .carousel-info h1 {
    font-size: 1.4rem;
  }

  .carousel-info p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .carousel-info {
    padding: 15px 20px;
  }

  .carousel-info .btn {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Advanced Sidebar Filters Styles */
.filter-group {
  margin-bottom: 15px;
}
.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.filter-group select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}
.filter-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ponytail: MenÃº desplegable premium flotante (Glassmorphism & Micro-animations) para el botÃ³n "Todos" */
.custom-dropdown-menu {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 8px 16px -8px rgba(0, 0, 0, 0.4);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
  min-width: 170px;
}

[data-theme="light"] .custom-dropdown-menu {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.05);
}

.custom-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dropdown-item i {
  font-size: 0.9rem;
  width: 14px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-color);
}

.dropdown-item:hover i {
  color: var(--primary-color);
}

[data-theme="light"] .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dropdown-item.active {
  background: var(--primary-color);
  color: white;
}

.dropdown-item.active i {
  color: white;
}

/* ========================================================================= */
/* OFFERS CAROUSEL IN HOMEPAGE */
/* ========================================================================= */
.offers-carousel-container {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.offers-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 15px 5px; /* Give room for card hover effects */
}

.offers-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: max-content;
}

.offers-carousel-track .product-card {
  width: clamp(220px, 25vw, 320px);
  flex-shrink: 0;
}

.offers-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.offers-carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--box-shadow-premium);
}

.offers-carousel-btn.prev-btn {
  left: -22px;
}

.offers-carousel-btn.next-btn {
  right: -22px;
}

/* Hide navigation buttons on mobile if touch scrolling is used, or make them smaller */
@media (max-width: 768px) {
  .offers-carousel-btn {
    width: 36px;
    height: 36px;
  }
  .offers-carousel-btn.prev-btn {
    left: -10px;
  }
  .offers-carousel-btn.next-btn {
    right: -10px;
  }
  .offers-carousel-wrapper {
    overflow-x: auto; /* Allow direct touch swipe on mobile */
    scrollbar-width: none; /* Hide scrollbar for clean look */
  }
  .offers-carousel-wrapper::-webkit-scrollbar {
    display: none;
  }
  .offers-carousel-btn {
    display: none; /* Hide buttons on mobile touch devices */
  }
  .offers-carousel-track {
    width: auto;
  }
  .category-nav-content {
    justify-content: flex-start !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  #minPrice, #maxPrice, #filterState {
    display: none !important;
  }
}

/* Admin solo destacados checkbox hover glow */
.admin-checkbox-label:hover {
  color: var(--primary-color) !important;
}

/* Product image container */
.detail-img-col {
  position: relative;
  overflow: hidden;
  cursor: default;
}

#detailImg {
  transform: none !important;
}

/* ========================================================================= */
/* CONTAINER EXPANSION FOR ALL MONITOR SIZES (HD, FHD, QHD, 2K+)          */
/* ========================================================================= */

/* HD monitors (1280px - 1399px) */
@media (min-width: 1280px) and (max-width: 1399px) {
  .app-main-content, .category-nav-content, .navbar-content {
    max-width: 1220px;
  }
}

/* FHD monitors (1400px - 1919px) */
@media (min-width: 1400px) and (max-width: 1919px) {
  .app-main-content, .category-nav-content, .navbar-content {
    max-width: 1380px;
  }
}

/* FHD+ / QHD monitors (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .app-main-content, .category-nav-content, .navbar-content {
    max-width: 1800px;
  }
  .products-grid { gap: 24px !important; }
  .product-img-wrapper { height: 240px !important; }
  .product-details { padding: 22px !important; }
  .product-name { font-size: 1.05rem !important; }
  .product-price { font-size: 1.4rem !important; }
}

/* 2K+ Ultra-wide monitors (2560px+) */
@media (min-width: 2560px) {
  .app-main-content, .category-nav-content, .navbar-content {
    max-width: 2400px;
  }
  .products-grid { gap: 28px !important; }
  .product-img-wrapper { height: 280px !important; padding: 25px !important; }
  .product-details { padding: 24px !important; }
  .product-name { font-size: 1.1rem !important; height: 3.2rem !important; }
  .product-price { font-size: 1.5rem !important; }
  .carousel-container {
    width: 100% !important;
    height: 520px !important;
    margin-bottom: 35px !important;
  }
  .admin-content { padding: 40px !important; }
}

/* ========================================================================= */
/* MOBILE RESPONSIVENESS FOR IPHONE 12 / SMALL SCREENS */
/* ========================================================================= */
@media (max-width: 576px) {
  .admin-dashboard {
    gap: 15px;
    margin-top: 10px;
  }
  .admin-sidebar {
    gap: 5px;
    padding-bottom: 10px;
  }
  .admin-menu-item {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  .admin-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-search-bar div {
    max-width: 100% !important;
  }
  .admin-table th, .admin-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .admin-content {
    padding: 5px;
  }
  /* Card for admin configuration form */
  #priceConfigForm .card {
    padding: 12px !important;
    max-width: 100% !important;
  }
  /* Form row elements */
  .form-group {
    margin-bottom: 10px;
  }
}

/* Circular Admin Action Buttons */
.btn-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-panel);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-circle:hover {
  transform: scale(1.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-circle.btn-active {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}
.btn-circle.btn-active:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.btn-circle.btn-paused {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.btn-circle.btn-paused:hover {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}
.btn-circle.btn-starred.active {
  background-color: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.4);
  color: #eab308;
}
.btn-circle.btn-starred.active:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.btn-circle.btn-img-upload {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}
.btn-circle.btn-edit {
  background-color: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
  color: #a855f7;
}

/* ========================================================================= */
/* SERVICIO TÃ‰CNICO & TICKET STYLING (Derived from gestion.html) */
/* ========================================================================= */

.maint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.maint-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.maint-actions-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.maint-split-layout {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 60px);
}

.maint-editor-panel {
  flex: 1.2;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.maint-preview-panel {
  flex: 0.8;
  background: white;
  color: black;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  padding: 2rem;
  font-family: Arial, sans-serif;
  position: relative;
  border: 1px solid var(--border-color);
}

/* Tab button states */
.preview-tabs .btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.preview-tabs .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}
.preview-tabs .btn.active-preview-tab {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* Visibility toggles based on active preview tab mode */
.maint-preview-panel:not(.preview-mode-egreso) .egreso-only-field {
  display: none !important;
}
.maint-preview-panel.preview-mode-egreso .non-egreso-field {
  display: none !important;
}

.maint-preview-panel:not(.preview-mode-ficha):not(.preview-mode-egreso) .ficha-egreso-section {
  display: none !important;
}
.maint-preview-panel:not(.preview-mode-ficha):not(.preview-mode-obs):not(.preview-mode-egreso) .obs-section {
  display: none !important;
}
.maint-preview-panel:not(.preview-mode-comps) .comps-section {
  display: none !important;
}

.maint-preview-panel:not(.preview-mode-ficha) .disclaimer-maint {
  display: none !important;
}
.maint-preview-panel:not(.preview-mode-egreso) .disclaimer-egreso {
  display: none !important;
}

.preview-header-table, .preview-info-table, .preview-meta-table, .preview-signatures-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
.preview-header-table td {
  border: 1px solid #ccc;
  padding: 10px;
}
.preview-logo-box {
  background: #f97316;
  color: white;
  padding: 8px 12px;
  display: inline-block;
  font-weight: 900;
  font-size: 20pt;
  border-radius: 4px;
  margin-bottom: 4px;
}
.preview-title {
  font-size: 14pt;
  font-weight: bold;
  color: #f97316;
  margin-bottom: 6px;
}
.preview-meta-table th, .preview-meta-table td {
  border: 1px solid #ccc;
  padding: 4px;
  text-align: center;
  font-size: 8.5pt;
}
.preview-meta-table th {
  background: #f8fafc;
  color: #334155;
}
.preview-divider {
  height: 4px;
  background: #f97316;
  margin: 8px 0;
}
.preview-section-title {
  text-align: center;
  font-size: 11pt;
  font-weight: bold;
  margin: 6px 0;
  color: #0f172a;
}
.preview-info-table th, .preview-info-table td {
  border: 1px solid #ccc;
  padding: 6px;
  font-size: 8.5pt;
}
.preview-info-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: bold;
  text-align: center;
}
.preview-banner {
  background: #f97316;
  color: white;
  padding: 4px;
  font-weight: bold;
  font-size: 9pt;
  text-align: center;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-bottom: none;
}
.preview-description-content, .preview-observations-content {
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 8.5pt;
  min-height: 120px;
  white-space: pre-line;
  color: #1e293b;
  background: #fafafa;
}
.preview-observations-content {
  min-height: 60px;
}
.preview-important-notice {
  border: 1px solid #ccc;
  padding: 8px;
  margin-top: 10px;
  font-size: 7.5pt;
  color: #475569;
  line-height: 1.35;
}
.preview-important-notice h3 {
  text-align: center;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 8pt;
}
.preview-signatures-table th, .preview-signatures-table td {
  border: 1px solid #ccc;
  text-align: center;
  font-size: 8pt;
}
.preview-signatures-table th {
  background: #f8fafc;
  padding: 4px;
  color: #334155;
}
.preview-sig-row td {
  height: 45px;
}

/* Status Badges */
.status-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.status-pendiente { background: rgba(234, 179, 8, 0.15); color: #f59e0b; border: 1px solid rgba(234, 179, 8, 0.3); }
.status-progreso { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-diagnostico { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-presupuesto { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.status-esperando-cliente { background: rgba(251, 146, 60, 0.16); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.35); }
.status-trabajo-curso { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-contacto { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-esperando { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.status-pruebas { background: rgba(20, 184, 166, 0.15); color: #14b8a6; border: 1px solid rgba(20, 184, 166, 0.3); }
.status-terminado { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-entregado { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Payment Badges */
.payment-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.payment-no-pago { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.payment-parcial { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.payment-pagado { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Form inputs on left */
.maint-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.maint-form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.maint-row-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Print Styles */
.print-only {
  display: none;
}

.print-header-table, .print-info-table, .print-meta-table, .print-signatures-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.print-header-table td {
  border: 1px solid #000;
  padding: 8px;
}

.print-logo {
  background: #f97316;
  color: white;
  padding: 8px 15px;
  display: inline-block;
  font-weight: 900;
  font-size: 24pt;
  border-radius: 4px;
  margin-bottom: 5px;
  letter-spacing: -1px;
  font-family: Arial, sans-serif;
}

.print-address {
  font-size: 9pt;
  font-weight: bold;
  color: #000;
}

.print-contact {
  font-size: 8pt;
  color: #000;
}

.print-title {
  font-size: 16pt;
  font-weight: bold;
  color: #f97316;
  margin-bottom: 8px;
}

.print-meta-table th, .print-meta-table td {
  border: 1px solid #000;
  padding: 4px;
  text-align: center;
  font-size: 9pt;
  color: #000;
}

.print-meta-table th {
  background: #f1f5f9;
}

.print-divider {
  height: 6px;
  background: #f97316;
  margin: 8px 0;
}

.print-section-title {
  text-align: center;
  font-size: 12pt;
  font-weight: bold;
  margin: 5px 0;
  color: #000;
}

.print-info-table th, .print-info-table td {
  border: 1px solid #000;
  padding: 6px;
  font-size: 9pt;
  color: #000;
}

.print-info-table th {
  background: #f1f5f9;
  font-weight: bold;
  text-align: center;
}

.info-row {
  margin-bottom: 4px;
}

.conformity-area {
  border-top: 1px solid #000;
  height: auto;
  margin-top: 55px;
  padding-top: 4px;
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 8.5pt;
  color: #000;
}

.print-banner {
  background: #f97316;
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 10pt;
  text-align: center;
  margin-top: 8px;
  border: 1px solid #000;
  border-bottom: none;
}

.print-description-content, .print-observations-content {
  border: 1px solid #000;
  padding: 10px;
  font-size: 9pt;
  min-height: 180px;
  white-space: pre-line;
  line-height: 1.4;
  color: #000;
  background: #fff;
}

.print-observations-content {
  min-height: 80px;
}

.print-important-notice {
  border: 1px solid #000;
  padding: 6px;
  margin-top: 8px;
  font-size: 7.5pt;
  line-height: 1.3;
  color: #000;
}

.print-important-notice h3 {
  text-align: center;
  margin-bottom: 4px;
  font-size: 8.5pt;
}

.notice-sig-consent {
  font-weight: bold;
  margin-top: 4px;
}

.print-signatures-table th, .print-signatures-table td {
  border: 1px solid #000;
  text-align: center;
  font-size: 8pt;
  color: #000;
}

.print-signatures-table th {
  background: #f1f5f9;
  padding: 4px;
}

.sig-row td {
  height: 60px;
}

@media print {
  /* Override CSS variables for printing (force pure black text on pure white background, immutable) */
  :root,
  [data-theme="dark"],
  [data-theme="light"],
  body[class*="theme-"] {
    --bg-color: #ffffff !important;
    --bg-panel: #ffffff !important;
    --bg-glass: #ffffff !important;
    --bg-card: #ffffff !important;
    --border-color: #000000 !important;
    --text-color: #000000 !important;
    --text-muted: #222222 !important;
    --primary-color: #f97316 !important;
    --primary-hover: #ea580c !important;
    --primary-glow: transparent !important;
    --accent-color: #f97316 !important;
  }

  /* Reset layout to exact A4 page */
  @page {
    size: A4 portrait;
    margin: 0.8cm !important;
  }

  html, body {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
    height: auto !important;
    width: auto !important;
    font-size: 8.5pt !important;
    box-shadow: none !important;
    border: none !important;
    font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  }

  /* Desactivar cualquier pseudo-elemento o decoración de temas en html o body */
  html::before,
  html::after,
  body::before,
  body::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }

  /* AISLAMIENTO TOTAL: Cuando el body tiene modo de impresión, ocultar TODO lo demás */
  body[class*="print-mode-"] > *:not(.print-only) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Bloqueo exhaustivo de elementos interactivos, barras de celular, botones flotantes y temas */
  .mobile-cta-bar,
  #mobileBottomBar,
  .quick-answers-float-container,
  .quick-answers-float-btn,
  #quickAnswersModal,
  .whatsapp-widget,
  #whatsappWidget,
  .floating-wa,
  .floating-whatsapp-btn,
  .floating-buttons,
  .theme-programador-top-banner,
  .programador-lang-ribbon,
  .programador-lang-hud,
  .programador-matrix-overlay,
  #theme-top-banner,
  #gamer-top-strip,
  #anime-energy-strip,
  .anime-hud-banner,
  #matrix-canvas,
  #snow-canvas,
  .theme-dangling-strand,
  #arcade-strand,
  #classes-strand,
  #dad-gold-bar,
  #spring-flowers,
  #hot-sale-strand,
  #santa-hat,
  #spooky-web-left,
  #spooky-web-right,
  #spooky-web-tl,
  #spooky-web-tr,
  #spooky-web-bl,
  #spooky-web-br,
  #christmas-lights,
  .navidad-lights,
  .navidad-light-bulb,
  #theme-ice-overlay,
  #theme-infancias-particles,
  .video-bg-container,
  #videoBgContainer,
  #bgVideo,
  .video-fallback-img,
  header,
  #mainHeader,
  nav,
  .navbar,
  .navbar-container,
  footer,
  .app-footer,
  .site-footer,
  .admin-sidebar,
  .admin-content,
  .admin-header,
  #adminView,
  .modal,
  .modal-overlay,
  .toast,
  #toast,
  .pagination,
  .back-to-top,
  .btn,
  button,
  .no-print {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  *:not(html):not(body) {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Estructura limpia y fondo blanco para todas las fichas de mantenimiento */
  .print-only,
  #print-ficha-container,
  #print-observations-container,
  #print-components-container,
  #print-egreso-container,
  .print-info-table td,
  .print-meta-table td,
  .print-header-table td,
  .print-signatures-table td,
  .print-signatures-table-clean td,
  .print-description-content,
  .print-observations-content {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .print-only,
  .print-only * {
    font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  /* Encabezados y logos oficiales con color institucional exacto */
  .print-logo, .print-banner {
    background-color: #f97316 !important;
    background: #f97316 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-title {
    color: #f97316 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-divider {
    background-color: #f97316 !important;
    background: #f97316 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-meta-table th, .print-info-table th, .print-signatures-table th {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Bordes limpios y sólidos en tablas oficiales */
  .print-header-table td,
  .print-info-table td,
  .print-info-table th,
  .print-meta-table td,
  .print-meta-table th,
  .print-signatures-table td,
  .print-signatures-table th,
  .print-description-content,
  .print-observations-content,
  .print-important-notice {
    border-color: #000000 !important;
  }
  
  body.print-mode-ficha #print-ficha-container,
  body.print-mode-observations #print-observations-container,
  body.print-mode-components #print-components-container,
  body.print-mode-egreso #print-egreso-container,
  body.print-mode-comparison #budgetComparisonPrintSheet,
  body.print-mode-official #budgetOfficialPrintSheet {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 98% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: static !important;
  }

  /* Reglas de ajuste para encajar en 1 sola hoja A4 */
  .print-header-table, .print-info-table, .print-meta-table, .print-signatures-table {
    margin-bottom: 5px !important;
  }
  .print-header-table td, .print-info-table td, .print-info-table th, .print-meta-table td, .print-meta-table th {
    padding: 4px 6px !important;
    font-size: 8pt !important;
  }
  .print-logo {
    font-size: 18pt !important;
    padding: 4px 10px !important;
    margin-bottom: 2px !important;
  }
  .print-address {
    font-size: 8pt !important;
  }
  .print-contact {
    font-size: 7.5pt !important;
  }
  .print-title {
    font-size: 13pt !important;
    margin-bottom: 4px !important;
  }
  .print-divider {
    height: 3px !important;
    margin: 4px 0 !important;
  }
  .print-section-title {
    font-size: 10pt !important;
    margin: 3px 0 !important;
  }
  .print-banner {
    font-size: 8.5pt !important;
    padding: 2px 6px !important;
    margin-top: 4px !important;
  }
  .print-description-content, .print-observations-content {
    padding: 6px 10px !important;
    font-size: 8pt !important;
    min-height: 100px !important;
    line-height: 1.25 !important;
  }
  .print-important-notice {
    padding: 4px !important;
    margin-top: 4px !important;
    font-size: 7pt !important;
  }
  .print-signatures-table {
    margin-top: 15px !important;
  }
  .sig-row td {
    height: 45px !important;
  }
  .print-description-content#print-obs-work-observations {
    min-height: 350px !important;
  }
  .print-description-content#print-comp-old-content, 
  .print-description-content#print-comp-new-content {
    min-height: 100px !important;
  }
  .print-description-content#print-egreso-equipment-components {
    min-height: 90px !important;
  }
  .print-description-content#print-egreso-work-done {
    min-height: 100px !important;
  }
}

.hidden {
  display: none !important;
}

/* Premium Advanced Sidebar Filters styling */
.advanced-filters-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: rgba(20, 20, 30, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--border-radius);
  padding: 24px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: sticky;
  top: 100px;
  z-index: 10;
}

.advanced-filters-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.advanced-filters-title i {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
}

.filter-group {
  margin-bottom: 18px;
  position: relative;
}

.filter-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.filter-group select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.25s ease;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' 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 14px center;
  padding-right: 36px;
}

.filter-group select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 15, 0.8);
}

.filter-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 100, 108, 255), 0.15);
  background: rgba(5, 5, 10, 0.9);
}

/* Active filter state indicator */
.filter-group select.active-filter {
  border-color: var(--primary-color) !important;
  background-color: rgba(var(--primary-color-rgb, 100, 108, 255), 0.1) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(var(--primary-color-rgb, 100, 108, 255), 0.15);
}

.filter-group select.active-filter + label,
.filter-group:focus-within label {
  color: #fff;
}

.active-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary-color);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.btn-clear-filters {
  margin-top: 20px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-clear-filters:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-clear-filters:active {
  transform: translateY(0);
}

/* Light mode specific overrides for advanced filters */
:root:not([data-theme="dark"]) .advanced-filters-sidebar {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

:root:not([data-theme="dark"]) .advanced-filters-title {
  color: #111827;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .filter-group label {
  color: #4b5563;
}

:root:not([data-theme="dark"]) .filter-group select {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333333' 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 14px center;
}

:root:not([data-theme="dark"]) .filter-group select:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

:root:not([data-theme="dark"]) .filter-group select:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

/* Active filter state in light mode */
:root:not([data-theme="dark"]) .filter-group select.active-filter {
  border-color: var(--primary-color) !important;
  background-color: rgba(255, 122, 0, 0.06) !important;
  color: var(--primary-hover) !important;
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.08);
}

/* Option tags styling to prevent background clashing when expanded */
.filter-group select option {
  background-color: var(--bg-panel) !important;
  color: var(--text-color) !important;
  padding: 8px;
}

/* Custom Select Container & Elements */
.custom-select {
  position: relative;
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
  user-select: none;
}

.custom-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 15, 0.8);
}

.custom-select.open {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 100, 108, 255), 0.15);
}

.custom-select-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

/* Custom Dropdown list */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-height: 220px;
  overflow-y: auto;
  z-index: 999;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-select-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Custom Option Item */
.custom-option {
  padding: 10px 14px;
  color: var(--text-color);
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.custom-option:hover {
  background: rgba(var(--primary-color-rgb, 100, 108, 255), 0.1);
  color: var(--primary-color);
}

.custom-option.selected {
  background: rgba(var(--primary-color-rgb, 100, 108, 255), 0.15);
  color: var(--primary-color);
  font-weight: 600;
}

/* Light mode specific overrides for custom select */
:root:not([data-theme="dark"]) .custom-select {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
}

:root:not([data-theme="dark"]) .custom-select:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

:root:not([data-theme="dark"]) .custom-select.open {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

:root:not([data-theme="dark"]) .custom-select.active-filter {
  border-color: var(--primary-color) !important;
  background-color: rgba(255, 122, 0, 0.06) !important;
  color: var(--primary-hover) !important;
}

:root:not([data-theme="dark"]) .custom-select-dropdown {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Hide advanced-filters-sidebar by default. Show only when active */
.advanced-filters-sidebar {
  display: none;
}
.advanced-filters-sidebar.has-filters-active {
  display: block;
}

/* Close button for sidebar on mobile (hidden on desktop) */
.close-filters-btn {
  display: none;
}

/* Trigger button on mobile (hidden on desktop) */
.mobile-filters-trigger {
  display: none;
}

@media (max-width: 768px) {
  /* Turn sidebar into a sliding off-canvas drawer on mobile */
  #catalogFiltersSidebar.has-filters-active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 300px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 1200 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    overflow-y: auto;
    border-radius: 0 !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 30px 20px 80px 20px !important; /* extra bottom padding for scrolling space */
    backdrop-filter: none !important; /* disable blur to prevent mobile tap blocks */
    -webkit-backdrop-filter: none !important;
    background: var(--bg-panel) !important;
  }
  
  #catalogFiltersSidebar.has-filters-active.open {
    transform: translateX(0) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6) !important;
  }
  
  /* Light mode borders for mobile drawer */
  :root:not([data-theme="dark"]) #catalogFiltersSidebar.has-filters-active {
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
  }
  
  /* Close button styling inside mobile drawer */
  .close-filters-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
  }
  
  .close-filters-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
  }
  
  :root:not([data-theme="dark"]) .close-filters-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  /* Backdrop overlay */
  .filters-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45); /* safe semi-transparent overlay */
    z-index: 1100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .filters-backdrop.show {
    opacity: 1;
  }
  
  /* Show mobile filter trigger inline */
  .mobile-filters-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
  }
}

/* Catalog Layout Container styling */
.catalog-layout-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  flex-wrap: nowrap; /* Prevent unwanted wrapping on desktop */
}

.catalog-grid-wrapper {
  flex: 1;
  min-width: 300px;
  width: 100%;
}

@media (max-width: 768px) {
  .catalog-layout-container {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .catalog-grid-wrapper {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* --- RESPONSIVE FILTERS SIDEBAR (HD to 2K) --- */
@media (max-width: 576px) {
  .advanced-filters-sidebar {
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1050 !important;
    border-radius: 0 !important;
    padding: 20px 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .close-filters-btn { display: block !important; }
  .mobile-filters-trigger { display: inline-flex !important; }
  .catalog-layout-container { flex-direction: column !important; }
  .catalog-grid-wrapper { min-width: 0 !important; width: 100% !important; }
}

@media (min-width: 577px) and (max-width: 768px) {
  .advanced-filters-sidebar {
    width: 240px !important;
    padding: 18px 14px !important;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .advanced-filters-sidebar {
    width: 240px !important;
    padding: 20px 16px !important;
  }
}

@media (min-width: 1921px) {
  .advanced-filters-sidebar {
    width: 320px !important;
    padding: 28px 24px !important;
  }
  .filter-group label { font-size: 0.9rem !important; }
  .filter-group select { padding: 10px 14px !important; font-size: 0.95rem !important; }
}


/* Floating WhatsApp Widget Styling */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: var(--font-body);
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-options {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 280px;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
}

.whatsapp-options.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-options-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 5px;
}

.whatsapp-options-header strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-color);
}

.whatsapp-options-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.whatsapp-option-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.whatsapp-option-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(-3px);
}

.whatsapp-option-link i {
  font-size: 1.2rem;
}

.whatsapp-option-link div {
  display: flex;
  flex-direction: column;
}

.whatsapp-option-link strong {
  font-size: 0.85rem;
  color: var(--text-color);
}

.whatsapp-option-link span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media print {
  .whatsapp-widget {
    display: none !important;
  }
}

/* Glass Panel Styling for Floating Panels (e.g. Notifications) */
.glass-panel {
  background: rgba(20, 20, 30, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-color) !important;
}

:root:not([data-theme="dark"]) .glass-panel {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15) !important;
}

/* WhatsApp Widget - Light Theme Overrides */
:root:not([data-theme="dark"]) .whatsapp-options {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

:root:not([data-theme="dark"]) .whatsapp-options-header strong {
  color: #1e293b !important;
}

:root:not([data-theme="dark"]) .whatsapp-options-header span {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .whatsapp-option-link {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

:root:not([data-theme="dark"]) .whatsapp-option-link:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

:root:not([data-theme="dark"]) .whatsapp-option-link strong {
  color: #1e293b !important;
}

:root:not([data-theme="dark"]) .whatsapp-option-link span {
  color: #64748b !important;
}

/* Senior Level User Profile Layout Styling */
.profile-grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 25px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .profile-grid-layout {
    grid-template-columns: 280px 1fr;
  }
  .profile-tickets-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .profile-grid-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar-col, .profile-form-col, .profile-tickets-col {
    grid-column: 1;
  }
}

/* Profile Sidebar Col Styling */
.profile-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-badge-card {
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: rgba(20, 20, 30, 0.6) !important;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.profile-avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.profile-avatar-gradient {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1e1e2d;
  color: var(--text-color);
  font-size: 2.2rem;
  font-family: var(--font-title);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.profile-badge-info h3 {
  margin: 0 0 5px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.2px;
}

.badge-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.profile-meta-email {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* Sidebar Tab Buttons Menu */
.profile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px !important;
  border-radius: 16px;
  background: rgba(20, 20, 30, 0.6) !important;
}

.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
}

.profile-menu-item.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Center Form Wrapper & Subtabs */
.profile-content-wrapper {
  padding: 30px !important;
  border-radius: 16px;
  background: rgba(20, 20, 30, 0.6) !important;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-subtab-content {
  display: none;
  animation: fadeInProfileTab 0.35s ease;
}

.profile-subtab-content.active {
  display: block;
}

@keyframes fadeInProfileTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.subtab-title-block {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 15px;
}

.subtab-title-block h3 {
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  color: var(--primary-color);
  font-family: var(--font-title);
  font-weight: 700;
}

.subtab-title-block p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .inputs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Right Tickets Sidebar */
.profile-tickets-card {
  padding: 25px !important;
  border-radius: 16px;
  background: rgba(20, 20, 30, 0.6) !important;
  min-height: 480px;
}

.tickets-title {
  margin: 0 0 5px 0;
  font-size: 1.25rem;
  font-family: var(--font-title);
  color: var(--primary-color);
  font-weight: 700;
}

.tickets-desc {
  margin: 0 0 20px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Dynamic styles for light mode profile view */
:root:not([data-theme="dark"]) .profile-badge-card,
:root:not([data-theme="dark"]) .profile-nav-menu,
:root:not([data-theme="dark"]) .profile-content-wrapper,
:root:not([data-theme="dark"]) .profile-tickets-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

:root:not([data-theme="dark"]) .profile-avatar-gradient {
  background: white;
}

:root:not([data-theme="dark"]) .profile-menu-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

:root:not([data-theme="dark"]) .profile-menu-item.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.03));
}

/* Maintenance Form Tabs Styling */
.maint-form-tab-content {
  display: none;
  animation: fadeInProfileTab 0.35s ease;
}

.maint-form-tab-content.active {
  display: block;
}

.maint-form-tab-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent !important;
}

.maint-form-tab-btn.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.1)) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1);
}

:root:not([data-theme="dark"]) .maint-form-tabs {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

:root:not([data-theme="dark"]) .maint-form-tab-btn.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.05)) !important;
  border-color: rgba(249, 115, 22, 0.2) !important;
}

/* Homepage Senior Level Frontend Styling upgrades */
.carousel-container {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-container:hover {
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.2);
}

/* Feature grid layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 20px;
  margin-bottom: 40px;
}

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.feature-card {
  position: relative;
  padding: 30px 25px;
  border-radius: 16px;
  background: rgba(20, 20, 30, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.3) !important;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.1) !important;
}

.feature-icon-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  transform: rotate(5deg) scale(1.05);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.2px;
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Banner Highlight styles overrides */
.banner-highlight {
  position: relative;
  background: rgba(20, 20, 30, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.banner-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.banner-highlight:hover::before {
  left: 125%;
}

.banner-highlight:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.35) !important;
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.12) !important;
}

/* Light Mode Overrides for Home Grid and Banners */
:root:not([data-theme="dark"]) .feature-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .feature-card:hover {
  border-color: rgba(249, 115, 22, 0.25) !important;
}

:root:not([data-theme="dark"]) .banner-highlight {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .banner-highlight:hover {
  border-color: rgba(249, 115, 22, 0.25) !important;
}

/* ========================================================================= */
/* ========================================================================= */
/* THEMES SYSTEM */
/* ========================================================================= */

/* --- DEFAULT THEME (ORANGE) ENHANCED HOVER --- */
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  z-index: 5;
}
.product-card:hover::after {
  transform: scaleX(1);
}

/* ======================================================= */
/* Vuelta a Clases / Setup Facu â€” Cuaderno / Notebook feel */
/* ======================================================= */
:root[data-theme="dark"] body.theme-vuelta_clases {
  --border-color: rgba(56, 189, 248, 0.2);
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(14, 165, 233, 0.3);
}
:root:not([data-theme="dark"]) body.theme-vuelta_clases {
  --border-color: rgba(14, 165, 233, 0.15);
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(14, 165, 233, 0.1);
}
body.theme-vuelta_clases .product-card {
  border-radius: 4px;
  border: 1px solid var(--border-color);
  border-left: 4px solid #0284c7;
}
body.theme-vuelta_clases .product-card::after { display: none; }
body.theme-vuelta_clases .product-card:hover {
  border-color: #0284c7;
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.18), 4px 4px 0px #0284c7;
}
body.theme-vuelta_clases .product-card:hover .product-img-wrapper img {
  transform: scale(1.04) rotate(0.5deg);
}
body.theme-vuelta_clases .btn-primary:hover {
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
}

/* ======================================================= */
/* Hot Sale Gamer â€” FIRE & HEAT tremor                      */
/* ======================================================= */
:root[data-theme="dark"] body.theme-hot_sale {
  --border-color: rgba(239, 68, 68, 0.35);
  --primary-color: #ef4444;
  --primary-hover: #dc2626;
  --primary-glow: rgba(239, 68, 68, 0.4);
}
:root:not([data-theme="dark"]) body.theme-hot_sale {
  --border-color: rgba(239, 68, 68, 0.2);
  --primary-color: #ef4444;
  --primary-hover: #dc2626;
  --primary-glow: rgba(239, 68, 68, 0.15);
}
body.theme-hot_sale .product-card::after {
  background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
  background-size: 200% 100%;
}
body.theme-hot_sale .product-card:hover::after {
  transform: scaleX(1);
  animation: fireSlide 1.5s linear infinite;
}
body.theme-hot_sale .product-card:hover {
  border-color: #ef4444;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3), 0 0 15px rgba(249, 115, 22, 0.2);
}
@keyframes fireSlide {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
body.theme-hot_sale .btn-primary {
  animation: pulseWarm 2.2s infinite;
}
@keyframes pulseWarm {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ======================================================= */
/* Dia del Padre â€” FÃºtbol clÃ¡sico: dual color stripe       */
/* ======================================================= */
:root[data-theme="dark"] body.theme-dia_padre {
  --border-color: #003b8e;
  --primary-color: #f2a900;
  --primary-hover: #d19200;
  --primary-glow: rgba(242, 169, 0, 0.4);
}
:root:not([data-theme="dark"]) body.theme-dia_padre {
  --border-color: #e30613;
  --primary-color: #e30613;
  --primary-hover: #b9050f;
  --primary-glow: rgba(227, 6, 19, 0.25);
}
body.theme-dia_padre .product-card {
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
body.theme-dia_padre .product-card::after {
  background: linear-gradient(90deg, #003b8e, #f2a900, #003b8e);
  background-size: 200% 100%;
  height: 4px;
}
body.theme-dia_padre .product-card:hover::after {
  transform: scaleX(1);
  animation: dualStripe 3s linear infinite;
}
body.theme-dia_padre .product-card:hover {
  border-color: var(--primary-color) !important;
  transform: translateY(-6px);
  box-shadow: 0 10px 25px var(--primary-glow), -3px 0 0 #003b8e, 3px 0 0 #f2a900 !important;
}
@keyframes dualStripe {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ======================================================= */
/* Invierno Gamer â€” Frost / ICE shimmer                    */
/* ======================================================= */
:root[data-theme="dark"] body.theme-invierno {
  --border-color: rgba(56, 189, 248, 0.25);
  --primary-color: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-glow: rgba(56, 189, 248, 0.3);
}
:root:not([data-theme="dark"]) body.theme-invierno {
  --border-color: rgba(56, 189, 248, 0.15);
  --primary-color: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-glow: rgba(56, 189, 248, 0.1);
}
body.theme-invierno .product-card::after {
  background: linear-gradient(90deg, #7dd3fc, #bae6fd, #38bdf8, #bae6fd, #7dd3fc);
  background-size: 300% 100%;
  height: 2px;
}
body.theme-invierno .product-card:hover::after {
  transform: scaleX(1);
  animation: frostShimmer 3s linear infinite;
}
body.theme-invierno .product-card:hover {
  border-color: #38bdf8;
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.2), inset 0 0 30px rgba(186, 230, 253, 0.04);
  animation: shiverIce 0.35s ease-in-out;
}
@keyframes shiverIce {
  0%, 100% { transform: translateY(-4px) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-0.5deg); }
  75% { transform: translateY(-4px) rotate(0.5deg); }
}
@keyframes frostShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* ======================================================= */
/* Dia de las Infancias Gamer â€” Juguete / Toy bounce       */
/* ======================================================= */
:root[data-theme="dark"] body.theme-infancias {
  --border-color: rgba(168, 85, 247, 0.25);
  --primary-color: #f97316;
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.35);
}
:root:not([data-theme="dark"]) body.theme-infancias {
  --border-color: rgba(168, 85, 247, 0.15);
  --primary-color: #f97316;
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.15);
}
body.theme-infancias .product-card {
  border-radius: 18px;
  border: 2.5px dashed rgba(168, 85, 247, 0.4);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.theme-infancias .product-card::after { display: none; }
body.theme-infancias .product-card:hover {
  border-style: solid;
  border-color: #a855f7;
  border-radius: 22px;
  transform: translateY(-10px) scale(1.03) rotate(1.5deg);
  box-shadow: 
    0 14px 35px rgba(168, 85, 247, 0.25),
    0 0 0 3px rgba(249, 115, 22, 0.3),
    0 0 20px rgba(249, 115, 22, 0.15);
  animation: toyBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.theme-infancias .product-card:hover .product-img-wrapper img {
  transform: scale(1.1) rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes toyBounce {
  0% { transform: translateY(0) scale(1) rotate(0); }
  40% { transform: translateY(-14px) scale(1.05) rotate(2deg); }
  70% { transform: translateY(-8px) scale(1.02) rotate(1deg); }
  100% { transform: translateY(-10px) scale(1.03) rotate(1.5deg); }
}
body.theme-infancias .badge-oferta {
  background: linear-gradient(135deg, #a855f7, #f97316) !important;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: bounceMini 2s infinite ease-in-out;
}
@keyframes bounceMini {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes floatPixelUp {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
  10% { opacity: 0.65; }
  90% { opacity: 0.65; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1.2); opacity: 0; }
}
.infancia-particle {
  position: fixed;
  bottom: -25px;
  pointer-events: none;
  z-index: 9996;
  font-size: 1.6rem;
  will-change: transform, opacity;
  animation: floatPixelUp 12s linear infinite;
}

/* ======================================================= */
/* Primavera Gamer â€” BLOOM / Petal softness                */
/* ======================================================= */
:root[data-theme="dark"] body.theme-primavera {
  --border-color: rgba(236, 72, 153, 0.25);
  --primary-color: #ec4899;
  --primary-hover: #db2777;
  --primary-glow: rgba(236, 72, 153, 0.4);
}
:root:not([data-theme="dark"]) body.theme-primavera {
  --border-color: rgba(236, 72, 153, 0.15);
  --primary-color: #ec4899;
  --primary-hover: #db2777;
  --primary-glow: rgba(236, 72, 153, 0.1);
}
body.theme-primavera .product-card {
  border-radius: 20px;
}
body.theme-primavera .product-card::after {
  background: linear-gradient(90deg, #f9a8d4, #ec4899, #a855f7, #ec4899, #f9a8d4);
  background-size: 300% 100%;
  height: 2px;
  border-radius: 0 0 20px 20px;
}
body.theme-primavera .product-card:hover::after {
  transform: scaleX(1);
  animation: petalSlide 4s linear infinite;
}
body.theme-primavera .product-card:hover {
  border-color: #ec4899;
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2), 0 0 40px rgba(251, 207, 232, 0.08);
  animation: bloomWobble 0.6s ease-in-out;
}
body.theme-primavera .product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.03);
}
@keyframes bloomWobble {
  0%, 100% { transform: translateY(-6px) rotate(0); }
  15% { transform: translateY(-6px) rotate(-1.2deg) scale(1.01); }
  30% { transform: translateY(-6px) rotate(1.2deg) scale(1.01); }
  45% { transform: translateY(-6px) rotate(-0.6deg); }
  60% { transform: translateY(-6px) rotate(0.6deg); }
}
@keyframes petalSlide {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* ======================================================= */
/* Halloween / Spooky Setup â€” Eerie float & glitch         */
/* ======================================================= */
:root[data-theme="dark"] body.theme-halloween {
  --border-color: rgba(249, 115, 22, 0.25);
  --primary-color: #f97316;
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.4);
}
:root:not([data-theme="dark"]) body.theme-halloween {
  --border-color: rgba(249, 115, 22, 0.15);
  --primary-color: #f97316;
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.15);
}
body.theme-halloween .product-card::after {
  background: linear-gradient(90deg, #f97316, #a855f7, #f97316);
  background-size: 200% 100%;
}
body.theme-halloween .product-card:hover::after {
  transform: scaleX(1);
  animation: spookyGradient 2s linear infinite;
}
body.theme-halloween .product-card:hover {
  border-color: #f97316;
  transform: translateY(-7px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25), 0 0 15px rgba(168, 85, 247, 0.15);
  animation: spookyFloat 3s ease-in-out infinite alternate;
}
@keyframes spookyFloat {
  0% { transform: translateY(-5px); }
  100% { transform: translateY(-11px); }
}
@keyframes spookyGradient {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@keyframes floatBats {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ======================================================= */
/* Cyber Monday / Black Friday â€” CRT / Cyberpunk neon      */
/* ======================================================= */
:root[data-theme="dark"] body.theme-cyber {
  --border-color: #10b981;
  --primary-color: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.4);
}
:root:not([data-theme="dark"]) body.theme-cyber {
  --border-color: #059669;
  --primary-color: #059669;
  --primary-hover: #047857;
  --primary-glow: rgba(5, 150, 105, 0.2);
}
body.theme-cyber::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.8;
}
:root[data-theme="dark"] body.theme-cyber .product-card {
  border: 1px solid #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
  background: rgba(11, 19, 41, 0.9) !important;
}
:root:not([data-theme="dark"]) body.theme-cyber .product-card {
  border: 1px solid #059669 !important;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.1) !important;
  background: #ffffff !important;
}
body.theme-cyber .product-card::after {
  background: #00ffcc;
  height: 2px;
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}
body.theme-cyber .product-card:hover {
  border-color: #00ffcc !important;
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.4), 0 0 8px rgba(16, 185, 129, 0.3) !important;
  animation: cyberGlitch 0.3s ease-in-out;
}
@keyframes cyberGlitch {
  0% { transform: translateY(-4px) skewX(0deg); }
  20% { transform: translateY(-4px) skewX(-1deg); }
  40% { transform: translateY(-4px) skewX(1.5deg); }
  60% { transform: translateY(-4px) skewX(-0.5deg); }
  80% { transform: translateY(-4px) skewX(0.5deg); }
  100% { transform: translateY(-4px) skewX(0deg); }
}
body.theme-cyber .btn-primary:hover {
  animation: cyberGlow 0.8s ease-in-out infinite alternate;
}
@keyframes cyberGlow {
  0% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.4), 0 0 8px rgba(16, 185, 129, 0.2); }
  100% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.7), 0 0 20px rgba(16, 185, 129, 0.4); }
}

/* ======================================================= */
/* Navidad Gamer / Fin de AÃ±o â€” Gift ribbon slide          */
/* ======================================================= */
:root[data-theme="dark"] body.theme-navidad {
  --border-color: rgba(239, 68, 68, 0.25);
  --primary-color: #dc2626;
  --primary-hover: #b91c1c;
  --primary-glow: rgba(220, 38, 38, 0.4);
}
:root:not([data-theme="dark"]) body.theme-navidad {
  --border-color: rgba(239, 68, 68, 0.15);
  --primary-color: #dc2626;
  --primary-hover: #b91c1c;
  --primary-glow: rgba(220, 38, 38, 0.1);
}
body.theme-navidad .product-card::after {
  background: linear-gradient(90deg, #dc2626, #22c55e, #dc2626);
  background-size: 200% 100%;
}
body.theme-navidad .product-card:hover::after {
  transform: scaleX(1);
  animation: xmasSlide 2.5s linear infinite;
}
body.theme-navidad .product-card:hover {
  border-color: #22c55e;
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2), 0 0 12px rgba(220, 38, 38, 0.1);
}
body.theme-navidad .product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.1);
}
@keyframes xmasSlide {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
body.theme-navidad .btn-primary {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
}
body.theme-navidad .btn-primary:hover {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
}

/* --- HOT SALE DETALLE MODAL FIRE EFFECTS --- */
body.theme-hot_sale #productDetailModal .detail-img-col {
  border-color: #ef4444 !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35), inset 0 0 15px rgba(249, 115, 22, 0.2) !important;
  position: relative;
  overflow: hidden;
}
body.theme-hot_sale #productDetailModal .detail-img-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(239, 68, 68, 0.12) 0%, transparent 45%);
  z-index: 1;
}
body.theme-hot_sale #productDetailModal #detailCashPrice {
  color: #ef4444 !important;
  animation: heatText 1.4s ease-in-out infinite alternate;
}
@keyframes heatText {
  0% { text-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
  100% { text-shadow: 0 0 14px rgba(239, 68, 68, 0.8), 0 0 4px rgba(249, 115, 22, 0.6); }
}

/* ======================================================= */
/* Día del Gamer — NEÓN CYBERPUNK & RGB ARCADE             */
/* ======================================================= */
:root[data-theme="dark"] body.theme-dia_gamer {
  --border-color: rgba(139, 92, 246, 0.4);
  --primary-color: #a855f7;
  --primary-hover: #9333ea;
  --primary-glow: rgba(168, 85, 247, 0.45);
  --accent-color: #06b6d4;
}
:root:not([data-theme="dark"]) body.theme-dia_gamer {
  --border-color: rgba(139, 92, 246, 0.25);
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.2);
  --accent-color: #0891b2;
}

body.theme-dia_gamer .product-card {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.theme-dia_gamer .product-card::after {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #ec4899, #8b5cf6);
  background-size: 300% 100%;
  height: 3px;
}

body.theme-dia_gamer .product-card:hover::after {
  transform: scaleX(1);
  animation: gamerRgbWave 2s linear infinite;
}

body.theme-dia_gamer .product-card:hover {
  border-color: #a855f7 !important;
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35), 0 0 20px rgba(6, 182, 212, 0.25);
}

@keyframes gamerRgbWave {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

body.theme-dia_gamer .btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

body.theme-dia_gamer .btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
  border-color: #7c3aed !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* RGB LED Top Strip for Gamer Day */
#gamer-led-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff0055, #7a00ff, #00e5ff, #00ff66, #ffea00, #ff0055);
  background-size: 600% 100%;
  z-index: 10001;
  pointer-events: none;
  animation: ledRgbFlow 4s linear infinite;
  box-shadow: 0 0 10px rgba(122, 0, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.6);
}

@keyframes ledRgbFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 600% 0; }
}


@keyframes floatFireFlakes {
  0% {
    transform: translateY(105%) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  25% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% {
    transform: translateY(-5%) rotate(180deg) scale(1.15);
    opacity: 0;
  }
}

.hot-sale-flake {
  position: absolute;
  bottom: -20px;
  pointer-events: none;
  z-index: 2;
  font-size: 1.15rem;
  will-change: transform, opacity;
  animation: floatFireFlakes 3.2s linear infinite;
}

/* --- NAVIDAD BLINKING LIGHTS STRAND --- */
.navidad-lights {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
  height: 10px;
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
}

.navidad-light-bulb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation-duration: 0.9s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.navidad-light-bulb:nth-child(2n+1) {
  background: #ef4444;
  animation-name: flashRed;
}
.navidad-light-bulb:nth-child(2n+2) {
  background: #22c55e;
  animation-name: flashGreen;
}
.navidad-light-bulb:nth-child(3n+3) {
  background: #3b82f6;
  animation-name: flashBlue;
}
.navidad-light-bulb:nth-child(4n+4) {
  background: #eab308;
  animation-name: flashYellow;
}

@keyframes flashRed {
  0%, 100% { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
  50% { background: #7f1d1d; box-shadow: 0 0 0px transparent; }
}
@keyframes flashGreen {
  0%, 100% { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
  50% { background: #14532d; box-shadow: 0 0 0px transparent; }
}
@keyframes flashBlue {
  0%, 100% { background: #3b82f6; box-shadow: 0 0 10px #3b82f6; }
  50% { background: #1e3a8a; box-shadow: 0 0 0px transparent; }
}
@keyframes flashYellow {
  0%, 100% { background: #eab308; box-shadow: 0 0 10px #eab308; }
  50% { background: #713f12; box-shadow: 0 0 0px transparent; }
}

/* --- DANGLING STRANDS SYSTEM --- */
.theme-dangling-strand span {
  display: inline-block;
  transform-origin: top center;
}

/* Swing animation for school items */
.dangling-swing {
  animation: swingDangle 3.2s ease-in-out infinite alternate;
}

@keyframes swingDangle {
  0% { transform: rotate(-12deg); }
  100% { transform: rotate(12deg); }
}

/* Glowing animation for flowers */
@keyframes flowerGlow {
  0% { filter: drop-shadow(0 0 2px rgba(236, 72, 153, 0.4)); transform: scale(0.9); }
  100% { filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.85)); transform: scale(1.1); }
}

/* Glowing flashing for arcade pixels */
@keyframes pixelFlash {
  0% { filter: drop-shadow(0 0 1px rgba(168, 85, 247, 0.3)); opacity: 0.6; }
  100% { filter: drop-shadow(0 0 7px rgba(249, 115, 22, 0.85)); opacity: 1; }
}

/* Glowing flashing for fire elements */
@keyframes fireGlow {
  0% { filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.4)); transform: scale(0.9); }
  100% { filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.9)); transform: scale(1.15); }
}

/* ========================================================================= */
/* TEMA MARVEL INFINITY SAGA — Iron Man / Gemas del Infinito / Avengers      */
/* ponytail: Tema ultra-premium con clip-path biselado estilo armadura Stark,   */
/* gradientes de las 6 Gemas del Infinito, efecto Arc Reactor y HUD JARVIS      */
/* ========================================================================= */

/* --- Variables del tema Marvel (modo oscuro) --- */
:root[data-theme="dark"] body.theme-marvel {
  --primary-color: #E23636;
  --primary-hover: #C51F1F;
  --primary-glow: rgba(226, 54, 54, 0.35);
  --accent-color: #F0A500;
  --bg-color: #0b0d13;
  --bg-panel: #141821;
  --bg-glass: rgba(20, 24, 33, 0.85);
  --border-color: rgba(212, 175, 55, 0.25);
  --box-shadow-premium: 0 10px 40px -15px rgba(226, 54, 54, 0.25);
}

/* --- Variables del tema Marvel (modo claro) --- */
:root:not([data-theme="dark"]) body.theme-marvel {
  --primary-color: #C51F1F;
  --primary-hover: #A01515;
  --primary-glow: rgba(197, 31, 31, 0.2);
  --accent-color: #D4AF37;
  --bg-color: #f0ece4;
  --bg-panel: #fdfcf9;
  --bg-glass: rgba(253, 252, 249, 0.85);
  --border-color: rgba(197, 31, 31, 0.2);
  --box-shadow-premium: 0 10px 30px -10px rgba(197, 31, 31, 0.2);
}

/* ========================================================================= */
/* PRODUCT CARDS IRON MAN ARMOR                                              */
/* ========================================================================= */

/* ponytail: Placa metálica de armadura Iron Man con clip-path biselado */
body.theme-marvel .product-card {
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(145deg, rgba(20, 24, 33, 0.95) 0%, rgba(11, 13, 19, 0.98) 100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

:root:not([data-theme="dark"]) body.theme-marvel .product-card {
  background: linear-gradient(145deg, #fdfbf7 0%, #f4eee2 100%);
}

/* ponytail: Reflejo especular animado en hover que barre la placa metálica diagonalmente */
body.theme-marvel .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(0, 240, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(240, 165, 0, 0.25) 55%,
    transparent 70%
  );
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 3;
}

body.theme-marvel .product-card:hover::before {
  left: 160%;
}

/* ponytail: Barra inferior animada con gradiente de las 6 Gemas del Infinito */
body.theme-marvel .product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #9B00E8,  /* Poder — Violeta */
    #0066FF,  /* Espacio — Azul */
    #D90429,  /* Realidad — Rojo */
    #FF6F00,  /* Alma — Naranja */
    #00E676,  /* Tiempo — Verde */
    #FFD600,  /* Mente — Amarillo */
    #9B00E8   /* Cierre del loop */
  );
  background-size: 300% 100%;
  animation: infinityGemWave 6s linear infinite;
  opacity: 0.75;
  transition: opacity 0.3s ease, height 0.3s ease;
  z-index: 2;
}

/* ponytail: Hover de tarjeta — resplandor de energía Stark + elevación */
body.theme-marvel .product-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 0 25px rgba(226, 54, 54, 0.3),
    0 0 10px rgba(212, 175, 55, 0.4),
    0 15px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 15px rgba(0, 240, 255, 0.08);
  border-color: rgba(240, 165, 0, 0.6);
}

body.theme-marvel .product-card:hover::after {
  height: 4px;
  opacity: 1;
}

/* ponytail: Hover de imagen con brillo metálico y contraste Stark */
body.theme-marvel .product-card:hover .product-img-wrapper img {
  filter: brightness(1.08) contrast(1.05);
  transition: filter 0.4s ease;
}

/* ponytail: Badge de Oferta / Descuento convertido en mini Arc Reactor con núcleo cian y aro dorado */
body.theme-marvel .badge-oferta,
body.theme-marvel .badge-event-discount,
body.theme-marvel .role-discount-badge {
  background: radial-gradient(circle at 35% 50%, rgba(0, 240, 255, 0.35) 0%, #141821 70%, #0b0d13 100%) !important;
  border: 1.5px solid #D4AF37 !important;
  color: #e6ffff !important;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 12px;
  padding: 3px 9px;
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.6),
    inset 0 0 8px rgba(0, 240, 255, 0.4),
    0 0 3px #D4AF37;
  animation: arcReactorPulse 2.5s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.theme-marvel .badge-oferta i,
body.theme-marvel .badge-event-discount i,
body.theme-marvel .role-discount-badge i {
  color: #00f0ff;
  text-shadow: 0 0 6px #00f0ff;
}

/* ponytail: Precios de producto con tipografía Orbitron y sutil text-shadow neón */
body.theme-marvel .product-price {
  font-family: 'Orbitron', monospace, sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #00f0ff;
  text-shadow:
    0 0 8px rgba(0, 240, 255, 0.6),
    0 0 16px rgba(0, 240, 255, 0.25);
}

body.theme-marvel .product-usd-price {
  font-family: 'Orbitron', monospace, sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  color: #F0A500;
  text-shadow: 0 0 6px rgba(240, 165, 0, 0.45);
}

/* ponytail: Botón "Agregar al carrito" con bordes biselados angulares tipo Stark HUD, degradado Hot Rod Crimson y borde dorado */
body.theme-marvel .btn-primary,
body.theme-marvel .product-actions .btn-primary {
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
  background: linear-gradient(135deg, #B91C1C 0%, #E23636 50%, #881337 100%);
  border: 1px solid #D4AF37;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow:
    0 0 12px rgba(226, 54, 54, 0.4),
    inset 0 0 8px rgba(212, 175, 55, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

body.theme-marvel .btn-primary:hover,
body.theme-marvel .product-actions .btn-primary:hover {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #991B1B 100%);
  border-color: #F0A500;
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.4),
    0 0 30px rgba(226, 54, 54, 0.5),
    inset 0 0 12px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

body.theme-marvel .btn-primary:active,
body.theme-marvel .product-actions .btn-primary:active {
  animation: snapGlow 0.5s ease-out;
  transform: translateY(0);
}

/* ponytail: Badge de stock ("Disponible") con icono tech estilo HUD de armadura */
body.theme-marvel .product-stock {
  font-family: 'Orbitron', 'Inter', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.4px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 3px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
}

body.theme-marvel .product-stock .stock-indicator.in-stock {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #00f0ff;
  box-shadow:
    0 0 8px #00f0ff,
    0 0 14px rgba(0, 240, 255, 0.7);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
  animation: arcReactorPulse 2s ease-in-out infinite;
}

body.theme-marvel .product-stock .stock-indicator.out-of-stock {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}

/* ========================================================================= */
/* MODAL DE DETALLE DE PRODUCTO (#productDetailModal) — MARVEL / STARK HUD   */
/* ========================================================================= */

/* ponytail: Marco holográfico con esquinas cyan HUD (┌ ┐ └ ┘) mediante pseudo-elementos */
body.theme-marvel #productDetailModal .modal-content,
body.theme-marvel .detail-modal {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 24, 33, 0.97) 0%, rgba(11, 13, 19, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow:
    0 0 40px rgba(0, 240, 255, 0.2),
    0 25px 70px rgba(0, 0, 0, 0.85),
    inset 0 0 25px rgba(0, 240, 255, 0.05);
}

/* ponytail: Esquinas HUD cyan ┌ ┐ └ ┘ con drop-shadow neón */
body.theme-marvel #productDetailModal .detail-modal::before,
body.theme-marvel .detail-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 12;
  background:
    /* Esquina Sup Izq ┌ */
    linear-gradient(to right, #00f0ff 20px, transparent 20px) top left / 20px 2px no-repeat,
    linear-gradient(to bottom, #00f0ff 20px, transparent 20px) top left / 2px 20px no-repeat,
    /* Esquina Sup Der ┐ */
    linear-gradient(to left, #00f0ff 20px, transparent 20px) top right / 20px 2px no-repeat,
    linear-gradient(to bottom, #00f0ff 20px, transparent 20px) top right / 2px 20px no-repeat,
    /* Esquina Inf Izq └ */
    linear-gradient(to right, #00f0ff 20px, transparent 20px) bottom left / 20px 2px no-repeat,
    linear-gradient(to top, #00f0ff 20px, transparent 20px) bottom left / 2px 20px no-repeat,
    /* Esquina Inf Der ┘ */
    linear-gradient(to left, #00f0ff 20px, transparent 20px) bottom right / 20px 2px no-repeat,
    linear-gradient(to top, #00f0ff 20px, transparent 20px) bottom right / 2px 20px no-repeat;
  filter: drop-shadow(0 0 6px #00f0ff);
}

/* ponytail: Header del modal con badge STARK HARDWARE SCHEMATICS // LEVEL 7 CLEARANCE */
body.theme-marvel #productDetailModal .detail-header {
  background: rgba(14, 18, 25, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-marvel #productDetailModal .detail-header::before {
  content: "STARK HARDWARE SCHEMATICS // LEVEL 7 CLEARANCE";
  display: inline-flex;
  align-items: center;
  font-family: 'Orbitron', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #00f0ff;
  text-shadow:
    0 0 8px rgba(0, 240, 255, 0.8),
    0 0 15px rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-left: 3px solid #D4AF37;
  padding: 4px 10px;
  border-radius: 2px;
  animation: hudFlicker 1.2s ease-out;
}

/* ponytail: Precios del modal con tipografía Orbitron y neón Stark */
body.theme-marvel #productDetailModal .detail-price-card {
  background: rgba(14, 18, 25, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.04);
}

body.theme-marvel #productDetailModal .detail-cash-price {
  font-family: 'Orbitron', monospace, sans-serif;
  color: #00f0ff;
  text-shadow:
    0 0 12px rgba(0, 240, 255, 0.7),
    0 0 25px rgba(0, 240, 255, 0.35);
  font-weight: 800;
}

body.theme-marvel #productDetailModal .detail-list-price {
  font-family: 'Orbitron', monospace, sans-serif;
  color: #F0A500;
  text-shadow: 0 0 10px rgba(240, 165, 0, 0.5);
  font-weight: 700;
}

/* ponytail: Botón de agregar al carrito del modal con animación de carga de energía Arc Reactor */
body.theme-marvel #detailAddToCartBtn,
body.theme-marvel .detail-add-cart-btn {
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(135deg, #B91C1C 0%, #E23636 45%, #991B1B 80%, #D4AF37 100%);
  border: 1.5px solid #D4AF37;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: arcEnergyCharge 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

body.theme-marvel #detailAddToCartBtn:hover,
body.theme-marvel .detail-add-cart-btn:hover {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 45%, #B91C1C 80%, #F0A500 100%);
  border-color: #00f0ff;
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.8),
    0 0 50px rgba(226, 54, 54, 0.7),
    inset 0 0 20px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

/* ponytail: Tabla de especificaciones con bordes de circuito Stark y acentos dorados */
body.theme-marvel .detail-spec-section {
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, transparent 100%);
  position: relative;
}

body.theme-marvel .detail-spec-title {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  color: #F0A500;
  text-shadow: 0 0 8px rgba(240, 165, 0, 0.4);
}

body.theme-marvel .detail-spec-title::before {
  background: linear-gradient(180deg, #00f0ff, #D4AF37);
  box-shadow: 0 0 8px #00f0ff;
}

body.theme-marvel .detail-spec-body {
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-left: 3px solid #D4AF37;
  background: rgba(14, 18, 25, 0.6);
  border-radius: 4px;
  padding: 16px;
  color: #d1d5db;
}

body.theme-marvel .detail-spec-body table {
  width: 100%;
  border-collapse: collapse;
}

body.theme-marvel .detail-spec-body th {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #00f0ff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

/* --- 7. TIRA DE ENERGÍA Y BANNER HUD (JS) --- */
#marvel-infinity-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    #9B00E8, #0066FF, #D90429, #FF6F00, #00E676, #FFD600, #9B00E8
  );
  background-size: 300% 100%;
  animation: infinityGemWave 3s linear infinite;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(155, 0, 232, 0.5), 0 0 25px rgba(0, 102, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.5);
}

#marvel-hud-banner {
  font-family: 'Orbitron', 'Share Tech Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- 8. WIDGET HUD DE LAS 6 GEMAS DEL INFINITO (JS) --- */
.marvel-gauntlet-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 30px;
  margin: 10px auto 15px auto;
  max-width: 480px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.1);
  animation: hudFlicker 1.2s ease-out;
}

.marvel-gem-stone {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, filter 0.25s ease;
  box-shadow: 0 0 8px currentColor;
}

.marvel-gem-stone:hover {
  transform: scale(1.35);
  filter: brightness(1.3) drop-shadow(0 0 12px currentColor);
}

.marvel-gem-stone.active {
  transform: scale(1.25);
  box-shadow: 0 0 16px currentColor, 0 0 30px currentColor;
  animation: gemGlowPulse 1.5s ease-in-out infinite alternate;
}

@keyframes gemGlowPulse {
  0% { transform: scale(1.2); filter: brightness(1); }
  100% { transform: scale(1.32); filter: brightness(1.4) drop-shadow(0 0 15px currentColor); }
}

/* ========== ANIMACIONES MARVEL ========== */

@keyframes infinityGemWave {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes arcReactorPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3), 0 0 3px rgba(226, 54, 54, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.7), 0 0 10px rgba(240, 165, 0, 0.8);
    transform: scale(1.06);
  }
}

@keyframes hudFlicker {
  0% { opacity: 0; }
  10% { opacity: 0.85; }
  15% { opacity: 0.3; }
  20% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes snapGlow {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8); transform: scale(0.98); }
  50% { box-shadow: 0 0 35px 12px rgba(212, 175, 55, 0.5), 0 0 50px 20px rgba(0, 240, 255, 0.3); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); transform: scale(1); }
}

/* ponytail: Rotación del Arc Reactor SVG en el banner HUD */
@keyframes arcReactorSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ponytail: Barra de progreso del boot-up de JARVIS */
@keyframes bootProgressBar {
  0% { width: 0%; opacity: 0.5; }
  20% { width: 15%; opacity: 1; }
  60% { width: 70%; }
  85% { width: 92%; }
  100% { width: 100%; opacity: 0; }
}

/* ========================================================================= */
/* SISTEMA MULTIVERSO MARVEL: HERO SPLASH & EFECTOS ESPECÍFICOS             */
/* ========================================================================= */

/* ponytail: Overlay de transición entre héroes de categorías */
#marvel-hero-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(11, 13, 19, 0.94) 0%, rgba(0, 0, 0, 0.98) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.marvel-splash-badge {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid currentColor;
  box-shadow: 0 0 15px currentColor;
  animation: hudFlicker 0.8s ease-out;
}

.marvel-splash-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  text-shadow: 0 0 25px currentColor;
  animation: splashZoom 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.marvel-splash-sub {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  letter-spacing: 2px;
  opacity: 0.85;
  color: #F3F4F6;
  margin-bottom: 20px;
}

.marvel-splash-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 20px currentColor);
  animation: splashPulse 1.2s ease-in-out infinite alternate;
}

@keyframes splashZoom {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes splashPulse {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.08); }
}

/* ponytail: Relámpagos de Thor para la categoría Fuentes */
@keyframes thunderFlash {
  0%, 100% { opacity: 0; }
  10%, 14% { opacity: 0.9; filter: brightness(2); }
  12%, 16% { opacity: 0.2; }
  25% { opacity: 0.7; }
  28% { opacity: 0; }
}

/* ponytail: Ondas de choque de Vibranium para Black Panther (RAM) */
@keyframes vibraniumShockwave {
  0% { transform: scale(0.8); opacity: 0.9; border-color: #8B5CF6; }
  50% { border-color: #DF00FE; box-shadow: 0 0 40px #8B5CF6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ponytail: Ondas psíquicas de Cerebro para Profesor X (Sillas) */
@keyframes cerebroRingExpand {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ponytail: Burbujas ascendentes de Talokan / Namor (Coolers) */
@keyframes namorFloat {
  0% { transform: translateY(100vh) scale(0.8); opacity: 0; }
  20% { opacity: 0.7; }
  80% { opacity: 0.7; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* ponytail: Miras balísticas de War Machine (Placas de Video) */
@keyframes warMachineTarget {
  0% { transform: rotate(0deg) scale(0.9); opacity: 0.5; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.9); opacity: 0.5; }
}

/* ponytail: Runas místicas de Loki (Gabinetes) */
@keyframes lokiRuneGlow {
  0%, 100% { filter: drop-shadow(0 0 10px #10B981) drop-shadow(0 0 25px #059669); }
  50% { filter: drop-shadow(0 0 25px #FBBF24) drop-shadow(0 0 40px #10B981); }
}

/* ========================================================================= */
/* COMPONENTES ECOSISTEMA DE HÉROE MARVEL POR CATEGORÍA                      */
/* ponytail: Tarjetas, badges, botones y animaciones únicas por cada Vengador*/
/* ========================================================================= */

/* --- Badge de Héroe en la Tarjeta --- */
.badge-hero-marvel {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  z-index: 6;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

/* --- Tarjeta Base Marvel Optimizada --- */
body.theme-marvel .product-card {
  contain: layout style;
  will-change: transform;
}

/* 1. THOR (FUENTES) — Ecosistema de Trueno */
.badge-hero-marvel.badge-hero-thor {
  background: rgba(0, 210, 255, 0.15);
  color: #00D2FF;
  border: 1px solid #00D2FF;
}
body.theme-marvel .product-card[data-hero-type="thor"] {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.12);
}
body.theme-marvel .product-card[data-hero-type="thor"]:hover {
  border-color: #00D2FF;
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.45);
}
body.theme-marvel .product-card[data-hero-type="thor"] .btn-hero-action {
  background: linear-gradient(135deg, #00D2FF 0%, #0066FF 60%, #FFFFFF 100%);
  border-color: #00D2FF;
  color: #0b0d13;
  font-weight: 800;
}

/* 2. BLACK PANTHER (RAM) — Ecosistema de Vibranium */
.badge-hero-marvel.badge-hero-panther {
  background: rgba(139, 92, 246, 0.18);
  color: #DF00FE;
  border: 1px solid #8B5CF6;
}
body.theme-marvel .product-card[data-hero-type="panther"] {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
}
body.theme-marvel .product-card[data-hero-type="panther"]:hover {
  border-color: #DF00FE;
  box-shadow: 0 8px 24px rgba(223, 0, 254, 0.4);
}
body.theme-marvel .product-card[data-hero-type="panther"] .btn-hero-action {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 50%, #DF00FE 100%);
  border-color: #DF00FE;
  color: #ffffff;
  font-weight: 800;
}

/* 3. LOKI (GABINETES) — Ecosistema de Magia Asgardiana */
.badge-hero-marvel.badge-hero-loki {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
  border: 1px solid #10B981;
}
body.theme-marvel .product-card[data-hero-type="loki"] {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}
body.theme-marvel .product-card[data-hero-type="loki"]:hover {
  border-color: #FBBF24;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}
body.theme-marvel .product-card[data-hero-type="loki"] .btn-hero-action {
  background: linear-gradient(135deg, #10B981 0%, #047857 50%, #FBBF24 100%);
  border-color: #10B981;
  color: #ffffff;
  font-weight: 800;
}

/* 4. NAMOR (COOLERS) — Ecosistema de Talokan */
.badge-hero-marvel.badge-hero-namor {
  background: rgba(6, 182, 212, 0.18);
  color: #06B6D4;
  border: 1px solid #06B6D4;
}
body.theme-marvel .product-card[data-hero-type="namor"] {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.12);
}
body.theme-marvel .product-card[data-hero-type="namor"]:hover {
  border-color: #06B6D4;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}
body.theme-marvel .product-card[data-hero-type="namor"] .btn-hero-action {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 60%, #38BDF8 100%);
  border-color: #06B6D4;
  color: #ffffff;
  font-weight: 800;
}

/* 5. WAR MACHINE (PLACAS DE VIDEO) — Ecosistema Balístico */
.badge-hero-marvel.badge-hero-warmachine {
  background: rgba(239, 68, 68, 0.18);
  color: #EF4444;
  border: 1px solid #EF4444;
}
body.theme-marvel .product-card[data-hero-type="warmachine"] {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}
body.theme-marvel .product-card[data-hero-type="warmachine"]:hover {
  border-color: #EF4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}
body.theme-marvel .product-card[data-hero-type="warmachine"] .btn-hero-action {
  background: linear-gradient(135deg, #EF4444 0%, #991B1B 60%, #374151 100%);
  border-color: #EF4444;
  color: #ffffff;
  font-weight: 800;
}

/* 6. CAPITÁN AMÉRICA (MOTHERBOARDS) — Ecosistema Escudo */
.badge-hero-marvel.badge-hero-cap {
  background: rgba(59, 130, 246, 0.18);
  color: #3B82F6;
  border: 1px solid #3B82F6;
}
body.theme-marvel .product-card[data-hero-type="cap"] {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}
body.theme-marvel .product-card[data-hero-type="cap"]:hover {
  border-color: #3B82F6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}
body.theme-marvel .product-card[data-hero-type="cap"] .btn-hero-action {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #EF4444 100%);
  border-color: #3B82F6;
  color: #ffffff;
  font-weight: 800;
}

/* 7. NICK FURY (DISCOS SSD) — Ecosistema S.H.I.E.L.D. */
.badge-hero-marvel.badge-hero-fury {
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
  border: 1px solid #F59E0B;
}
body.theme-marvel .product-card[data-hero-type="fury"] {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}
body.theme-marvel .product-card[data-hero-type="fury"]:hover {
  border-color: #F59E0B;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}
body.theme-marvel .product-card[data-hero-type="fury"] .btn-hero-action {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 60%, #0F172A 100%);
  border-color: #F59E0B;
  color: #ffffff;
  font-weight: 800;
}

/* 8. PROFESOR X (SILLAS) — Ecosistema Cerebro */
.badge-hero-marvel.badge-hero-xavier {
  background: rgba(96, 165, 250, 0.18);
  color: #60A5FA;
  border: 1px solid #60A5FA;
}
body.theme-marvel .product-card[data-hero-type="xavier"] {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.12);
}
body.theme-marvel .product-card[data-hero-type="xavier"]:hover {
  border-color: #60A5FA;
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.4);
}
body.theme-marvel .product-card[data-hero-type="xavier"] .btn-hero-action {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 60%, #E2E8F0 100%);
  border-color: #60A5FA;
  color: #0b0d13;
  font-weight: 800;
}

/* 9. GUARDIANES DE LA GALAXIA (NOTEBOOKS) — Ecosistema Retro Cósmico */
.badge-hero-marvel.badge-hero-guardians {
  background: rgba(236, 72, 153, 0.18);
  color: #EC4899;
  border: 1px solid #EC4899;
}
body.theme-marvel .product-card[data-hero-type="guardians"] {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.12);
}
body.theme-marvel .product-card[data-hero-type="guardians"]:hover {
  border-color: #F97316;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}
body.theme-marvel .product-card[data-hero-type="guardians"] .btn-hero-action {
  background: linear-gradient(135deg, #EC4899 0%, #BE185D 50%, #F97316 100%);
  border-color: #EC4899;
  color: #ffffff;
  font-weight: 800;
}

/* 10. VISION (MONITORES) — Ecosistema Solar */
.badge-hero-marvel.badge-hero-vision {
  background: rgba(217, 4, 41, 0.18);
  color: #FFD600;
  border: 1px solid #D90429;
}
body.theme-marvel .product-card[data-hero-type="vision"] {
  border-color: rgba(217, 4, 41, 0.4);
  box-shadow: 0 2px 8px rgba(217, 4, 41, 0.12);
}
body.theme-marvel .product-card[data-hero-type="vision"]:hover {
  border-color: #FFD600;
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.4);
}
body.theme-marvel .product-card[data-hero-type="vision"] .btn-hero-action {
  background: linear-gradient(135deg, #D90429 0%, #9B00E8 50%, #FFD600 100%);
  border-color: #FFD600;
  color: #ffffff;
  font-weight: 800;
}

/* 11. IRON MAN (PROCESADORES) — Ecosistema Mark 85 */
.badge-hero-marvel.badge-hero-ironman {
  background: rgba(0, 240, 255, 0.18);
  color: #00F0FF;
  border: 1px solid #00F0FF;
}
body.theme-marvel .product-card[data-hero-type="ironman"] {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 2px 8px rgba(226, 54, 54, 0.15);
}
body.theme-marvel .product-card[data-hero-type="ironman"]:hover {
  border-color: #00F0FF;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.4);
}
body.theme-marvel .product-card[data-hero-type="ironman"] .btn-hero-action {
  background: linear-gradient(135deg, #E23636 0%, #C51F1F 45%, #D4AF37 100%);
  border-color: #00F0FF;
  color: #ffffff;
  font-weight: 800;
}

/* 12. S.H.I.E.L.D. HQ (COMPUTADORAS) — Ecosistema Helicarrier */
.badge-hero-marvel.badge-hero-shield {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
  border: 1px solid #38BDF8;
}
body.theme-marvel .product-card[data-hero-type="shield"] {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.12);
}
body.theme-marvel .product-card[data-hero-type="shield"]:hover {
  border-color: #38BDF8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}
body.theme-marvel .product-card[data-hero-type="shield"] .btn-hero-action {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 50%, #38BDF8 100%);
  border-color: #38BDF8;
  color: #ffffff;
  font-weight: 800;
}

/* ========================================================================= */
/* MICRO-ANIMACIONES AL ELEGIR PRODUCTO (CLICK / AGREGAR)                    */
/* ========================================================================= */

.hero-click-spark {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  animation: sparkBurst 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 100000;
}

@keyframes sparkBurst {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(3.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(5.5); opacity: 0; }
}

.spark-thor { background: radial-gradient(circle, #FFFFFF, #00D2FF, transparent); box-shadow: 0 0 25px #00D2FF; }
.spark-panther { background: radial-gradient(circle, #DF00FE, #8B5CF6, transparent); box-shadow: 0 0 25px #DF00FE; }
.spark-loki { background: radial-gradient(circle, #FBBF24, #10B981, transparent); box-shadow: 0 0 25px #10B981; }
.spark-namor { background: radial-gradient(circle, #38BDF8, #06B6D4, transparent); box-shadow: 0 0 25px #06B6D4; }
.spark-warmachine { background: radial-gradient(circle, #FFFFFF, #EF4444, transparent); box-shadow: 0 0 25px #EF4444; }
.spark-cap { background: radial-gradient(circle, #F3F4F6, #3B82F6, transparent); box-shadow: 0 0 25px #3B82F6; }
.spark-fury { background: radial-gradient(circle, #FDE68A, #F59E0B, transparent); box-shadow: 0 0 25px #F59E0B; }
.spark-xavier { background: radial-gradient(circle, #E2E8F0, #60A5FA, transparent); box-shadow: 0 0 25px #60A5FA; }
.spark-guardians { background: radial-gradient(circle, #F97316, #EC4899, transparent); box-shadow: 0 0 25px #EC4899; }
.spark-vision { background: radial-gradient(circle, #FFD600, #D90429, transparent); box-shadow: 0 0 25px #D90429; }
.spark-ironman { background: radial-gradient(circle, #D4AF37, #00F0FF, transparent); box-shadow: 0 0 25px #00F0FF; }
.spark-shield { background: radial-gradient(circle, #FFFFFF, #38BDF8, transparent); box-shadow: 0 0 25px #38BDF8; }
.spark-avengers { background: radial-gradient(circle, #00F0FF, #F0A500, transparent); box-shadow: 0 0 25px #F0A500; }

/* Efecto de impacto en la tarjeta al clickear */
.anim-pick-thor { animation: pickThorFlash 0.65s ease-out; }
.anim-pick-panther { animation: pickPantherShock 0.65s ease-out; }
.anim-pick-loki { animation: pickLokiGlow 0.65s ease-out; }
.anim-pick-namor { animation: pickNamorRipple 0.65s ease-out; }
.anim-pick-warmachine { animation: pickWarMachineLock 0.65s ease-out; }
.anim-pick-cap { animation: pickCapShieldWave 0.65s ease-out; }
.anim-pick-ironman { animation: pickIronmanRepulsor 0.65s ease-out; }

@keyframes pickThorFlash {
  0% { transform: scale(1); filter: brightness(1); }
  25% { transform: scale(1.03); filter: brightness(1.6); box-shadow: 0 0 35px #00D2FF; }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes pickPantherShock {
  0% { transform: scale(1); }
  30% { transform: scale(1.04); box-shadow: 0 0 40px #DF00FE; }
  100% { transform: scale(1); }
}

@keyframes pickLokiGlow {
  0% { transform: scale(1); opacity: 1; }
  35% { transform: scale(0.98); opacity: 0.8; box-shadow: 0 0 35px #10B981; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pickNamorRipple {
  0% { transform: scale(1); }
  30% { transform: scale(1.03); box-shadow: 0 0 35px #06B6D4; }
  100% { transform: scale(1); }
}

@keyframes pickWarMachineLock {
  0% { transform: scale(1); }
  25% { transform: scale(0.97); box-shadow: 0 0 35px #EF4444; }
  100% { transform: scale(1); }
}

@keyframes pickCapShieldWave {
  0% { transform: scale(1); }
  30% { transform: scale(1.03); box-shadow: 0 0 35px #3B82F6; }
  100% { transform: scale(1); }
}

@keyframes pickIronmanRepulsor {
  0% { transform: scale(1); }
  25% { transform: scale(1.04); box-shadow: 0 0 45px #00F0FF; filter: brightness(1.4); }
  100% { transform: scale(1); }
}

/* ========================================================================= */
/* MODAL DE DETALLE ADAPTADO AL HÉROE DEL PRODUCTO                           */
/* ========================================================================= */

#productDetailModal[data-hero-modal="thor"] .modal-container {
  border: 2px solid #00D2FF;
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.4);
}
#productDetailModal[data-hero-modal="panther"] .modal-container {
  border: 2px solid #8B5CF6;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
}
#productDetailModal[data-hero-modal="loki"] .modal-container {
  border: 2px solid #10B981;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
}
#productDetailModal[data-hero-modal="namor"] .modal-container {
  border: 2px solid #06B6D4;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
}
#productDetailModal[data-hero-modal="warmachine"] .modal-container {
  border: 2px solid #EF4444;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}
#productDetailModal[data-hero-modal="cap"] .modal-container {
  border: 2px solid #3B82F6;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}
#productDetailModal[data-hero-modal="fury"] .modal-container {
  border: 2px solid #F59E0B;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
}
#productDetailModal[data-hero-modal="xavier"] .modal-container {
  border: 2px solid #60A5FA;
  box-shadow: 0 0 40px rgba(96, 165, 250, 0.4);
}
#productDetailModal[data-hero-modal="guardians"] .modal-container {
  border: 2px solid #EC4899;
  box-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
}
#productDetailModal[data-hero-modal="vision"] .modal-container {
  border: 2px solid #D90429;
  box-shadow: 0 0 40px rgba(217, 4, 41, 0.4);
}
#productDetailModal[data-hero-modal="ironman"] .modal-container {
  border: 2px solid #D4AF37;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
}
#productDetailModal[data-hero-modal="shield"] .modal-container {
  border: 2px solid #38BDF8;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
}

/* ponytail: Accesibilidad — desactivar animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  body.theme-marvel .product-card::after,
  body.theme-marvel .product-card::before,
  body.theme-marvel .badge-oferta,
  body.theme-marvel .product-stock .stock-indicator.in-stock,
  body.theme-marvel #productDetailModal .detail-header::before,
  body.theme-marvel #detailAddToCartBtn,
  body.theme-marvel .detail-add-cart-btn,
  body.theme-marvel .btn-primary:active,
  #marvel-infinity-strip {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================================================================= */
/* 💻 TEMA: DÍA DEL PROGRAMADOR (NEGRO Y MORADO / MATRIX CODE / LENGUAJES)   */
/* ========================================================================= */
:root[data-theme="dark"] body.theme-programador {
  --bg-color: #06020c;
  --bg-card: #0e051a;
  --bg-panel: #130724;
  --primary-color: #a855f7;
  --primary-hover: #9333ea;
  --primary-glow: rgba(168, 85, 247, 0.4);
  --accent-color: #c084fc;
  --border-color: rgba(168, 85, 247, 0.25);
  --text-color: #f3e8ff;
  --text-muted: #c084fcb3;
  --dev-purple-glow: 0 0 20px rgba(168, 85, 247, 0.35);
}

:root:not([data-theme="dark"]) body.theme-programador {
  --bg-color: #f7f5fc;
  --bg-card: #ffffff;
  --bg-panel: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --primary-color: #9333ea;
  --primary-hover: #7e22ce;
  --primary-glow: rgba(147, 51, 234, 0.22);
  --accent-color: #a855f7;
  --border-color: rgba(147, 51, 234, 0.22);
  --border-card: #e9d5ff;
  --text-color: #1e1035;
  --text-muted: #6b7280;
  --dev-purple-glow: 0 0 20px rgba(147, 51, 234, 0.15);
  --box-shadow-premium: 0 10px 35px -10px rgba(147, 51, 234, 0.15);
}

body.theme-programador {
  background-color: var(--bg-color) !important;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(126, 34, 206, 0.25), transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(88, 28, 135, 0.15), transparent 50%) !important;
  color: var(--text-color) !important;
}

:root:not([data-theme="dark"]) body.theme-programador {
  background-color: #f7f5fc !important;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.12), transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(147, 51, 234, 0.08), transparent 50%) !important;
  color: #1e1035 !important;
}

/* --- Top Banner --- */
.theme-programador-top-banner {
  background: linear-gradient(90deg, #090314 0%, #2e0854 50%, #090314 100%);
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
  padding: 9px 16px;
  position: relative;
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dev-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1300px;
  width: 100%;
}
.dev-banner-badge {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #c084fc;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.dev-banner-title {
  color: #f3e8ff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Fira Code', 'Courier New', monospace;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}
.btn-dev-replay {
  background: rgba(147, 51, 234, 0.25);
  border: 1px solid #a855f7;
  color: #e9d5ff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-dev-replay:hover {
  background: #9333ea;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.7);
  transform: translateY(-1px);
}

/* --- Fullscreen Purple Matrix Intro --- */
.matrix-purple-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #05020a;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.matrix-purple-intro-overlay.intro-fade-out {
  opacity: 0 !important;
  filter: blur(14px) scale(1.06) !important;
  pointer-events: none !important;
}
#matrix-purple-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.matrix-purple-center-hud {
  position: relative;
  z-index: 10;
  background: rgba(13, 6, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #a855f7;
  border-radius: 16px;
  padding: 28px 36px;
  text-align: center;
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.5), inset 0 0 25px rgba(168, 85, 247, 0.15);
  max-width: 500px;
  width: 90%;
  animation: devHudPulse 2.5s infinite alternate;
}
@keyframes devHudPulse {
  0% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.35); border-color: rgba(168, 85, 247, 0.7); }
  100% { box-shadow: 0 0 60px rgba(168, 85, 247, 0.7); border-color: #c084fc; }
}
.matrix-hud-tag {
  color: #c084fc;
  font-size: 0.8rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.matrix-hud-title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(192, 132, 252, 0.8);
  margin-bottom: 16px;
}
.matrix-hud-loader {
  width: 100%;
  height: 6px;
  background: rgba(46, 16, 77, 0.6);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.matrix-hud-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7e22ce, #a855f7, #ffffff);
  animation: devMatrixBar 2.2s ease-in-out forwards;
}
@keyframes devMatrixBar {
  0% { width: 0%; }
  40% { width: 65%; }
  80% { width: 90%; }
  100% { width: 100%; }
}
.matrix-hud-desc {
  color: #d8b4fe;
  font-size: 0.75rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0.9;
}
.btn-matrix-skip {
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-matrix-skip:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
  border-color: #a855f7;
}

/* --- Language Ribbon --- */
.programador-lang-ribbon {
  background: #090314;
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.programador-lang-ribbon::-webkit-scrollbar { display: none; }
.programador-ribbon-title {
  color: #c084fc;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
}
.programador-ribbon-scroll {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.lang-pill {
  background: rgba(22, 10, 42, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.lang-pill:hover {
  border-color: #a855f7;
  background: rgba(147, 51, 234, 0.3);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}
.lang-pill.active {
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  color: #ffffff;
  border-color: #c084fc;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}

/* --- Category HUD Card --- */
.programador-lang-hud {
  margin-bottom: 24px;
  perspective: 1000px;
}
.programador-lang-hud.hud-enter .lang-hud-card {
  animation: devHudFlip 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes devHudFlip {
  0% { opacity: 0; transform: translateY(-10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-hud-card {
  background: linear-gradient(135deg, rgba(14, 6, 28, 0.95), rgba(28, 10, 54, 0.9));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 14px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.18), inset 0 0 20px rgba(168, 85, 247, 0.08);
}
.lang-hud-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-hud-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #c084fc;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
}
.lang-hud-tag {
  color: #a855f7;
  font-size: 0.72rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.terminal-prompt {
  color: #34d399;
  font-weight: 900;
}
.lang-hud-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-hud-cat {
  font-size: 0.85rem;
  color: #c084fc;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-weight: 400;
}
.lang-hud-lore {
  margin: 6px 0 0 0;
  color: #e9d5ff;
  font-size: 0.82rem;
  line-height: 1.4;
}
.lang-hud-code-snippet {
  background: #07030e;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}
.code-snippet-header {
  background: rgba(22, 10, 42, 0.9);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}
.code-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }
.code-snippet-file {
  margin-left: 6px;
  color: #c084fc;
  font-size: 0.7rem;
  font-family: 'Fira Code', 'Courier New', monospace;
}
.lang-hud-code-snippet pre {
  margin: 0;
  padding: 10px 14px;
  overflow-x: auto;
}
.lang-hud-code-snippet code {
  color: #d8b4fe;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.76rem;
  line-height: 1.45;
}

/* --- Category Grid Sweep Effect --- */
.products-grid.cyber-code-sweep {
  animation: cyberCodeSweep 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cyberCodeSweep {
  0% {
    opacity: 0.65;
    filter: blur(4px) drop-shadow(0 0 18px rgba(168, 85, 247, 0.8));
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 0px transparent);
    transform: translateY(0);
  }
}

/* --- Product Cards in Programador Theme --- */
body.theme-programador .product-card {
  background: #0d051c !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  position: relative;
  overflow: hidden;
}
body.theme-programador .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
body.theme-programador .product-card:hover {
  border-color: #a855f7 !important;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.35) !important;
  transform: translateY(-4px);
}
body.theme-programador .product-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px #c084fc;
}
body.theme-programador .product-name {
  color: #f5f3ff !important;
}
body.theme-programador .product-price {
  color: #c084fc !important;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-weight: 700;
}
body.theme-programador .product-usd-price {
  color: #d8b4fe !important;
  font-family: 'Fira Code', 'Courier New', monospace;
}
body.theme-programador .btn-primary {
  background: linear-gradient(135deg, #7e22ce, #9333ea) !important;
  border: 1px solid #c084fc !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35) !important;
  font-weight: 600;
}
body.theme-programador .btn-primary:hover {
  background: linear-gradient(135deg, #9333ea, #a855f7) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6) !important;
  transform: translateY(-2px);
}
body.theme-programador .badge-oferta,
body.theme-programador .badge-event-discount {
  background: linear-gradient(135deg, #7e22ce, #a855f7) !important;
  border: 1px solid #e9d5ff !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5) !important;
}

/* Responsive tweaks for Programador theme */
@media (max-width: 768px) {
  .lang-hud-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .lang-hud-code-snippet {
    font-size: 0.7rem;
  }
  .dev-banner-content {
    gap: 8px;
  }
  .dev-banner-title {
    font-size: 0.75rem;
  }
}

/* ========================================================================= *//* ========================================================================= */
/* 💻 TEMA: DÍA DEL PROGRAMADOR — MODO DÍA (LIGHT THEME)                     */
/* ========================================================================= */

:root:not([data-theme="dark"]) .theme-programador-top-banner {
  background: linear-gradient(90deg, #f5f3ff 0%, #ede9fe 50%, #f5f3ff 100%) !important;
  border-bottom: 1px solid rgba(147, 51, 234, 0.25) !important;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.08) !important;
}
:root:not([data-theme="dark"]) .dev-banner-badge {
  background: #ede9fe !important;
  border: 1px solid #c084fc !important;
  color: #6b21a8 !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15) !important;
}
:root:not([data-theme="dark"]) .dev-banner-title {
  color: #2e1065 !important;
  text-shadow: none !important;
}
:root:not([data-theme="dark"]) .btn-dev-replay {
  background: #ffffff !important;
  border: 1px solid #c084fc !important;
  color: #6b21a8 !important;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.1) !important;
}
:root:not([data-theme="dark"]) .btn-dev-replay:hover {
  background: #9333ea !important;
  color: #ffffff !important;
}

/* --- Language Ribbon Light Mode --- */
:root:not([data-theme="dark"]) .programador-lang-ribbon {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(147, 51, 234, 0.2) !important;
  box-shadow: 0 2px 10px rgba(147, 51, 234, 0.05) !important;
}
:root:not([data-theme="dark"]) .programador-ribbon-title {
  color: #6b21a8 !important;
}
:root:not([data-theme="dark"]) .lang-pill {
  background: #f8fafc !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  color: #4c1d95 !important;
}
:root:not([data-theme="dark"]) .lang-pill:hover {
  border-color: #9333ea !important;
  background: #f3e8ff !important;
  color: #3b0764 !important;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.15) !important;
}
:root:not([data-theme="dark"]) .lang-pill.active {
  background: linear-gradient(135deg, #7e22ce, #9333ea) !important;
  color: #ffffff !important;
  border-color: #6b21a8 !important;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.35) !important;
}

/* --- Category HUD Card Light Mode --- */
:root:not([data-theme="dark"]) .lang-hud-card {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.08) !important;
}
:root:not([data-theme="dark"]) .lang-hud-icon {
  background: #f3e8ff !important;
  border: 1px solid #c084fc !important;
  color: #7e22ce !important;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.15) !important;
}
:root:not([data-theme="dark"]) .lang-hud-tag {
  color: #7e22ce !important;
}
:root:not([data-theme="dark"]) .lang-hud-title {
  color: #1e1035 !important;
}
:root:not([data-theme="dark"]) .lang-hud-cat {
  color: #6b21a8 !important;
}
:root:not([data-theme="dark"]) .lang-hud-lore {
  color: #4b5563 !important;
}
:root:not([data-theme="dark"]) .lang-hud-code-snippet {
  background: #1e1a2e !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}
:root:not([data-theme="dark"]) .code-snippet-header {
  background: rgba(35, 20, 55, 0.95) !important;
  border-bottom: 1px solid rgba(168, 85, 247, 0.25) !important;
}
:root:not([data-theme="dark"]) .code-snippet-file {
  color: #c084fc !important;
}
:root:not([data-theme="dark"]) .lang-hud-code-snippet code {
  color: #e9d5ff !important;
}

/* --- Product Cards in Programador Light Mode --- */
:root:not([data-theme="dark"]) body.theme-programador .product-card {
  background: #ffffff !important;
  border: 1px solid rgba(168, 85, 247, 0.22) !important;
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.05) !important;
}
:root:not([data-theme="dark"]) body.theme-programador .product-card::before {
  background: linear-gradient(90deg, transparent, #a855f7, transparent) !important;
  opacity: 0.5 !important;
}
:root:not([data-theme="dark"]) body.theme-programador .product-card:hover {
  border-color: #9333ea !important;
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15) !important;
  transform: translateY(-4px) !important;
}
:root:not([data-theme="dark"]) body.theme-programador .product-name {
  color: #1e1035 !important;
}
:root:not([data-theme="dark"]) body.theme-programador .product-price {
  color: #7e22ce !important;
}
:root:not([data-theme="dark"]) body.theme-programador .product-usd-price {
  color: #6b21a8 !important;
}
:root:not([data-theme="dark"]) body.theme-programador .product-brand {
  color: #64748b !important;
}
:root:not([data-theme="dark"]) body.theme-programador .product-specs li {
  color: #475569 !important;
}
:root:not([data-theme="dark"]) body.theme-programador .btn-primary {
  background: linear-gradient(135deg, #7e22ce, #9333ea) !important;
  border: 1px solid #7e22ce !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.25) !important;
}
:root:not([data-theme="dark"]) body.theme-programador .btn-primary:hover {
  background: linear-gradient(135deg, #9333ea, #a855f7) !important;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4) !important;
}

/* --- Header, Navbar & Navigation in Programador Light Mode --- */
:root:not([data-theme="dark"]) body.theme-programador #mainHeader,
:root:not([data-theme="dark"]) body.theme-programador .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2) !important;
}
:root:not([data-theme="dark"]) body.theme-programador .cat-chip {
  background: #f5f3ff !important;
  color: #4c1d95 !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
}
:root:not([data-theme="dark"]) body.theme-programador .cat-chip:hover {
  background: #ede9fe !important;
  color: #2e1065 !important;
  border-color: #9333ea !important;
}
:root:not([data-theme="dark"]) body.theme-programador .cat-chip.active {
  background: linear-gradient(135deg, #7e22ce, #9333ea) !important;
  color: #ffffff !important;
  border-color: #6b21a8 !important;
}
:root:not([data-theme="dark"]) body.theme-programador .brand .logo-text {
  color: #2e1065 !important;
}
:root:not([data-theme="dark"]) body.theme-programador .search-input {
  background: #ffffff !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  color: #1e1035 !important;
}
:root:not([data-theme="dark"]) body.theme-programador .feature-card {
  background: #ffffff !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  box-shadow: 0 6px 25px rgba(147, 51, 234, 0.05) !important;
}
:root:not([data-theme="dark"]) body.theme-programador .feature-card:hover {
  border-color: #9333ea !important;
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.12) !important;
}

/* ========================================================================= */
/* VIDEO BACKGROUND CONTAINER */
/* ========================================================================= */
.video-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-color);
}

.video-bg-container video,
.video-bg-container .video-fallback-img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

header,
.app-main-content,
footer,
.modal {
  position: relative;
  z-index: 2;
}

/* ========================================================================= */
/* SKELETON LOADERS AND SHIMMER EFFECTS */
/* ========================================================================= */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.03) 25%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

[data-theme="light"] .skeleton-shimmer {
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0.04) 25%, 
    rgba(0, 0, 0, 0.08) 50%, 
    rgba(0, 0, 0, 0.04) 75%
  );
  background-size: 200% 100%;
}

.skeleton-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 380px;
}

.skeleton-image {
  width: 100%;
  height: 180px;
  border-radius: var(--border-radius-sm);
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
}

.skeleton-title {
  width: 80%;
}

.skeleton-subtitle {
  width: 50%;
}

.skeleton-price {
  width: 40%;
  height: 24px;
  margin-top: 10px;
}

/* Image fade-in logic */
.product-img-wrapper img {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-img-wrapper img.loaded {
  opacity: 1;
}

/* ========================================================================= */
/* ANIMACIONES DE SCROLL â€” IntersectionObserver (11 Especialistas)           */
/* ========================================================================= */

/* ponytail: Estado inicial oculto para elementos que aparecerÃ¡n con scroll */
.aparecerAnimado {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.aparecerAnimado.aparecerVisible {
  opacity: 1;
  transform: translateY(0);
}

/* ponytail: Delay escalonado para feature cards */
.aparecerAnimado:nth-child(1) { transition-delay: 0ms; }
.aparecerAnimado:nth-child(2) { transition-delay: 150ms; }
.aparecerAnimado:nth-child(3) { transition-delay: 300ms; }

/* ponytail: Entrada lateral para banners */
.bannerAnimado {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.bannerAnimado.aparecerVisible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================================================= */
/* SEPARADORES DECORATIVOS ENTRE SECCIONES                                   */
/* ========================================================================= */
.separador-seccion {
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.3;
  border: none;
}

/* ========================================================================= */
/* SHINE SWEEP EN PRODUCT CARDS DE OFERTAS                                   */
/* ========================================================================= */
/* ponytail: Brillo que recorre la card periÃ³dicamente */
.offers-carousel-track .product-card {
  position: relative;
  overflow: hidden;
}

.offers-carousel-track .product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: translateX(-150%) translateZ(0);
  animation: shineSweep 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
  will-change: transform;
}

@keyframes shineSweep {
  0%, 100% { transform: translateX(-150%) translateZ(0); }
  50% { transform: translateX(350%) translateZ(0); }
}

/* ========================================================================= */
/* BADGE PULSANTE "OFERTA" EN CARDS DESTACADAS                              */
/* ========================================================================= */
.badge-oferta {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff6b00, var(--primary-color));
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 6;
  animation: pulseBadge 2s ease-in-out infinite;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 4px 18px rgba(249, 115, 22, 0.6); }
}

/* ========================================================================= */
/* GLASSMORPHISM MEJORADO EN FEATURE CARDS                                   */
/* ========================================================================= */
/* ponytail: Borde gradiente animado en hover para premium feel */
.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.5s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  background: linear-gradient(135deg, var(--primary-color), #ff6b00, var(--primary-color));
}

/* ponytail: Glow sutil detrÃ¡s del Ã­cono */
.feature-icon-wrapper::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper::after {
  opacity: 0.3;
}

/* ========================================================================= */
/* BANNER GRADIENT SHIFT Y WHATSAPP PULSE                                    */
/* ========================================================================= */
/* ponytail: Gradiente moviÃ©ndose en el banner */
.banner-highlight {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ponytail: Pulso verde en el Ã­cono de WhatsApp */
.fa-whatsapp {
  animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 6px #25d366); }
}

/* ========================================================================= */
/* SKELETON DEL HERO CAROUSEL                                                */
/* ========================================================================= */
.hero-skeleton {
  width: 100%;
  height: clamp(260px, 30vw, 440px);
  border-radius: var(--border-radius-md);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 3vw, 40px);
  gap: 12px;
  margin-bottom: 30px;
}

.hero-skeleton-tag {
  width: 80px;
  height: 24px;
  border-radius: 20px;
}

.hero-skeleton-title {
  width: 60%;
  height: 36px;
  border-radius: 6px;
}

.hero-skeleton-desc {
  width: 45%;
  height: 20px;
  border-radius: 4px;
}

.hero-skeleton-btn {
  width: 120px;
  height: 40px;
  border-radius: var(--border-radius);
}

/* ========================================================================= */
/* ACCESIBILIDAD: Reducir movimiento                                         */
/* ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide::before {
    animation: none;
  }
  .carousel-dot.active::after {
    animation: none;
    width: 100%;
  }
  .aparecerAnimado {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bannerAnimado {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .offers-carousel-track .product-card::after {
    animation: none;
  }
  .badge-oferta {
    animation: none;
  }
  .banner-highlight {
    animation: none;
  }
  .fa-whatsapp {
    animation: none;
  }
  @keyframes kenBurns {
    0%, 100% { transform: scale(1); }
  }
}

/* ========================================================================= */
/* MODAL DE DETALLE DE PRODUCTO â€” Premium Redesign (11 Especialistas)       */
/* ========================================================================= */

/* ponytail: Contenedor principal del modal de producto mÃ¡s ancho y pulido */
.detail-modal {
  max-width: 1000px;
  padding: 0;
  overflow-y: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ponytail: Header sticky del modal */
.detail-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 15px 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.detail-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.detail-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ponytail: Layout flex del contenido (imagen + info) */
.detail-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 24px;
}

/* ponytail: Columna de imagen con borde gradiente y patrÃ³n sutil */
.detail-img-col {
  flex: 1.2;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.3s ease;
}

.detail-img-col:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

/* ponytail: Indicador de zoom en esquina inferior derecha */
.detail-img-col::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.detail-img-col:hover::after {
  opacity: 0.7;
}

#detailImg {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

/* ponytail: Columna de informaciÃ³n */
.detail-info-col {
  flex: 1.2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--text-color);
  margin-bottom: 5px;
  font-weight: 700;
}

.detail-badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.detail-meta-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.detail-meta-value {
  font-weight: bold;
  color: var(--text-color);
}

.detail-share-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
}

.detail-share-btn {
  font-size: 0.75rem;
  padding: 5px 10px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  transition: all 0.3s ease;
}

.detail-share-btn:hover {
  transform: translateY(-1px);
}

.detail-share-link {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.detail-share-wa {
  border-color: #25d366;
  color: #25d366;
}

/* ========================================================================= */
/* TARJETA DE PRECIOS â€” Glassmorphism Premium                                */
/* ========================================================================= */

.detail-price-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 22px;
  margin: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.detail-price-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ponytail: Brillo sutil recorriendo la tarjeta de precios */
.detail-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.04), transparent);
  animation: priceShine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes priceShine {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.detail-best-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.detail-cash-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  line-height: 1.1;
}

.detail-discount-note {
  font-size: 0.85rem;
  color: #10b981;
  margin-top: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-price-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.detail-other-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-other-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.detail-list-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 2px;
}

.detail-payment-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* ponytail: BotÃ³n "Ver cuotas" con pulso sutil */
.detail-cuotas-btn {
  border-color: #3b82f6;
  color: #3b82f6;
  font-size: 0.85rem;
  padding: 6px 14px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.detail-cuotas-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.detail-payment-btn {
  border-color: #10b981;
  color: #10b981;
  font-size: 0.75rem;
  padding: 4px 10px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.detail-payment-btn:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* ponytail: Panel colapsable de opciones de pago con transiciÃ³n suave */
.detail-payment-collapse {
  margin-top: 12px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: rgba(0,0,0,0.05);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.detail-payment-collapse.open {
  max-height: 650px;
  padding: 12px;
  overflow-y: auto;
}

.detail-payment-collapse-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ========================================================================= */
/* META INFO â€” Stock, GarantÃ­a, EnvÃ­o como mini-cards                        */
/* ========================================================================= */

.detail-meta-grid {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}

.detail-meta-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

:root:not([data-theme="dark"]) .detail-meta-item {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.05);
}

:root:not([data-theme="dark"]) .detail-meta-item:hover {
  background: rgba(0,0,0,0.04);
}

.detail-meta-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.detail-meta-icon.stock { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.detail-meta-icon.warranty { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.detail-meta-icon.shipping { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

/* ========================================================================= */
/* BOTÃ“N AGREGAR AL CARRITO â€” Premium con shine sweep                       */
/* ========================================================================= */

.detail-cart-row {
  margin-top: 15px;
  display: flex;
  gap: 12px;
}

.detail-add-cart-btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), #ff6b00);
  border: none;
  color: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.detail-add-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

.detail-add-cart-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.detail-add-cart-btn:hover::after {
  left: 150%;
}

.detail-add-cart-btn:hover i {
  animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

/* ========================================================================= */
/* SECCIÃ“N DE ESPECIFICACIONES â€” Mejorada                                    */
/* ========================================================================= */

.detail-spec-section {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 24px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 24px;
}

.detail-spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-spec-title {
  margin: 0;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-spec-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

.detail-spec-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================================================= */
/* MODAL DE CUOTAS â€” PestaÃ±as Pills Premium                                 */
/* ========================================================================= */

.installments-modal {
  max-width: 800px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  overflow: hidden;
}

.installment-tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  background: rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  flex-wrap: wrap;
}

:root:not([data-theme="dark"]) .installment-tab-bar {
  background: rgba(0,0,0,0.04);
}

.installment-tab {
  background: none;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.installment-tab:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-color);
}

.installment-tab.active {
  background: var(--bg-panel);
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.installment-tab.active.bank { color: #3b82f6; }
.installment-tab.active.orange { color: #f97316; }
.installment-tab.active.sistema-tres { color: #a855f7; }

/* ponytail: Banners informativos glassmorphism */
.installment-info-banner {
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(4px);
}

.installment-info-banner.bank {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.installment-info-banner.orange {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: #f97316;
}

.installment-info-banner.sistema-tres {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

/* ponytail: Tabla de cuotas mejorada con hover en filas */
.installment-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.installment-table thead tr {
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-color);
}

.installment-table th {
  padding: 12px 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.installment-table td {
  padding: 11px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

:root:not([data-theme="dark"]) .installment-table td {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.installment-table tbody tr {
  transition: background 0.2s ease;
}

.installment-table tbody tr:hover {
  background: rgba(249, 115, 22, 0.04);
}

/* ponytail: Fila de efectivo/transferencia destacada */
.installment-table tbody tr.cash-row {
  background: rgba(16, 185, 129, 0.06);
}

.installment-table tbody tr.cash-row:hover {
  background: rgba(16, 185, 129, 0.1);
}

.installment-table .table-responsive {
  max-height: 380px;
  overflow-y: auto;
}

/* ========================================================================= */
/* MODAL DE OPCIONES DE PAGO â€” Premium                                       */
/* ========================================================================= */

.payment-modal {
  max-width: 550px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  overflow: hidden;
}

.payment-option-item {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.payment-option-item:last-child {
  border-bottom: none;
}

.payment-option-item:hover {
  background: rgba(16, 185, 129, 0.04);
}

.payment-option-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 6px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.payment-option-info {
  flex: 1;
}

.payment-option-name {
  color: var(--text-color);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.payment-option-detail {
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========================================================================= */
/* ANIMACIONES DE ENTRADA DEL MODAL DE PRODUCTO                              */
/* ========================================================================= */

/* ponytail: Al abrir el modal, la imagen entra desde la izquierda y la info desde la derecha */
.modal-overlay.active .detail-img-col {
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-overlay.active .detail-info-col {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
  opacity: 0;
}

.modal-overlay.active .detail-spec-section {
  animation: fadeInUp 0.5s ease 0.2s forwards;
  opacity: 0;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================= */
/* RESPONSIVE â€” Modal de Producto en Mobile                                  */
/* ========================================================================= */

@media (max-width: 768px) {
  .detail-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .detail-container {
    flex-direction: column;
    gap: 20px;
    padding: 16px;
  }

  .detail-img-col {
    min-width: unset;
    max-height: 300px;
  }

  #detailImg {
    max-height: 280px;
  }

  .detail-info-col {
    min-width: unset;
  }

  .detail-cash-price {
    font-size: 1.9rem;
  }

  .detail-add-cart-btn {
    padding: 14px;
    font-size: 1rem;
  }

  .installments-modal {
    max-width: 100%;
  }

  .installment-tab {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .detail-spec-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ponytail: Accesibilidad - reducir movimiento en modal de producto */
@media (prefers-reduced-motion: reduce) {
  .modal-overlay.active .detail-img-col,
  .modal-overlay.active .detail-info-col,
  .modal-overlay.active .detail-spec-section {
    animation: none;
    opacity: 1;
  }
  .detail-price-card::before {
    animation: none;
  }
  .detail-add-cart-btn:hover i {
    animation: none;
  }
}

/* Hide video/image background in maintenance tab to improve readability */
body.tab-maintenance .video-bg-container,
body.tab-maintenance #videoBgContainer {
  display: none !important;
}

/* 4 Opciones Rápidas de Producto en Modal Detalle */
.detail-actions-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.detail-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: var(--border-radius-sm, 8px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  background: var(--bg-card, rgba(255, 255, 255, 0.04));
  color: var(--text-color, #ffffff);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  user-select: none;
  white-space: nowrap;
}

.detail-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color, #f97316);
}

.detail-action-btn:active {
  transform: translateY(0);
}

/* Favoritos */
.detail-action-btn.btn-action-fav:hover,
.detail-action-btn.btn-action-fav.active {
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.45);
  color: #ec4899;
}

/* Pausar */
.detail-action-btn.btn-action-pause:hover,
.detail-action-btn.btn-action-pause.active {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

/* Destacar */
.detail-action-btn.btn-action-feature:hover,
.detail-action-btn.btn-action-feature.active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #f59e0b;
}

/* Cambiar Imagen */
.detail-action-btn.btn-action-img:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.45);
  color: #3b82f6;
}

@media (max-width: 576px) {
  .detail-actions-toolbar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Custom z-index for Change Image Modal to ALWAYS be on top of Product Detail Modal */
#changeImageModal {
  z-index: 999999 !important;
}

#changeImageModal .modal-content {
  z-index: 1000000 !important;
  max-width: 580px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.75);
}

/* Detail Image Wrapper & Photos Counter Badge */
.detail-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-md, 12px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.detail-photos-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 3;
}

/* Thumbnails row below detail main image */
.detail-thumbnails-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.detail-thumb-card {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid var(--border-color, rgba(255, 255, 255, 0.12));
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-thumb-card:hover,
.detail-thumb-card.active {
  border-color: var(--primary-color, #f97316);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.detail-thumb-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Slot preview cards in Change Image Modal */
.image-slot-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  padding: 10px;
}

.slot-preview-box {
  background: rgba(0, 0, 0, 0.1);
  border: 1px dashed var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 6px;
  margin-top: 8px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ========================================================================= */
/* 📱💻 MASTER RESPONSIVE DESIGN SUITE (MOBILE, TABLET, LAPTOPS, OPERA, PC) */
/* ========================================================================= */

/* --- 1. GLOBAL FLUID TYPOGRAPHY & CONTAINERS --- */
.container,
.main-content,
.hero-carousel,
.catalog-section,
.offers-section {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 70px; /* Safe padding for floating WhatsApp button */
}

/* Category navigation wrapper with interactive scroll arrows */
.category-nav-wrapper {
  position: relative;
  width: 100%;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.category-nav {
  width: 100%;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
}

.category-nav.grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.cat-nav-arrow:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.cat-nav-arrow.left {
  left: 6px;
}

.cat-nav-arrow.right {
  right: 6px;
}

.category-nav-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px; /* Leave space for arrows */
  max-width: 1400px;
  margin: 0 auto;
  min-width: max-content;
}

.cat-chip {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  color: var(--text-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.cat-chip:hover, .cat-chip.active {
  background: var(--primary-color);
  color: #fff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* En resoluciones HD / 1280x720 compactar ligeramente para óptimo display */
@media (max-width: 1366px) {
  .cat-chip {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
  }
  .category-nav-content {
    gap: 6px !important;
  }
}

/* --- 2. ADAPTIVE NAVBAR (LAPTOPS, OPERA WITH SIDEBAR, RESOLUTIONS < 1300PX) --- */
@media (max-width: 1300px) {
  /* Hide verbose text labels in nav items to keep search-bar wide and clean */
  .nav-item .nav-text,
  .btn-logout-compact .nav-text {
    display: none !important;
  }

  .nav-item {
    padding: 7px 9px !important;
    font-size: 1rem !important;
  }

  .user-greeting-name {
    max-width: 100px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .search-bar {
    min-width: 180px !important;
    flex: 1 1 auto !important;
  }
}

@media (max-width: 1024px) {
  .user-greeting-box {
    display: none !important; /* Hide greeting text in tablets, keep quick profile icon */
  }

  .navbar-content {
    padding: 8px 15px !important;
    gap: 10px !important;
  }
}

/* --- 3. MOBILE NAVBAR (<= 768px) --- */
@media (max-width: 768px) {
  .navbar-content {
    flex-wrap: wrap !important;
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  .brand .logo-text {
    font-size: 1.6rem !important;
  }

  .brand .logo-subtext {
    font-size: 0.62rem !important;
  }

  .search-bar {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2px !important;
  }

  .search-bar input {
    padding: 8px 12px !important;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
  }

  .nav-links {
    gap: 6px !important;
  }

  .nav-item {
    padding: 6px 7px !important;
  }

  /* Category pills */
  .category-nav-content {
    padding: 0 12px !important;
    gap: 6px !important;
  }

  .cat-chip {
    padding: 5px 11px !important;
    font-size: 0.76rem !important;
  }
}

/* --- 4. RESPONSIVE CATALOG & FILTERS BAR --- */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.catalog-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 992px) {
  .catalog-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .catalog-filters {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .catalog-filters input {
    width: 90px !important;
    flex: 1 1 80px !important;
  }

  .catalog-filters select {
    flex: 1 1 130px !important;
  }
}

/* --- 5. RESPONSIVE PRODUCTS GRID & CARDS --- */
/* Mobile (<= 480px): 2 tight columns */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .product-img-wrapper { height: 120px !important; padding: 8px !important; }
  .product-details { padding: 8px !important; }
  .product-name { font-size: 0.8rem !important; height: 2.2rem !important; }
  .product-price { font-size: 1rem !important; }
  .product-actions .btn { padding: 6px 8px !important; font-size: 0.78rem !important; min-height: 34px !important; }
}

/* Small Mobile (481px - 576px): 2 comfortable columns */
@media (min-width: 481px) and (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .product-img-wrapper { height: 145px !important; padding: 10px !important; }
  .product-name { font-size: 0.85rem !important; }
}

/* Tablet (577px - 768px): 3 columns */
@media (min-width: 577px) and (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .product-img-wrapper { height: 155px !important; }
}

/* Small Laptop / HD (769px - 1280px): 3-4 columns */
@media (min-width: 769px) and (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Standard Desktop / FHD (1281px - 1920px): 4-5 columns */
@media (min-width: 1281px) and (max-width: 1920px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 20px !important;
  }
}

/* Large Desktop / 2K (1921px+): 5-6 columns */
@media (min-width: 1921px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
  }
}

/* --- 6. RESPONSIVE MODALS & TOUCH TARGETS --- */
/* Mobile modals */
@media (max-width: 576px) {
  input, select, textarea { font-size: 16px !important; }
  .modal-content {
    width: 98% !important; max-width: 98% !important;
    margin: 8px auto !important; padding: 12px !important;
    max-height: 92vh !important; border-radius: 12px !important;
    overflow-y: auto !important; -webkit-overflow-scrolling: touch !important;
  }
  .detail-modal {
    max-width: 98% !important;
    padding: 0 !important;
  }
  .detail-container {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 12px !important;
  }
  .detail-img-col {
    min-width: unset !important;
    max-height: 260px !important;
  }
  #detailImg { max-height: 240px !important; }
  .detail-info-col { min-width: unset !important; }
  .detail-title { font-size: 1.2rem !important; }
  .detail-cash-price { font-size: 1.8rem !important; }
  .product-detail-layout { grid-template-columns: 1fr !important; gap: 12px !important; }
  .detail-img-wrapper { max-height: 220px !important; }
  .detail-img-wrapper img { max-height: 200px !important; }
}

/* Tablet modals */
@media (min-width: 577px) and (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
  .modal-content {
    width: 92% !important; max-width: 92% !important;
    margin: 20px auto !important; padding: 18px !important;
    max-height: 90vh !important; border-radius: 14px !important;
    overflow-y: auto !important;
  }
  .detail-modal {
    max-width: 92% !important;
    padding: 0 !important;
  }
  .detail-container {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 16px !important;
  }
  .detail-img-col { min-width: unset !important; }
  .detail-info-col { min-width: unset !important; }
  .product-detail-layout { grid-template-columns: 1fr !important; gap: 15px !important; }
}

/* Laptop / HD modals (769px - 1280px) */
@media (min-width: 769px) and (max-width: 1280px) {
  .modal-content {
    max-width: 680px !important; padding: 24px !important;
    max-height: 90vh !important;
  }
  /* Product detail modal gets MORE space on laptops */
  .detail-modal {
    max-width: 900px !important;
    width: 92% !important;
    max-height: 92vh !important;
    padding: 0 !important;
  }
  .detail-container {
    gap: 24px !important;
    padding: 20px !important;
  }
  .detail-img-col { min-width: 280px !important; }
  #detailImg { max-height: 380px !important; }

  /* Client Database & History modals on Laptop */
  #maintClientsModal .modal-content,
  #maintClientHistoryModal .modal-content,
  .modal-content.maint-modal-xl,
  .modal-content.modal-xl {
    max-width: 95% !important;
    width: 95% !important;
    max-height: 92vh !important;
    padding: 22px !important;
  }
}

/* FHD modals (1281px - 1920px) — Desktop 1080p */
@media (min-width: 1281px) and (max-width: 1920px) {
  .modal-content {
    max-width: 550px !important; padding: 28px !important;
    max-height: 85vh !important;
  }
  /* Product detail modal: EXPAND to fill FHD screens properly */
  .detail-modal {
    max-width: 1100px !important;
    width: 88% !important;
    max-height: 92vh !important;
    padding: 0 !important;
  }
  /* Client Database & History modals: EXPAND comfortably on FHD Desktop */
  #maintClientsModal .modal-content,
  #maintClientHistoryModal .modal-content,
  .modal-content.maint-modal-xl,
  .modal-content.modal-xl {
    max-width: 1350px !important;
    width: 92% !important;
    max-height: 90vh !important;
    padding: 28px !important;
  }
  .detail-container {
    gap: 30px !important;
    padding: 28px !important;
  }
  .detail-img-col {
    min-width: 380px !important;
    flex: 1.3 !important;
  }
  #detailImg { max-height: 480px !important; }
  .detail-info-col {
    min-width: 340px !important;
    flex: 1.2 !important;
  }
  .detail-title { font-size: 1.6rem !important; }
  .detail-cash-price { font-size: 2.4rem !important; }
  .detail-price-card { padding: 24px !important; }
}

/* QHD / 2K modals (1921px+) — Large monitors */
@media (min-width: 1921px) {
  .modal-content {
    max-width: 600px !important; padding: 32px !important;
    max-height: 80vh !important;
  }
  /* Product detail modal: MAXIMIZE on 2K+ screens */
  .detail-modal {
    max-width: 1300px !important;
    width: 80% !important;
    max-height: 90vh !important;
    padding: 0 !important;
  }
  /* Client Database & History modals: MAXIMIZE on 2K+ screens */
  #maintClientsModal .modal-content,
  #maintClientHistoryModal .modal-content,
  .modal-content.maint-modal-xl,
  .modal-content.modal-xl {
    max-width: 1650px !important;
    width: 88% !important;
    max-height: 88vh !important;
    padding: 34px !important;
  }
  .detail-container {
    gap: 40px !important;
    padding: 36px !important;
  }
  .detail-img-col {
    min-width: 450px !important;
    flex: 1.4 !important;
  }
  #detailImg { max-height: 560px !important; }
  .detail-info-col {
    min-width: 380px !important;
    flex: 1.2 !important;
  }
  .detail-title { font-size: 1.8rem !important; }
  .detail-cash-price { font-size: 2.6rem !important; }
  .detail-price-card { padding: 28px !important; }
  .detail-meta-grid { gap: 16px !important; }
}

/* Cart drawer responsive */
@media (max-width: 576px) {
  .cart-drawer { max-width: 100% !important; }
  .cart-header { padding: 16px !important; }
  .cart-header h3 { font-size: 1.2rem !important; }
  .cart-items-container { padding: 14px !important; }
  .cart-item-quantity button { min-width: 36px !important; min-height: 36px !important; }
}

/* --- 7. RESPONSIVE ADMIN PANELS (EXCLUDING MANTENIMIENTO) --- */
/* Mobile admin */
@media (max-width: 576px) {
  .admin-dashboard {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 10px !important;
  }
  .admin-sidebar {
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px !important;
    gap: 4px !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
  }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .admin-menu-item {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    flex: 0 0 auto !important;
    border-radius: 8px !important;
  }
  .admin-menu-item i { font-size: 0.9rem !important; }
  .admin-menu-item .nav-text { display: none !important; }
  .admin-content {
    padding: 10px !important;
    border-radius: 10px !important;
    min-height: 300px !important;
  }
  .admin-actions-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .admin-search-bar {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .admin-table { font-size: 0.78rem !important; }
  .admin-table th, .admin-table td { padding: 6px 8px !important; }
}

/* Tablet admin */
@media (min-width: 577px) and (max-width: 992px) {
  .admin-dashboard {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .admin-sidebar {
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  .admin-menu-item {
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
    flex: 0 0 auto !important;
    border-radius: 8px !important;
  }
  .admin-content {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  .admin-actions-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}

/* Desktop admin (1280px HD) */
@media (min-width: 993px) and (max-width: 1280px) {
  .admin-dashboard {
    grid-template-columns: 220px 1fr !important;
    gap: 20px !important;
  }
  .admin-content { padding: 22px !important; }
}

/* FHD admin */
@media (min-width: 1281px) and (max-width: 1920px) {
  .admin-dashboard {
    grid-template-columns: 260px 1fr !important;
    gap: 28px !important;
  }
  .admin-content { padding: 30px !important; }
}

/* 2K admin */
@media (min-width: 1921px) {
  .admin-dashboard {
    grid-template-columns: 300px 1fr !important;
    gap: 35px !important;
  }
  .admin-content { padding: 40px !important; min-height: 700px !important; }
  .admin-menu-item { padding: 14px 18px !important; font-size: 1rem !important; }
}

/* --- 8. FLOATING WIDGETS & SAFE-AREA --- */
.whatsapp-widget {
  position: fixed !important;
  bottom: clamp(16px, 3vh, 30px) !important;
  right: clamp(14px, 2vw, 30px) !important;
  z-index: 999 !important;
}

@media (max-width: 576px) {
  .whatsapp-widget {
    bottom: 14px !important;
    right: 12px !important;
  }
  .whatsapp-btn {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.3rem !important;
  }
  .scroll-top-btn {
    bottom: 68px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
  }
}

@media (min-width: 1921px) {
  .whatsapp-btn {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.8rem !important;
  }
  .scroll-top-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }
}

/* --- 9. FOOTER RESPONSIVE --- */
@media (max-width: 576px) {
  .footer { padding: 20px 12px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .footer-brand .logo-text { font-size: 1.4rem !important; }
  .footer-title { font-size: 0.9rem !important; }
  .footer-bottom { flex-direction: column !important; text-align: center !important; gap: 10px !important; }
}

@media (min-width: 577px) and (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
}

@media (min-width: 1921px) {
  .footer { padding: 50px 40px !important; }
  .footer-grid { gap: 40px !important; }
  .footer-brand .logo-text { font-size: 2.5rem !important; }
}

/* ========================================================================= */
/* 📸 PRODUCT IMAGE UPLOAD & CAMERA CAPTURE STYLES */
/* ========================================================================= */

.image-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 18px 12px;
  text-align: center;
  background: var(--bg-panel);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.image-upload-box:hover {
  border-color: var(--primary-color);
  background: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.15);
}

.image-upload-box:active {
  transform: scale(0.99);
}

.image-upload-mode-tabs .image-tab-btn {
  font-weight: 600;
  transition: all 0.2s ease;
}

.image-slot-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  transition: all 0.2s ease;
}

.image-slot-card:hover {
  border-color: var(--primary-color);
}

@media (max-width: 576px) {
  .image-upload-box {
    padding: 14px 10px;
  }
  .image-upload-box i.fa-camera-retro {
    font-size: 1.6rem !important;
  }
  .image-upload-mode-tabs {
    flex-direction: row;
  }
}

/* ========================================================================= */
/* 🛠️ MASTER RESPONSIVE SERVICIO TÉCNICO Y MANTENIMIENTO */
/* (Optimizado para 1280x720, 1360x768, 1366x768, 1080p FHD y 2K+) */
/* ========================================================================= */

/* Expansión fluida de contenedor: elimina márgenes muertos y aprovecha toda la pantalla */
.app-main-content:has(#maintenanceTab.active),
.app-main-content:has(#adminMaintenanceView:not(.hidden)),
.app-main-content.maint-layout-wide {
  max-width: 98vw !important;
  width: 98% !important;
  padding: 10px 14px !important;
  margin: 0 auto !important;
}

#maintenanceTab {
  width: 100% !important;
  max-width: 100% !important;
}

#adminMaintenanceView {
  width: 100% !important;
  max-width: 100% !important;
}

/* Columna de Acciones Estética y Compacta (~115px) */
.maint-actions-cell {
  white-space: nowrap !important;
  text-align: center !important;
  width: 115px !important;
  padding: 6px 8px !important;
}

.maint-actions-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.maint-action-btn {
  padding: 6px 8px !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  min-width: 30px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

/* ========================================================================= */
/* ☀️ MODO DÍA (LIGHT MODE): VISIBILIDAD DE ALTO CONTRASTE */
/* ========================================================================= */

:root:not([data-theme="dark"]) .maint-actions-toolbar,
[data-theme="light"] .maint-actions-toolbar {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

:root:not([data-theme="dark"]) .maint-action-btn,
[data-theme="light"] .maint-action-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

/* Botón Editar - Modo Día */
:root:not([data-theme="dark"]) .maint-btn-edit,
[data-theme="light"] .maint-btn-edit {
  border-color: #f97316 !important;
  color: #ea580c !important;
  background: #fff7ed !important;
}

:root:not([data-theme="dark"]) .maint-btn-edit:hover,
[data-theme="light"] .maint-btn-edit:hover {
  background: #ea580c !important;
  border-color: #c2410c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.45) !important;
  transform: translateY(-1px);
}

/* Botón Chat - Modo Día */
:root:not([data-theme="dark"]) .maint-btn-chat,
[data-theme="light"] .maint-btn-chat {
  border-color: #3b82f6 !important;
  color: #2563eb !important;
  background: #eff6ff !important;
}

:root:not([data-theme="dark"]) .maint-btn-chat:hover,
[data-theme="light"] .maint-btn-chat:hover {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px);
}

/* Botón Menú Impresión - Modo Día */
:root:not([data-theme="dark"]) .maint-btn-print,
[data-theme="light"] .maint-btn-print {
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  background: #f0f9ff !important;
  gap: 3px !important;
}

:root:not([data-theme="dark"]) .maint-btn-print:hover,
[data-theme="light"] .maint-btn-print:hover,
:root:not([data-theme="dark"]) .maint-dropdown-wrapper.open .maint-btn-print,
[data-theme="light"] .maint-dropdown-wrapper.open .maint-btn-print {
  background: #0284c7 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45) !important;
  transform: translateY(-1px);
}

/* Botón Eliminar - Modo Día */
:root:not([data-theme="dark"]) .maint-btn-delete,
[data-theme="light"] .maint-btn-delete {
  border-color: #ef4444 !important;
  color: #dc2626 !important;
  background: #fef2f2 !important;
}

:root:not([data-theme="dark"]) .maint-btn-delete:hover,
[data-theme="light"] .maint-btn-delete:hover {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45) !important;
  transform: translateY(-1px);
}

/* Menú Desplegable de Impresión - Modo Día */
:root:not([data-theme="dark"]) .maint-print-dropdown-menu,
[data-theme="light"] .maint-print-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

:root:not([data-theme="dark"]) .maint-print-item,
[data-theme="light"] .maint-print-item {
  color: #1e293b !important;
  font-weight: 600 !important;
}

:root:not([data-theme="dark"]) .maint-print-item:hover,
[data-theme="light"] .maint-print-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: translateX(3px);
}

/* Filtros y Cabecera de Mantenimiento - Modo Día */
:root:not([data-theme="dark"]) #maintListView > div:first-child,
[data-theme="light"] #maintListView > div:first-child {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

:root:not([data-theme="dark"]) .maint-form-tabs,
[data-theme="light"] .maint-form-tabs {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .maint-form-tab-btn,
[data-theme="light"] .maint-form-tab-btn {
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

:root:not([data-theme="dark"]) .maint-form-tab-btn.active,
[data-theme="light"] .maint-form-tab-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

/* ========================================================================= */
/* 🌙 MODO NOCHE (DARK MODE): GLASSMORPHISM Y CONTRASTE OSCURO */
/* ========================================================================= */

[data-theme="dark"] .maint-actions-toolbar {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .maint-action-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-color) !important;
}

[data-theme="dark"] .maint-btn-edit {
  border-color: rgba(249, 115, 22, 0.4) !important;
  color: #ffedd5 !important;
  background: rgba(249, 115, 22, 0.12) !important;
}

[data-theme="dark"] .maint-btn-edit:hover {
  background: rgba(249, 115, 22, 0.3) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.35) !important;
  transform: translateY(-1px);
}

/* Botón Chat - Modo Oscuro */
[data-theme="dark"] .maint-btn-chat {
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #dbeafe !important;
  background: rgba(59, 130, 246, 0.14) !important;
}

[data-theme="dark"] .maint-btn-chat:hover {
  background: rgba(59, 130, 246, 0.35) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .maint-btn-print {
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #e0f2fe !important;
  background: rgba(56, 189, 248, 0.12) !important;
  gap: 3px !important;
}

[data-theme="dark"] .maint-btn-print:hover,
[data-theme="dark"] .maint-dropdown-wrapper.open .maint-btn-print {
  background: rgba(56, 189, 248, 0.3) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .maint-btn-delete {
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

[data-theme="dark"] .maint-btn-delete:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .maint-print-dropdown-menu {
  background: rgba(15, 15, 25, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.1) !important;
}

[data-theme="dark"] .maint-print-item {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .maint-print-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Menú Flotante Glassmórfico de Impresión (Estructura Común) */
.maint-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.maint-print-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1050;
  min-width: 215px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 10px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  animation: maintDropdownFadeIn 0.18s ease-out forwards;
}

.maint-print-dropdown-menu.active {
  display: flex !important;
}

@keyframes maintDropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.maint-print-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.maint-print-item i {
  font-size: 0.88rem;
  width: 18px;
  text-align: center;
}

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

.maint-header-actions .btn {
  padding: 7px 12px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

/* Base Split Layout & Live Preview Panel */
.maint-split-layout {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.maint-editor-panel {
  flex: 1 1 54% !important;
  max-width: 55% !important;
  min-width: 0 !important;
  overflow-y: visible !important;
}

.maint-preview-panel-container {
  flex: 1 1 46% !important;
  max-width: 45% !important;
  min-width: 0 !important;
  position: sticky !important;
  top: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.maint-preview-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  overflow-y: auto !important;
  max-height: calc(100vh - 140px) !important;
  padding: 1.5rem !important;
  font-family: Arial, sans-serif !important;
}

/* --- HD Breakpoint (1025px - 1366px) — Monitores 720p / 768p / 1280x720 / 1360x768 / 1366x768 --- */
@media (min-width: 1025px) and (max-width: 1366px) {
  .app-main-content:has(#maintenanceTab.active),
  .app-main-content:has(#adminMaintenanceView:not(.hidden)),
  .app-main-content.maint-layout-wide {
    max-width: 98vw !important;
    width: 98% !important;
    padding: 8px 10px !important;
  }
  #adminMaintenanceView .admin-table {
    font-size: 0.82rem !important;
  }
  #adminMaintenanceView .admin-table th,
  #adminMaintenanceView .admin-table td {
    padding: 7px 8px !important;
  }
  #adminMaintenanceView .admin-table th {
    font-size: 0.74rem !important;
  }
  .maint-actions-cell {
    width: 115px !important;
  }
  .maint-action-btn {
    padding: 5px 7px !important;
    font-size: 0.8rem !important;
    min-height: 28px !important;
    min-width: 28px !important;
  }
  .maint-action-btn i {
    font-size: 0.8rem !important;
  }
  .maint-split-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }
  .maint-editor-panel {
    flex: 1 1 53% !important;
    max-width: 53% !important;
    min-width: 0 !important;
  }
  .maint-preview-panel-container {
    flex: 1 1 47% !important;
    max-width: 47% !important;
    min-width: 0 !important;
    position: sticky !important;
    top: 10px !important;
  }
  .maint-preview-panel {
    padding: 1.1rem !important;
    max-height: calc(100vh - 130px) !important;
  }
  .maint-header-actions .btn {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }
}

/* --- Tablet Breakpoint (769px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  #adminMaintenanceView .admin-table {
    font-size: 0.8rem !important;
  }
  #adminMaintenanceView .admin-table th,
  #adminMaintenanceView .admin-table td {
    padding: 6px 8px !important;
  }
  .maint-split-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    align-items: flex-start !important;
  }
  .maint-editor-panel {
    flex: 1 1 52% !important;
    max-width: 52% !important;
    min-width: 0 !important;
  }
  .maint-preview-panel-container {
    flex: 1 1 48% !important;
    max-width: 48% !important;
    min-width: 0 !important;
    position: sticky !important;
    top: 10px !important;
  }
  .maint-preview-panel {
    max-height: calc(100vh - 120px) !important;
    padding: 1rem !important;
  }
}

/* --- Mobile Breakpoint (<= 768px) --- */
@media (max-width: 768px) {
  #adminMaintenanceView .admin-table th,
  #adminMaintenanceView .admin-table td {
    padding: 6px 6px !important;
    font-size: 0.76rem !important;
  }
  .maint-header-actions {
    width: 100% !important;
  }
  .maint-header-actions .btn {
    flex: 1 1 auto !important;
    font-size: 0.75rem !important;
    padding: 6px 8px !important;
  }
  .maint-split-layout {
    flex-direction: column !important;
  }
  .maint-editor-panel {
    width: 100% !important;
    max-width: 100% !important;
  }
  .maint-preview-panel-container {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
  }
  .maint-preview-panel {
    padding: 1rem !important;
    max-height: 550px !important;
  }
}

/* --- FHD Desktop Breakpoint (1367px - 1920px) --- */
@media (min-width: 1367px) and (max-width: 1920px) {
  .app-main-content:has(#maintenanceTab.active),
  .app-main-content:has(#adminMaintenanceView:not(.hidden)),
  .app-main-content.maint-layout-wide {
    max-width: 97vw !important;
    width: 97% !important;
    padding: 12px 18px !important;
  }
  .maint-split-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    align-items: flex-start !important;
  }
  .maint-editor-panel {
    flex: 1 1 54% !important;
    max-width: 55% !important;
  }
  .maint-preview-panel-container {
    flex: 1 1 46% !important;
    max-width: 45% !important;
    position: sticky !important;
    top: 20px !important;
  }
  .maint-preview-panel {
    padding: 1.6rem !important;
    max-height: calc(100vh - 130px) !important;
  }
}

/* --- 2K / 4K Ultra-wide Breakpoint (1921px+) --- */
@media (min-width: 1921px) {
  .app-main-content:has(#maintenanceTab.active),
  .app-main-content:has(#adminMaintenanceView:not(.hidden)),
  .app-main-content.maint-layout-wide {
    max-width: 96vw !important;
    width: 96% !important;
    padding: 16px 24px !important;
  }
  .maint-split-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 32px !important;
    align-items: flex-start !important;
  }
  .maint-editor-panel {
    flex: 1 1 52% !important;
    max-width: 53% !important;
  }
  .maint-preview-panel-container {
    flex: 1 1 48% !important;
    max-width: 47% !important;
    position: sticky !important;
    top: 25px !important;
  }
  .maint-preview-panel {
    padding: 2.2rem !important;
    max-height: calc(100vh - 140px) !important;
  }
  #adminMaintenanceView .admin-table th,
  #adminMaintenanceView .admin-table td {
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
  }
}

/* ========================================================================= */
/* 💬 MODEX COMMUNITY FORUM & REAL-TIME CHAT STYLES                          */
/* ========================================================================= */

.forum-hero-banner {
  background: linear-gradient(135deg, rgba(var(--primary-rgb, 255, 122, 0), 0.12), rgba(147, 51, 234, 0.08));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 30px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.forum-hero-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.forum-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.forum-hero-title-row h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -0.5px;
}

.forum-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.forum-hero-desc {
  margin: 0 0 12px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 650px;
  line-height: 1.45;
}

.forum-hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-color);
}

.forum-pill i {
  color: var(--primary-color);
}

.forum-user-status-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 220px;
}

.forum-user-status-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb, 255, 122, 0), 0.2);
}

/* --- FORUM LAYOUT --- */
.forum-main-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  min-height: 680px;
  margin-bottom: 40px;
  position: relative;
}

/* --- SIDEBAR DE SALAS --- */
.forum-rooms-sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 680px;
  overflow: hidden;
}

.forum-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.forum-sidebar-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
}

.forum-category-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.forum-category-filters::-webkit-scrollbar {
  display: none;
}

.forum-cat-filter {
  padding: 5px 9px;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.forum-cat-filter:hover {
  border-color: var(--primary-color);
  color: var(--text-color);
}

.forum-cat-filter.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
}

.forum-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.forum-room-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.forum-room-item:hover {
  background: rgba(var(--primary-rgb, 255, 122, 0), 0.06);
  border-color: rgba(var(--primary-rgb, 255, 122, 0), 0.25);
  transform: translateX(3px);
}

.forum-room-item.active {
  background: rgba(var(--primary-rgb, 255, 122, 0), 0.14);
  border-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(var(--primary-rgb, 255, 122, 0), 0.15);
}

.forum-room-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: all 0.2s;
}

.forum-room-item.active .forum-room-item-icon {
  background: var(--primary-color);
  color: #fff;
}

.forum-room-item-info {
  flex: 1;
  min-width: 0;
}

.forum-room-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.forum-room-item-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-room-badge {
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  background: #f97316;
  color: #fff;
  letter-spacing: 0.4px;
}

.forum-room-item-desc {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-msg-count-pill {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* --- CHAT AREA --- */
.forum-chat-area {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 680px;
  overflow: hidden;
}

.forum-chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.015);
}

.forum-current-room-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forum-mobile-rooms-toggle {
  display: none;
}

.forum-room-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb, 255, 122, 0), 0.12);
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

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

.forum-live-users-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

/* --- MESSAGES VIEWPORT --- */
.forum-messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.08);
}

.forum-messages-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.forum-empty-messages {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.forum-msg-row {
  display: flex;
  gap: 12px;
  max-width: 85%;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.forum-msg-row.msg-own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.forum-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #9333ea);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.forum-msg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forum-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.forum-msg-row.msg-own .forum-msg-meta {
  justify-content: flex-end;
}

.forum-msg-author {
  font-weight: 700;
  color: var(--text-color);
}

.forum-role-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.badge-superadmin {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.badge-admin {
  background: #ef4444;
  color: #fff;
}

.badge-tecnico {
  background: #3b82f6;
  color: #fff;
}

.badge-cm {
  background: #10b981;
  color: #fff;
}

.forum-msg-time {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.forum-msg-delete-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.72rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.forum-msg-delete-btn:hover {
  opacity: 1;
}

.forum-msg-inspect-btn {
  background: transparent;
  border: none;
  color: #a855f7;
  cursor: pointer;
  padding: 2px 5px;
  font-size: 0.85rem;
  opacity: 0.8;
  transition: all 0.2s;
  border-radius: 4px;
}

.forum-msg-inspect-btn:hover {
  opacity: 1;
  transform: scale(1.2);
  background: rgba(168, 85, 247, 0.15);
}

.forum-msg-text {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-color);
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.forum-msg-row.msg-own .forum-msg-text {
  background: linear-gradient(135deg, rgba(var(--primary-rgb, 255, 122, 0), 0.15), rgba(var(--primary-rgb, 255, 122, 0), 0.05));
  border-color: var(--primary-color);
}

/* --- INPUT DOCK --- */
.forum-input-dock {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-panel);
}

.forum-locked-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-color);
  flex-wrap: wrap;
}

.forum-message-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.forum-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.forum-user-avatar-small {
  position: absolute;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.forum-input-wrapper input {
  padding-left: 44px;
  padding-right: 65px;
  height: 44px;
  border-radius: 10px;
  font-size: 0.9rem;
  width: 100%;
}

.forum-char-counter {
  position: absolute;
  right: 12px;
  font-size: 0.68rem;
  color: var(--text-muted);
  pointer-events: none;
}

.forum-send-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
  .forum-main-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .forum-rooms-sidebar {
    height: auto;
    max-height: 280px;
  }
  .forum-chat-area {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .forum-hero-banner {
    padding: 16px;
  }
  .forum-hero-title-row h2 {
    font-size: 1.2rem;
  }
  .forum-mobile-rooms-toggle {
    display: inline-flex;
  }
  .forum-rooms-sidebar {
    display: none;
  }
  .forum-rooms-sidebar.open {
    display: flex;
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    bottom: 20px;
    z-index: 1500;
    max-height: calc(100vh - 100px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  }
  .forum-msg-row {
    max-width: 95%;
  }
  .forum-send-btn .send-btn-text {
    display: none;
  }
  .forum-send-btn {
    padding: 0 14px;
  }
}

@media (min-width: 1921px) {
  .forum-main-layout {
    grid-template-columns: 380px 1fr;
    height: 800px;
  }
  .forum-rooms-sidebar, .forum-chat-area {
    height: 800px;
  }
  .forum-msg-text {
    font-size: 1rem;
    padding: 12px 18px;
  }
}


/* ========================================================================= */
/* 🛡️ FORUM SAFETY, MODERATOR & ROOM MANAGEMENT STYLES                      */
/* ========================================================================= */

.badge-moderador {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.forum-room-badge.badge-female {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
}

.forum-room-badge.badge-minors {
  background: #f59e0b;
  color: #fff;
}

.forum-room-badge.badge-adults {
  background: #ef4444;
  color: #fff;
}

.forum-room-badge.badge-private {
  background: #3b82f6;
  color: #fff;
}

.forum-locked-room-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  height: 100%;
  min-height: 380px;
}

.forum-locked-card {
  max-width: 480px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}

.forum-room-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: all 0.2s;
  overflow: hidden;
}

.forum-room-item-icon img,
.forum-room-header-icon img,
.forum-manage-room-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.forum-locked-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px auto;
}

.forum-locked-icon.female {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border: 2px solid #ec4899;
}

.forum-locked-icon.age {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 2px solid #f59e0b;
}

.forum-locked-icon.private {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.btn-order-move {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
}

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


/* ========================================================================= */
/* 🎮 FORO MODEX - EMOJIS & STICKERS GAMING DOCK                            */
/* ========================================================================= */

.forum-emoji-picker-dock {
  position: absolute;
  bottom: 80px;
  left: 16px;
  right: 16px;
  max-width: 580px;
  margin: 0 auto;
  background: rgba(18, 19, 27, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 240, 255, 0.2);
  z-index: 1200;
  animation: forumEmojiPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes forumEmojiPopIn {
  0% { transform: translateY(15px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.emoji-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.emoji-picker-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.btn-close-emoji {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.btn-close-emoji:hover {
  color: #ff007f;
}

.emoji-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.emoji-category-tabs::-webkit-scrollbar {
  height: 4px;
}

.emoji-category-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.4);
  border-radius: 4px;
}

.emoji-cat-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.emoji-cat-tab:hover {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.3);
}

.emoji-cat-tab.active {
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  color: #0b0c10;
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.emoji-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
}

.emoji-grid-container::-webkit-scrollbar {
  width: 5px;
}

.emoji-grid-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f0ff, #ec4899);
  border-radius: 6px;
}

.emoji-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.emoji-item:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  transform: scale(1.22);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  z-index: 10;
}

.sticker-pill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(255, 122, 0, 0.4);
  color: #ff944d;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sticker-pill-item:hover {
  background: linear-gradient(135deg, #ff7a00, #ec4899);
  color: #ffffff;
  border-color: #ff7a00;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.5);
}

/* Botón de apertura de emojis en el dock de chat */
.forum-emoji-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #00f0ff;
  font-size: 1.15rem;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-emoji-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* ========================================================================= */
/* 💬 BURBUJAS DE CHAT ASIMÉTRICAS GAMING & DATE DIVIDERS                   */
/* ========================================================================= */

.forum-msg-row {
  display: flex;
  gap: 12px;
  max-width: 84%;
  align-self: flex-start;
  margin-bottom: 8px;
  animation: forumMsgSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes forumMsgSlideIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mensajes propios alineados a la derecha con acento naranja neón */
.forum-msg-row.msg-own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.forum-msg-row.msg-own .forum-msg-text {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.22) 0%, rgba(236, 72, 153, 0.12) 100%);
  border: 1px solid rgba(255, 122, 0, 0.45);
  border-radius: 16px 4px 16px 16px;
  box-shadow: 0 4px 18px rgba(255, 122, 0, 0.15);
}

.forum-msg-row.msg-own .forum-msg-author {
  display: none;
}

.forum-msg-text {
  background: rgba(26, 28, 38, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px 16px 16px 16px;
  padding: 10px 14px 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-color);
  word-break: break-word;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

/* Separadores de fecha */
.forum-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 12px 0;
  position: relative;
  width: 100%;
}

.forum-date-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.forum-date-divider span {
  position: relative;
  background: var(--bg-panel, #121217);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  padding: 3px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Botón flotante scroll inteligente */
.forum-scroll-bottom-btn {
  position: absolute;
  bottom: 85px;
  right: 25px;
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  color: #0b0c10;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.forum-scroll-bottom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.6);
}

/* ========================================================================= */
/* 🛡️ BADGES DE SALAS Y GÉNERO NEÓN                                         */
/* ========================================================================= */

.badge-female,
.forum-room-badge.badge-female {
  background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
  animation: safeSpacePulse 2.5s infinite;
}

@keyframes safeSpacePulse {
  0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(236, 72, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

.badge-minors,
.forum-room-badge.badge-minors {
  background: linear-gradient(135deg, #06b6d4, #10b981) !important;
  color: #0b0c10 !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.35);
}

.badge-adults,
.forum-room-badge.badge-adults {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

/* Banner de bienvenida para la sala segura de mujeres */
.forum-welcome-safe-banner {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
}

.forum-welcome-safe-banner .banner-icon {
  font-size: 2rem;
  color: #f472b6;
  flex-shrink: 0;
}

.forum-welcome-safe-banner h4 {
  margin: 0 0 3px 0;
  color: #f472b6;
  font-size: 1rem;
}

.forum-welcome-safe-banner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}


/* ========================================================================= */
/* 🎮 ICONIFY GAMING HUB & LOGOS OFICIALES (LOL, CS2, VALORANT, FORTNITE, STEAM, GAME PASS) */
/* ========================================================================= */

.gaming-hub-section {
  margin: 40px 0 25px;
}

.gaming-hub-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 680px;
  margin: -10px auto 25px;
  line-height: 1.5;
}

.gaming-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .gaming-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gaming-hub-grid {
    grid-template-columns: 1fr;
  }
}

.gaming-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gaming-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gaming-card-glow {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.25;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gaming-card:hover .gaming-card-glow {
  opacity: 0.55;
}

.gaming-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

.gaming-card:hover .gaming-card-icon {
  transform: scale(1.12);
}

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

.gaming-card-info h4 {
  margin: 0 0 3px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gaming-card-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.gaming-card-action {
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.gaming-card:hover .gaming-card-action {
  opacity: 1;
  transform: translateX(4px);
}

/* Colores de Marca Gaming */
/* 1. League of Legends */
.lol-card .gaming-card-glow { background: #C8AA6E; }
.lol-card .gaming-card-icon { background: rgba(200, 170, 110, 0.12); border: 1px solid rgba(200, 170, 110, 0.4); color: #C8AA6E; }
.lol-card:hover { border-color: rgba(200, 170, 110, 0.6); }
.lol-card .gaming-card-action { color: #C8AA6E; }

/* 2. CS2 */
.cs2-card .gaming-card-glow { background: #DE9B35; }
.cs2-card .gaming-card-icon { background: rgba(222, 155, 53, 0.12); border: 1px solid rgba(222, 155, 53, 0.4); color: #DE9B35; }
.cs2-card:hover { border-color: rgba(222, 155, 53, 0.6); }
.cs2-card .gaming-card-action { color: #DE9B35; }

/* 3. Valorant */
.val-card .gaming-card-glow { background: #FF4655; }
.val-card .gaming-card-icon { background: rgba(255, 70, 85, 0.12); border: 1px solid rgba(255, 70, 85, 0.4); color: #FF4655; }
.val-card:hover { border-color: rgba(255, 70, 85, 0.6); }
.val-card .gaming-card-action { color: #FF4655; }

/* 4. Fortnite */
.fn-card .gaming-card-glow { background: #0078F2; }
.fn-card .gaming-card-icon { background: rgba(0, 120, 242, 0.12); border: 1px solid rgba(0, 120, 242, 0.4); color: #0078F2; }
.fn-card:hover { border-color: rgba(0, 120, 242, 0.6); }
.fn-card .gaming-card-action { color: #0078F2; }

/* 5. Steam */
.steam-card .gaming-card-glow { background: #66C0F4; }
.steam-card .gaming-card-icon { background: rgba(102, 192, 244, 0.12); border: 1px solid rgba(102, 192, 244, 0.4); color: #66C0F4; }
.steam-card:hover { border-color: rgba(102, 192, 244, 0.6); }
.steam-card .gaming-card-action { color: #66C0F4; }

/* 6. Xbox Game Pass */
.gamepass-card .gaming-card-glow { background: #107C10; }
.gamepass-card .gaming-card-icon { background: rgba(16, 124, 16, 0.14); border: 1px solid rgba(16, 124, 16, 0.45); color: #107C10; }
.gamepass-card:hover { border-color: rgba(16, 124, 16, 0.6); }
.gamepass-card .gaming-card-action { color: #107C10; }

/* Tira de Marcas Oficiales en Forum Hero */
.forum-official-brands-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brands-strip-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.brands-strip-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-strip-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.brand-strip-item iconify-icon {
  font-size: 1.05rem;
}

.brand-strip-item:hover {
  transform: translateY(-2px);
}

.brand-strip-item.lol:hover { border-color: #C8AA6E; color: #C8AA6E; background: rgba(200, 170, 110, 0.12); }
.brand-strip-item.cs2:hover { border-color: #DE9B35; color: #DE9B35; background: rgba(222, 155, 53, 0.12); }
.brand-strip-item.val:hover { border-color: #FF4655; color: #FF4655; background: rgba(255, 70, 85, 0.12); }
.brand-strip-item.fn:hover { border-color: #0078F2; color: #0078F2; background: rgba(0, 120, 242, 0.12); }
.brand-strip-item.steam:hover { border-color: #66C0F4; color: #66C0F4; background: rgba(102, 192, 244, 0.12); }
.brand-strip-item.gamepass:hover { border-color: #107C10; color: #107C10; background: rgba(16, 124, 16, 0.12); }

/* Badges oficiales en mensajes del chat */
.forum-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1.3;
  margin: 0 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
}

.forum-official-badge iconify-icon {
  font-size: 1.05rem;
  vertical-align: middle;
}

.forum-official-badge.lol {
  background: rgba(200, 170, 110, 0.15);
  color: #f1cf88;
  border-color: rgba(200, 170, 110, 0.4);
}

.forum-official-badge.cs2 {
  background: rgba(222, 155, 53, 0.15);
  color: #f5b041;
  border-color: rgba(222, 155, 53, 0.4);
}

.forum-official-badge.val {
  background: rgba(255, 70, 85, 0.15);
  color: #ff6b77;
  border-color: rgba(255, 70, 85, 0.4);
}

.forum-official-badge.fn {
  background: rgba(0, 120, 242, 0.15);
  color: #38bdf8;
  border-color: rgba(0, 120, 242, 0.4);
}

.forum-official-badge.steam {
  background: rgba(102, 192, 244, 0.15);
  color: #7dd3fc;
  border-color: rgba(102, 192, 244, 0.4);
}

.forum-official-badge.gamepass {
  background: rgba(16, 124, 16, 0.18);
  color: #4ade80;
  border-color: rgba(16, 124, 16, 0.5);
}

/* Tags de iconos oficiales dentro de las cards de salas */
.forum-room-game-icons {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 5px;
  flex-wrap: wrap;
}

.forum-room-game-icon-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.forum-room-game-icon-tag iconify-icon {
  font-size: 0.82rem;
}

.iconify-sticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


/* ==========================================================================
   MODEX ADVANCED OPTIMIZATIONS: CTA PRE-SCROLL, FAQS, REVIEWS, MAPS, MOBILE CTA
   ========================================================================== */

/* 1. CTA PRE-SCROLL */
.pre-scroll-cta {
  margin: 10px 0 20px 0;
  padding: 0;
}
.pre-scroll-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pre-scroll-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-color, #f1f5f9);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pre-scroll-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.15);
}
.pre-scroll-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.icon-outlet { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-builder { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.icon-local { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-wa { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }

.pre-scroll-text {
  display: flex;
  flex-direction: column;
}
.pre-scroll-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}
.pre-scroll-text span {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
}
.pre-scroll-cta-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(14, 19, 31, 0.9));
  border-color: rgba(34, 197, 94, 0.3);
}
.pre-scroll-cta-btn:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

/* 2. CASOS DE ESTUDIO */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.case-study-card {
  background: var(--bg-card, #0e131f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.case-study-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.case-study-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  width: fit-content;
  margin-bottom: 12px;
}
.case-study-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.case-study-desc {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}
.case-study-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.case-study-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
}
.case-study-result {
  padding: 12px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #e2e8f0;
}

/* 3. 5 FAQS ACCORDION */
.faq-accordion-container {
  max-width: 900px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card, #0e131f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover, .faq-item.active {
  border-color: var(--primary-color, #3b82f6);
}
.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  gap: 12px;
}
.faq-question .faq-icon {
  font-size: 0.85rem;
  color: var(--primary-color, #3b82f6);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.15);
  padding: 0 20px;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px 20px;
}
.faq-answer p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

/* 4. RESEÑAS REALES */
.rating-header-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.95rem;
}
.rating-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
}
.stars-row {
  color: #fbbf24;
  font-size: 1.1rem;
  display: flex;
  gap: 2px;
}
.rating-count {
  color: var(--text-muted, #94a3b8);
  font-size: 0.88rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.review-card {
  background: var(--bg-card, #0e131f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.reviewer-info {
  display: flex;
  flex-direction: column;
}
.reviewer-info strong {
  font-size: 0.95rem;
  color: #fff;
}
.review-date {
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
}
.review-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}
.review-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 14px;
  flex-grow: 1;
}
.review-tag {
  font-size: 0.75rem;
  color: var(--primary-color, #3b82f6);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
}

/* 5. LOCAL FÍSICO Y MAPA */
.location-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 860px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}
.location-info-card {
  background: var(--bg-card, #0e131f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
  width: fit-content;
  margin-bottom: 12px;
}
.location-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}
.location-detail-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.location-detail-item i {
  font-size: 1.2rem;
  color: var(--primary-color, #3b82f6);
  margin-top: 3px;
  flex-shrink: 0;
}
.location-detail-item strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 2px;
}
.location-detail-item p {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
  margin: 0;
}
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.location-map-card {
  background: var(--bg-card, #0e131f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
}
.location-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

/* 6. FOOTER ENRIQUECIDO */
.app-footer {
  background: #07090e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding: 45px 20px 20px;
  color: var(--text-color, #f1f5f9);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 960px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}
.footer-brand-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand-title span {
  color: #06b6d4;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-ssl-link {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  margin-top: 6px;
}
.footer-ssl-link:hover {
  color: var(--primary-color, #3b82f6);
}
.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--primary-color, #3b82f6);
}
.footer-nav-list, .footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-list a {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.2s;
}
.footer-nav-list a:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-nav-list a i {
  font-size: 0.7rem;
  color: var(--primary-color, #3b82f6);
}
.footer-contact-list li {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.footer-contact-list i {
  color: var(--primary-color, #3b82f6);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-privacy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #38bdf8;
  text-decoration: none;
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  transition: background 0.2s;
}
.footer-privacy-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}
.footer-bottom {
  max-width: 1200px;
  margin: 35px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}
.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-credits a {
  color: var(--primary-color, #3b82f6);
  text-decoration: none;
}

/* 7. CTA MÓVIL STICKY BOTTOM BAR */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
  }
  body:not([class*="print-mode-"]) {
    padding-bottom: 65px; /* Espacio para que la barra no tape el contenido */
  }
}
.mobile-cta-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-width: 55px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: color 0.2s, transform 0.15s;
}
.mobile-cta-btn i {
  font-size: 1.15rem;
}
.mobile-cta-btn:active, .mobile-cta-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}
.mobile-wa-btn {
  color: #22c55e !important;
}
.cart-badge-mobile {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
}

/* 8. BOTÓN Y MODAL DE RESPUESTAS RÁPIDAS */
.quick-answers-float-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 995;
}
@media screen and (max-width: 768px) {
  .quick-answers-float-container {
    bottom: 70px;
    right: 14px;
  }
}
.quick-answers-float-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.quick-answers-float-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.6);
}
@media (max-width: 480px) {
  .quick-float-text {
    display: none;
  }
  .quick-answers-float-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
.quick-faq-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-pill-btn {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-color, #f1f5f9);
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.quick-pill-btn:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--primary-color, #3b82f6);
}
.quick-pill-btn i {
  color: #38bdf8;
}
.quick-answer-card {
  padding: 16px;
  background: rgba(14, 19, 31, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  animation: fadeIn 0.25s ease-in;
}

/* 9. SOCIAL SHARE MODAL */
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.share-btn {
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  transition: transform 0.2s, filter 0.2s;
}
.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.share-wa { background: #16a34a; }
.share-tg { background: #0284c7; }
.share-fb { background: #1877f2; }
.share-tw { background: #000000; border: 1px solid rgba(255,255,255,0.2); }


/* SHOWCASE LOCAL SHOWROOM Y MAPA */
.location-showcase-card {
  background: var(--bg-card, #0e131f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.location-showcase-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  gap: 8px;
}
.loc-tab-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.loc-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.loc-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}
.loc-view-panel {
  display: flex;
  flex-direction: column;
  height: 380px;
}
.showroom-img-container {
  position: relative;
  width: 100%;
  height: 380px;
  background: #070a14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.showroom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.3s ease;
}
.showroom-img-container:hover .showroom-img {
  transform: scale(1.02);
}
.showroom-badges-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}
.showroom-pill {
  padding: 5px 10px;
  background: rgba(7, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.showroom-pill-action {
  background: #f59e0b !important;
  color: #070a14 !important;
  font-weight: 800 !important;
  border-color: #f59e0b !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.showroom-pill-action:hover {
  background: #fbbf24 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.showroom-pill i {
  color: #06b6d4;
}
.osm-map-container {
  width: 100%;
  height: 380px;
}
.osm-map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
}
.icon-maintenance {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Compact button for feature cards */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: 8px;
}
.feature-card p {
  margin-bottom: auto;
}



/* ========================================================================= */
/* REALTIME ANALYTICS DASHBOARD (CLARITY / GA LIVE STYLE) */
/* ========================================================================= */

.live-pulse-badge {
  background: #10b981;
  color: #070a14;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.admin-analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-title-wrap h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.analytics-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 600;
}

.live-dot-ping {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 4 KPI CARDS */
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 1024px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .analytics-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-kpi-card {
  background: var(--bg-card, #0e131f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.analytics-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.kpi-live-online {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(14, 19, 31, 0.95) 100%);
}

.kpi-icon-glow {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kpi-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #94a3b8);
  font-weight: 700;
  margin-bottom: 4px;
}

.kpi-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-live-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseDot 1.6s infinite;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  font-family: var(--font-title);
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 3px;
}

.device-split-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.device-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  overflow: hidden;
}

.device-bar-fill {
  height: 100%;
  background: #a855f7;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* EXPANDED LIVE ONLINE KPI CARD WITH HISTORICAL BREAKDOWN */
.kpi-card-expanded {
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 16px !important;
  gap: 12px !important;
}

.kpi-main-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-historical-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 6px;
  margin-top: 2px;
}

.kpi-hist-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.kpi-hist-item:last-child {
  border-right: none;
}

.kpi-hist-item.hist-total {
  background: rgba(34, 197, 94, 0.08);
  border-radius: 6px;
  border-right: none;
}

.hist-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.hist-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f1f5f9;
}
.kpi-hist-item.hist-total .hist-val {
  color: #4ade80;
}

.kpi-records-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  padding-top: 2px;
}

.record-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #fef08a;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}
.record-badge i {
  color: #eab308;
}
.record-badge strong {
  color: #fff;
}

/* HISTORICAL DEVICES BREAKDOWN STYLES */
.kpi-card-devices {
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 16px !important;
  gap: 12px !important;
}

.device-history-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.device-hist-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.4px;
}
.device-hist-title i {
  color: #38bdf8;
  margin-right: 3px;
}

.device-hist-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.device-bar-track.hist-track {
  height: 7px;
  background: rgba(56, 189, 248, 0.25);
}

.device-bar-fill.hist-fill {
  background: linear-gradient(90deg, #c084fc 0%, #a855f7 100%);
}

.device-hist-meta {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}
.device-hist-meta strong {
  color: #38bdf8;
}

/* PRODUCT DUAL METRICS (VIEWS + CART) */
.product-rank-row {
  position: relative;
}

.panel-desc-mini {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.product-dual-count {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  justify-content: flex-end;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.count-badge.count-view {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.count-badge.count-cart {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* 2-COLUMN MAIN LAYOUT */
.analytics-dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 22px;
}
@media (max-width: 1100px) {
  .analytics-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-panel {
  background: var(--bg-card, #0e131f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.panel-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  color: #cbd5e1;
}
.panel-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}
.panel-desc {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ZONE RETENTION PROGRESS LIST */
.zone-progress-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zone-progress-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zone-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.zone-label-col {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}
.zone-label-col i {
  color: var(--primary-color, #38bdf8);
  width: 16px;
  text-align: center;
}

.zone-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.pulse-dot-mini {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseDot 1.4s infinite;
}

.zone-idle-chip {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
}

.zone-time-col {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.zone-time-col span {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}
.zone-time-col small {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

.zone-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.zone-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #06b6d4 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* SUB GRID: CATEGORIES & PRODUCTS */
.analytics-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 768px) {
  .analytics-sub-grid {
    grid-template-columns: 1fr;
  }
}

.top-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}

.top-ranking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
}

.rank-pos {
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  width: 22px;
}

.rank-name {
  flex: 1;
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.rank-bar-wrap {
  width: 70px;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  background: #06b6d4;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.rank-bar-fill.fill-product {
  background: #a855f7;
}

.rank-count {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 700;
  min-width: 55px;
  text-align: right;
}

.analytics-empty-hint {
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  text-align: center;
  padding: 30px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* VISITORS TABLE */
.analytics-visitors-table th, .analytics-visitors-table td {
  padding: 10px 12px;
  font-size: 0.84rem;
}
.visitor-user {
  color: #22d3ee;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.visitor-anon {
  color: #94a3b8;
  font-family: monospace;
  font-weight: 600;
}
.visitor-sec-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  text-transform: capitalize;
}

/* LIVE STREAM FEED (CLARITY STYLE) */
.live-stream-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 780px;
}

.stream-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.stream-live-tag i {
  font-size: 0.5rem;
  animation: pulseDot 1.2s infinite;
}

.live-stream-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}

.stream-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}
.stream-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.stream-item-new {
  animation: streamSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.06);
}

@keyframes streamSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.stream-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.stream-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stream-text {
  font-size: 0.85rem;
  color: #f1f5f9;
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
}

.stream-meta {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}
.stream-time, .stream-device {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stream-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted, #94a3b8);
}
.stream-empty i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary-color);
  opacity: 0.5;
}

/* ========================================================================= */
/* MODO DÍA / LIGHT THEME ADAPTATIONS (Componentes agregados hoy)           */
/* ========================================================================= */

:root:not([data-theme="dark"]),
[data-theme="light"] {
  /* 1. Pre-Scroll CTA Cards */
  .pre-scroll-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    color: #111827 !important;
  }
  .pre-scroll-item:hover {
    border-color: rgba(249, 115, 22, 0.45) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(249, 115, 22, 0.12) !important;
  }
  .pre-scroll-text strong {
    color: #111827 !important;
  }
  .pre-scroll-text span {
    color: #64748b !important;
  }
  .pre-scroll-cta-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), #ffffff) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
  }

  /* 2. Casos de Estudio */
  .case-study-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  }
  .case-study-card:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
  }
  .case-study-card h3 {
    color: #111827 !important;
  }
  .case-study-desc {
    color: #4b5563 !important;
  }
  .case-study-specs span {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
  }
  .case-study-result {
    background: #eff6ff !important;
    border-left-color: #3b82f6 !important;
    color: #1e40af !important;
  }

  /* 3. FAQs Accordion */
  .faq-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }
  .faq-item:hover, .faq-item.active {
    border-color: var(--primary-color) !important;
  }
  .faq-question {
    color: #111827 !important;
  }
  .faq-answer {
    background: #f8fafc !important;
  }
  .faq-answer p {
    color: #4b5563 !important;
  }

  /* 4. Reseñas Reales */
  .review-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }
  .reviewer-info strong {
    color: #111827 !important;
  }
  .review-text {
    color: #4b5563 !important;
  }

  /* 5. Local Físico & Showcase / Showroom / Mapa */
  .location-info-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
  }
  .location-info-card h3 {
    color: #111827 !important;
  }
  .location-detail-item strong {
    color: #111827 !important;
  }
  .location-detail-item p {
    color: #4b5563 !important;
  }
  .location-showcase-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
  }
  .location-showcase-tabs {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .loc-tab-btn {
    color: #64748b !important;
  }
  .loc-tab-btn:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
  }
  .loc-tab-btn.active {
    color: #0284c7 !important;
    background: rgba(14, 165, 233, 0.1) !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
  }
  .showroom-img-container {
    background: #f1f5f9 !important;
  }
  .showroom-pill {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }
  .showroom-pill i {
    color: #0284c7 !important;
  }

  /* 6. Footer Enriquecido */
  .app-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #4b5563 !important;
  }
  .footer-brand-title {
    color: #111827 !important;
  }
  .footer-col-title {
    color: #111827 !important;
  }
  .footer-brand-desc {
    color: #6b7280 !important;
  }
  .footer-nav-list a {
    color: #64748b !important;
  }
  .footer-nav-list a:hover {
    color: #111827 !important;
  }
  .footer-contact-list li {
    color: #64748b !important;
  }
  .footer-bottom {
    border-top: 1px solid #e2e8f0 !important;
    color: #94a3b8 !important;
  }
  .footer-privacy-btn {
    background: rgba(14, 165, 233, 0.08) !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
    color: #0284c7 !important;
  }

  /* 7. Mobile CTA Bottom Bar */
  .mobile-cta-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
  }
  .mobile-cta-btn {
    color: #64748b !important;
  }
  .mobile-cta-btn:active,
  .mobile-cta-btn:hover {
    color: #111827 !important;
  }

  /* 8. Botón Flotante y Respuestas Rápidas */
  .quick-pill-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
  }
  .quick-pill-btn:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
  }
  .quick-answer-card {
    background: #ffffff !important;
    border: 1px solid #38bdf8 !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08) !important;
  }
  .quick-answer-card p {
    color: #374151 !important;
  }

  /* 9. Monitoreo en Vivo (Admin Analytics Dashboard) */
  .admin-analytics-header {
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .analytics-title-wrap h3 {
    color: #111827 !important;
  }
  .analytics-kpi-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }
  .analytics-kpi-card:hover {
    border-color: rgba(249, 115, 22, 0.3) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07) !important;
  }
  .kpi-live-online {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, #ffffff 100%) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
  }
  .kpi-value {
    color: #111827 !important;
  }
  .kpi-label {
    color: #64748b !important;
  }
  .kpi-subtext {
    color: #64748b !important;
  }
  .device-split-wrap {
    color: #374151 !important;
  }
  .device-bar-track {
    background: #e2e8f0 !important;
  }
  .analytics-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }
  .panel-header h4 {
    color: #111827 !important;
  }
  .panel-badge {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
  }
  .panel-counter {
    color: #0284c7 !important;
    background: rgba(14, 165, 233, 0.12) !important;
  }
  .panel-desc {
    color: #64748b !important;
  }
  .zone-label-col {
    color: #1e293b !important;
  }
  .zone-time-col span {
    color: #111827 !important;
  }
  .zone-time-col small {
    color: #64748b !important;
  }
  .zone-bar-track {
    background: #f1f5f9 !important;
  }
  .zone-idle-chip {
    color: #64748b !important;
  }
  .rank-pos {
    color: #94a3b8 !important;
  }
  .rank-name {
    color: #1e293b !important;
  }
  .rank-bar-wrap {
    background: #e2e8f0 !important;
  }
  .rank-count {
    color: #475569 !important;
  }
  .analytics-empty-hint {
    color: #94a3b8 !important;
  }
  .analytics-visitors-table th {
    color: #1e293b !important;
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
  }
  .analytics-visitors-table td {
    color: #374151 !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  .visitor-anon {
    color: #64748b !important;
  }
  .visitor-sec-badge {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0284c7 !important;
  }
  .stream-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
  }
  .stream-item:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
  }
  .stream-item-new {
    background: rgba(14, 165, 233, 0.08) !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
  }
  .stream-text {
    color: #1e293b !important;
  }
  .stream-meta {
    color: #64748b !important;
  }
  .stream-empty {
    color: #94a3b8 !important;
  .kpi-historical-grid {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
  }
  .kpi-hist-item {
    border-right-color: #e2e8f0 !important;
  }
  .hist-label {
    color: #64748b !important;
  }
  .hist-val {
    color: #0f172a !important;
  }
  .kpi-hist-item.hist-total {
    background: rgba(34, 197, 94, 0.15) !important;
  }
  .kpi-hist-item.hist-total .hist-val {
    color: #16a34a !important;
  }
  .record-badge {
    background: #fef9c3 !important;
    border-color: #fde047 !important;
    color: #854d0e !important;
  }
  .record-badge strong {
    color: #713f12 !important;
  }
  .device-history-section {
    border-top-color: #e2e8f0 !important;
  }
  .device-hist-title {
    color: #64748b !important;
  }
  .device-hist-labels {
    color: #1e293b !important;
  }
  .device-hist-meta {
    color: #64748b !important;
  }
  .count-badge.count-view {
    background: #f3e8ff !important;
    color: #7e22ce !important;
    border-color: #d8b4fe !important;
  }
  .count-badge.count-cart {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
  }
  }
}




/* ========================================================================= */
/* 🖨️ BLINDAJE FINAL DE IMPRESIÓN (PRIORIDAD MÁXIMA EN CASCADA CSS)           */
/* ========================================================================= */
@media print {
  .mobile-cta-bar,
  #mobileBottomBar,
  .quick-answers-float-container,
  .quick-answers-float-btn,
  #quickAnswersModal,
  .whatsapp-widget,
  #whatsappWidget,
  .floating-wa,
  .floating-whatsapp-btn,
  .floating-buttons,
  .theme-programador-top-banner,
  .programador-lang-ribbon,
  .programador-lang-hud,
  .programador-matrix-overlay,
  #theme-top-banner,
  #gamer-top-strip,
  #anime-energy-strip,
  .anime-hud-banner,
  .no-print {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
  }
  body, html {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}


/* =============================================================================
   ESTILOS PARA PESTAÑA /CARRITO & COMPARADOR DE PRESUPUESTOS
   ============================================================================= */

.cart-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.cart-tab-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.budget-tabs-container {
  margin-bottom: 25px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.budget-tabs-nav {
  display: flex;
  gap: 12px;
  min-width: max-content;
}

.budget-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  min-width: 190px;
  color: var(--text-color);
}

.budget-tab-btn:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
  transform: translateY(-2px);
}

.budget-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(2, 132, 199, 0.1));
  border-color: #38bdf8;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

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

.tab-header-line .tab-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.badge-active-tag {
  background: #10b981;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tab-sub-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tab-price-tag {
  font-weight: 700;
  color: #38bdf8;
}

.budget-tab-btn.compare-tab-btn {
  border-style: dashed;
  border-color: rgba(34, 211, 238, 0.4);
}

.budget-tab-btn.compare-tab-btn.active {
  border-style: solid;
  border-color: #22d3ee;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(6, 182, 212, 0.1));
}

/* Layout del carrito individual */
.cart-full-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 25px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .cart-full-layout {
    grid-template-columns: 1fr;
  }
}

.budget-management-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.budget-info-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-name-display {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
}

.btn-icon-subtle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  transition: color 0.2s;
}

.btn-icon-subtle:hover {
  color: #38bdf8;
}

.budget-active-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.budget-active-status-badge.active-ok {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.budget-active-status-badge.active-sec {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.budget-actions-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.budget-dropdown-wrap {
  position: relative;
}

.budget-duplicate-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 100;
  min-width: 170px;
  overflow: hidden;
}

.budget-duplicate-menu .dup-item {
  padding: 9px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-color);
}

.budget-duplicate-menu .dup-item:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

/* Tarjetas de productos expandidas */
.full-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-card-expanded {
  display: flex;
  gap: 18px;
  padding: 16px;
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.cart-item-card-expanded:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.item-card-thumb {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.item-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.item-card-thumb:hover img {
  transform: scale(1.08);
}

.item-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.item-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  line-height: 1.35;
  transition: color 0.2s;
}

.item-card-title:hover {
  color: #38bdf8;
}

.btn-remove-expanded {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-remove-expanded:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.item-card-tags {
  display: flex;
  gap: 8px;
  margin: 6px 0 10px 0;
}

.tag-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.tag-warranty {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.item-card-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.price-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 3px;
}

.qty-stepper button {
  background: none;
  border: none;
  color: var(--text-color);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.qty-stepper button:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.qty-num {
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.subtotal-val {
  font-size: 1.1rem;
  color: #38bdf8;
}

.item-card-bottom-bar {
  margin-top: 10px;
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.copy-to-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-subtle-opt {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 0.75rem;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-subtle-opt:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

/* Sidebar de Cotización Sticky */
.cart-summary-sidebar {
  position: sticky;
  top: 90px;
}

.cart-summary-card {
  padding: 22px;
  border-radius: 14px;
}

.summary-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-budget-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.summary-rows {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.summary-row-mini {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.total-cash-price {
  font-size: 1.35rem;
  color: #10b981;
}

.summary-secondary-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.btn-link-action {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-link-action:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.btn-link-action.btn-print-budget {
  color: #38bdf8;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 5px 10px;
}

.btn-link-action.btn-print-budget:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Empty State */
.cart-empty-full {
  text-align: center;
  padding: 50px 25px;
  border-radius: 14px;
}

.cart-empty-full .empty-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 16px;
}

.cart-empty-full h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.cart-empty-full p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

/* Vista Comparativa Lado a Lado */
.compare-header-banner {
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.compare-header-banner h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-header-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.compare-card {
  padding: 22px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.compare-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.card-active-border {
  border-color: #38bdf8 !important;
}

.card-cheapest-border {
  border-color: #10b981 !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.compare-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.compare-card-title-row h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.tag-active-pill {
  background: #0284c7;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

.cheapest-trophy-badge {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.diff-tag-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.compare-price-block {
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 12px 0;
}

.compare-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.compare-price-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
  margin: 4px 0;
}

.compare-count-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compare-actions-row {
  margin-bottom: 16px;
}

.compare-items-preview {
  flex: 1;
}

.preview-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.empty-preview-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
}

.preview-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  gap: 8px;
}

.preview-list .it-qty {
  font-weight: 700;
  color: #38bdf8;
  min-width: 22px;
}

.preview-list .it-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
}

.preview-list .it-price {
  font-weight: 600;
  color: var(--text-muted);
}

/* =============================================================================
   MODO DÍA (LIGHT THEME) — OPTIMIZACIONES EXCLUSIVAS PARA MI CARRITO Y PRESUPUESTOS
   ============================================================================= */

:root:not([data-theme="dark"]) #cartTab,
[data-theme="light"] #cartTab {
  color: #0f172a;
}

/* 1. Encabezado de la pestaña y acciones superiores */
:root:not([data-theme="dark"]) #cartTab .cart-tab-header h2,
[data-theme="light"] #cartTab .cart-tab-header h2 {
  color: #0f172a;
}

:root:not([data-theme="dark"]) #cartTab .cart-tab-header h2 i,
[data-theme="light"] #cartTab .cart-tab-header h2 i {
  color: #0284c7 !important;
}

:root:not([data-theme="dark"]) #cartTab .cart-tab-subtitle,
[data-theme="light"] #cartTab .cart-tab-subtitle {
  color: #64748b;
}

:root:not([data-theme="dark"]) #cartTab .btn-share-budget,
[data-theme="light"] #cartTab .btn-share-budget {
  background: #faf5ff;
  border-color: #d8b4fe !important;
  color: #7e22ce !important;
}

:root:not([data-theme="dark"]) #cartTab .btn-share-budget:hover,
[data-theme="light"] #cartTab .btn-share-budget:hover {
  background: #f3e8ff;
  border-color: #7e22ce !important;
  color: #6b21a8 !important;
}

:root:not([data-theme="dark"]) #cartTab .btn-budget-help,
[data-theme="light"] #cartTab .btn-budget-help {
  background: #f0f9ff;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}

:root:not([data-theme="dark"]) #cartTab .btn-budget-help:hover,
[data-theme="light"] #cartTab .btn-budget-help:hover {
  background: #e0f2fe;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

:root:not([data-theme="dark"]) #cartTab .cart-tab-header-actions .btn-outline,
[data-theme="light"] #cartTab .cart-tab-header-actions .btn-outline {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

:root:not([data-theme="dark"]) #cartTab .cart-tab-header-actions .btn-outline:hover,
[data-theme="light"] #cartTab .cart-tab-header-actions .btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* 2. Pestañas de Presupuestos (Presupuesto 1, 2, 3 y Comparar) */
:root:not([data-theme="dark"]) .budget-tab-btn,
[data-theme="light"] .budget-tab-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

:root:not([data-theme="dark"]) .budget-tab-btn .tab-name,
[data-theme="light"] .budget-tab-btn .tab-name {
  color: #0f172a;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .budget-tab-btn .tab-sub-line,
[data-theme="light"] .budget-tab-btn .tab-sub-line {
  color: #64748b;
}

:root:not([data-theme="dark"]) .budget-tab-btn .tab-price-tag,
[data-theme="light"] .budget-tab-btn .tab-price-tag {
  color: #0284c7;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .budget-tab-btn .fa-layer-group,
[data-theme="light"] .budget-tab-btn .fa-layer-group {
  color: #0284c7 !important;
}

:root:not([data-theme="dark"]) .budget-tab-btn:hover,
[data-theme="light"] .budget-tab-btn:hover {
  border-color: #0284c7;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}

:root:not([data-theme="dark"]) .budget-tab-btn.active,
[data-theme="light"] .budget-tab-btn.active {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.18);
}

:root:not([data-theme="dark"]) .budget-tab-btn.active .tab-name,
[data-theme="light"] .budget-tab-btn.active .tab-name {
  color: #0369a1;
}

:root:not([data-theme="dark"]) .budget-tab-btn.active .tab-price-tag,
[data-theme="light"] .budget-tab-btn.active .tab-price-tag {
  color: #0284c7;
  font-weight: 800;
}

:root:not([data-theme="dark"]) .budget-tab-btn.compare-tab-btn,
[data-theme="light"] .budget-tab-btn.compare-tab-btn {
  background: #ffffff;
  border: 1.5px dashed #06b6d4;
  color: #0891b2;
}

:root:not([data-theme="dark"]) .budget-tab-btn.compare-tab-btn:hover,
[data-theme="light"] .budget-tab-btn.compare-tab-btn:hover {
  background: #ecfeff;
  border-color: #0891b2;
}

:root:not([data-theme="dark"]) .budget-tab-btn.compare-tab-btn.active,
[data-theme="light"] .budget-tab-btn.compare-tab-btn.active {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border-color: #0891b2;
  border-style: solid;
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.18);
  color: #0e7490;
}

/* 3. Barra de Gestión del Presupuesto Seleccionado */
:root:not([data-theme="dark"]) #cartTab .budget-management-bar,
[data-theme="light"] #cartTab .budget-management-bar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) #currentBudgetName,
[data-theme="light"] #currentBudgetName {
  color: #0f172a;
  font-weight: 800;
}

:root:not([data-theme="dark"]) .budget-info-meta .btn-icon-subtle,
[data-theme="light"] .budget-info-meta .btn-icon-subtle {
  color: #64748b;
}

:root:not([data-theme="dark"]) .budget-info-meta .btn-icon-subtle:hover,
[data-theme="light"] .budget-info-meta .btn-icon-subtle:hover {
  color: #0284c7;
  background: #f0f9ff;
  border-radius: 4px;
}

:root:not([data-theme="dark"]) .budget-active-status-badge.active-ok,
[data-theme="light"] .budget-active-status-badge.active-ok {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

:root:not([data-theme="dark"]) .budget-active-status-badge.active-sec,
[data-theme="light"] .budget-active-status-badge.active-sec {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

:root:not([data-theme="dark"]) .budget-sort-select,
[data-theme="light"] .budget-sort-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

:root:not([data-theme="dark"]) .budget-sort-select:hover,
[data-theme="light"] .budget-sort-select:hover,
:root:not([data-theme="dark"]) .budget-sort-select:focus,
[data-theme="light"] .budget-sort-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

:root:not([data-theme="dark"]) .budget-actions-cluster .btn-outline,
[data-theme="light"] .budget-actions-cluster .btn-outline {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

:root:not([data-theme="dark"]) .budget-actions-cluster .btn-outline:hover,
[data-theme="light"] .budget-actions-cluster .btn-outline:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

:root:not([data-theme="dark"]) .budget-actions-cluster .btn-outline-danger,
[data-theme="light"] .budget-actions-cluster .btn-outline-danger {
  background: #ffffff;
  border-color: #fca5a5;
  color: #dc2626;
}

:root:not([data-theme="dark"]) .budget-actions-cluster .btn-outline-danger:hover,
[data-theme="light"] .budget-actions-cluster .btn-outline-danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c;
}

:root:not([data-theme="dark"]) .budget-duplicate-menu,
[data-theme="light"] .budget-duplicate-menu {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

:root:not([data-theme="dark"]) .budget-duplicate-menu .dup-item,
[data-theme="light"] .budget-duplicate-menu .dup-item {
  color: #334155;
}

:root:not([data-theme="dark"]) .budget-duplicate-menu .dup-item:hover,
[data-theme="light"] .budget-duplicate-menu .dup-item:hover {
  background: #f0f9ff;
  color: #0284c7;
  font-weight: 600;
}

/* 4. Tarjetas de Productos en el Carrito */
:root:not([data-theme="dark"]) .cart-item-card-expanded,
[data-theme="light"] .cart-item-card-expanded {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .cart-item-card-expanded:hover,
[data-theme="light"] .cart-item-card-expanded:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1) !important;
}

:root:not([data-theme="dark"]) .item-card-thumb,
[data-theme="light"] .item-card-thumb {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

:root:not([data-theme="dark"]) .thumb-qty-badge,
[data-theme="light"] .thumb-qty-badge {
  background: #0284c7;
  color: #ffffff;
}

:root:not([data-theme="dark"]) .drag-handle-btn,
[data-theme="light"] .drag-handle-btn {
  color: #94a3b8;
}

:root:not([data-theme="dark"]) .drag-handle-btn:hover,
[data-theme="light"] .drag-handle-btn:hover {
  color: #0284c7;
}

:root:not([data-theme="dark"]) .item-card-title,
[data-theme="light"] .item-card-title {
  color: #0f172a;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .item-card-title:hover,
[data-theme="light"] .item-card-title:hover {
  color: #0284c7;
}

:root:not([data-theme="dark"]) .btn-remove-expanded,
[data-theme="light"] .btn-remove-expanded {
  color: #94a3b8;
}

:root:not([data-theme="dark"]) .btn-remove-expanded:hover,
[data-theme="light"] .btn-remove-expanded:hover {
  color: #ef4444;
  background: #fee2e2;
}

:root:not([data-theme="dark"]) .item-card-tags .tag-badge,
[data-theme="light"] .item-card-tags .tag-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

:root:not([data-theme="dark"]) .item-card-tags .tag-warranty,
[data-theme="light"] .item-card-tags .tag-warranty {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

:root:not([data-theme="dark"]) .item-card-pricing-row,
[data-theme="light"] .item-card-pricing-row {
  border-top: 1px solid #f1f5f9;
}

:root:not([data-theme="dark"]) .price-label,
[data-theme="light"] .price-label {
  color: #64748b;
  font-weight: 600;
}

:root:not([data-theme="dark"]) .price-val,
[data-theme="light"] .price-val {
  color: #0f172a;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .qty-stepper,
[data-theme="light"] .qty-stepper {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

:root:not([data-theme="dark"]) .qty-stepper button,
[data-theme="light"] .qty-stepper button {
  color: #334155;
}

:root:not([data-theme="dark"]) .qty-stepper button:hover,
[data-theme="light"] .qty-stepper button:hover {
  background: #e0f2fe;
  color: #0284c7;
}

:root:not([data-theme="dark"]) .qty-stepper .qty-num,
[data-theme="light"] .qty-stepper .qty-num {
  color: #0f172a;
  font-weight: 800;
}

:root:not([data-theme="dark"]) .subtotal-val,
[data-theme="light"] .subtotal-val {
  color: #0284c7;
  font-weight: 800;
  font-size: 1.15rem;
}

:root:not([data-theme="dark"]) .item-card-bottom-bar,
[data-theme="light"] .item-card-bottom-bar {
  border-top: 1px dashed #e2e8f0;
}

:root:not([data-theme="dark"]) .btn-note-toggle,
[data-theme="light"] .btn-note-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

:root:not([data-theme="dark"]) .btn-note-toggle:hover,
[data-theme="light"] .btn-note-toggle:hover {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

:root:not([data-theme="dark"]) .btn-note-toggle.has-note,
[data-theme="light"] .btn-note-toggle.has-note {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .btn-copy-opt,
[data-theme="light"] .btn-copy-opt {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-weight: 600;
}

:root:not([data-theme="dark"]) .btn-copy-opt:hover,
[data-theme="light"] .btn-copy-opt:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

:root:not([data-theme="dark"]) .btn-move-opt,
[data-theme="light"] .btn-move-opt {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #7e22ce;
  font-weight: 600;
}

:root:not([data-theme="dark"]) .btn-move-opt:hover,
[data-theme="light"] .btn-move-opt:hover {
  background: #7e22ce;
  color: #ffffff;
  border-color: #7e22ce;
}

:root:not([data-theme="dark"]) .item-card-note-box textarea,
[data-theme="light"] .item-card-note-box textarea {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

:root:not([data-theme="dark"]) .item-card-note-box textarea:focus,
[data-theme="light"] .item-card-note-box textarea:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* 5. Sidebar de Cotización Sticky */
:root:not([data-theme="dark"]) #cartTab .cart-summary-card,
[data-theme="light"] #cartTab .cart-summary-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

:root:not([data-theme="dark"]) .summary-title,
[data-theme="light"] .summary-title {
  color: #0f172a;
  font-weight: 800;
}

:root:not([data-theme="dark"]) .summary-title i,
[data-theme="light"] .summary-title i {
  color: #0284c7 !important;
}

:root:not([data-theme="dark"]) .summary-budget-tag,
[data-theme="light"] .summary-budget-tag {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .summary-rows,
[data-theme="light"] .summary-rows {
  border-top: 1px solid #e2e8f0;
}

:root:not([data-theme="dark"]) .summary-row,
[data-theme="light"] .summary-row {
  color: #475569;
}

:root:not([data-theme="dark"]) .summary-row strong,
[data-theme="light"] .summary-row strong {
  color: #0f172a;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .total-cash-price,
[data-theme="light"] .total-cash-price {
  color: #059669;
  font-weight: 800;
  font-size: 1.4rem;
}

:root:not([data-theme="dark"]) .summary-row-mini,
[data-theme="light"] .summary-row-mini {
  color: #64748b;
}

:root:not([data-theme="dark"]) .summary-installment-teaser,
[data-theme="light"] .summary-installment-teaser {
  background: #f0f9ff;
  border: 1px dashed #7dd3fc;
  color: #0284c7;
  font-weight: 600;
}

:root:not([data-theme="dark"]) .summary-installment-teaser i,
[data-theme="light"] .summary-installment-teaser i {
  color: #0284c7 !important;
}

:root:not([data-theme="dark"]) .full-cart-cuotas-btn,
[data-theme="light"] .full-cart-cuotas-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .full-cart-cuotas-btn:hover,
[data-theme="light"] .full-cart-cuotas-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

:root:not([data-theme="dark"]) .cart-disclaimer,
[data-theme="light"] .cart-disclaimer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

:root:not([data-theme="dark"]) .cart-disclaimer i,
[data-theme="light"] .cart-disclaimer i {
  color: #0284c7 !important;
}

:root:not([data-theme="dark"]) .btn-wa-inquiry,
[data-theme="light"] .btn-wa-inquiry {
  background: #ffffff;
  border: 1.5px solid #16a34a;
  color: #15803d;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .btn-wa-inquiry:hover,
[data-theme="light"] .btn-wa-inquiry:hover {
  background: #f0fdf4;
  border-color: #15803d;
}

:root:not([data-theme="dark"]) .summary-secondary-actions,
[data-theme="light"] .summary-secondary-actions {
  border-top: 1px solid #e2e8f0;
}

:root:not([data-theme="dark"]) .btn-link-action,
[data-theme="light"] .btn-link-action {
  color: #64748b;
  font-weight: 600;
}

:root:not([data-theme="dark"]) .btn-link-action:hover,
[data-theme="light"] .btn-link-action:hover {
  color: #0284c7;
  background: #f0f9ff;
}

:root:not([data-theme="dark"]) .btn-link-action.btn-share-action,
[data-theme="light"] .btn-link-action.btn-share-action {
  color: #7e22ce !important;
}

:root:not([data-theme="dark"]) .btn-link-action.btn-share-action:hover,
[data-theme="light"] .btn-link-action.btn-share-action:hover {
  background: #faf5ff !important;
  color: #6b21a8 !important;
}

:root:not([data-theme="dark"]) .btn-link-action.btn-print-budget,
[data-theme="light"] .btn-link-action.btn-print-budget {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .btn-link-action.btn-print-budget:hover,
[data-theme="light"] .btn-link-action.btn-print-budget:hover {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}

/* 6. Panel de Diagnóstico de Compatibilidad */
:root:not([data-theme="dark"]) .cart-compat-panel.banner-error,
[data-theme="light"] .cart-compat-panel.banner-error {
  background: linear-gradient(135deg, #fff5f5, #fef2f2);
  border: 1.5px solid #fca5a5;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
}

:root:not([data-theme="dark"]) .cart-compat-panel.banner-warning,
[data-theme="light"] .cart-compat-panel.banner-warning {
  background: linear-gradient(135deg, #fffdf5, #fffbeb);
  border: 1.5px solid #fde68a;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.08);
}

:root:not([data-theme="dark"]) .cart-compat-panel.banner-tip,
[data-theme="light"] .cart-compat-panel.banner-tip {
  background: linear-gradient(135deg, #f8fbff, #f0f9ff);
  border: 1.5px solid #bae6fd;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
}

:root:not([data-theme="dark"]) .cart-compat-panel.banner-optimal,
[data-theme="light"] .cart-compat-panel.banner-optimal {
  background: linear-gradient(135deg, #f8fdfa, #f0fdf4);
  border: 1.5px solid #a7f3d0;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

:root:not([data-theme="dark"]) .cart-compat-panel .compat-panel-top,
[data-theme="light"] .cart-compat-panel .compat-panel-top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

:root:not([data-theme="dark"]) .banner-error .compat-panel-headline,
[data-theme="light"] .banner-error .compat-panel-headline { color: #b91c1c; }

:root:not([data-theme="dark"]) .banner-warning .compat-panel-headline,
[data-theme="light"] .banner-warning .compat-panel-headline { color: #b45309; }

:root:not([data-theme="dark"]) .banner-tip .compat-panel-headline,
[data-theme="light"] .banner-tip .compat-panel-headline { color: #0369a1; }

:root:not([data-theme="dark"]) .banner-optimal .compat-panel-headline,
[data-theme="light"] .banner-optimal .compat-panel-headline { color: #15803d; }

:root:not([data-theme="dark"]) .compat-panel-tag,
[data-theme="light"] .compat-panel-tag {
  background: rgba(0, 0, 0, 0.05);
  color: #475569;
}

:root:not([data-theme="dark"]) .compat-diagnostic-card,
[data-theme="light"] .compat-diagnostic-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

:root:not([data-theme="dark"]) .compat-diagnostic-card.card-error,
[data-theme="light"] .compat-diagnostic-card.card-error {
  border-left: 4px solid #ef4444;
  background: #ffffff;
}

:root:not([data-theme="dark"]) .compat-diagnostic-card.card-warning,
[data-theme="light"] .compat-diagnostic-card.card-warning {
  border-left: 4px solid #f59e0b;
  background: #ffffff;
}

:root:not([data-theme="dark"]) .compat-diagnostic-card.card-tip,
[data-theme="light"] .compat-diagnostic-card.card-tip {
  border-left: 4px solid #0284c7;
  background: #ffffff;
}

:root:not([data-theme="dark"]) .compat-diagnostic-card.card-optimal,
[data-theme="light"] .compat-diagnostic-card.card-optimal {
  border-left: 4px solid #10b981;
  background: #ffffff;
}

:root:not([data-theme="dark"]) .compat-card-title,
[data-theme="light"] .compat-card-title {
  color: #0f172a;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .compat-card-body,
[data-theme="light"] .compat-card-body {
  color: #334155;
}

:root:not([data-theme="dark"]) .compat-card-body strong,
[data-theme="light"] .compat-card-body strong {
  color: #0f172a;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .compat-pill-badge.badge-error,
[data-theme="light"] .compat-pill-badge.badge-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

:root:not([data-theme="dark"]) .compat-pill-badge.badge-warning,
[data-theme="light"] .compat-pill-badge.badge-warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

:root:not([data-theme="dark"]) .compat-pill-badge.badge-tip,
[data-theme="light"] .compat-pill-badge.badge-tip {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

:root:not([data-theme="dark"]) .compat-pill-badge.badge-optimal,
[data-theme="light"] .compat-pill-badge.badge-optimal {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

:root:not([data-theme="dark"]) .btn-compat-action.action-error,
[data-theme="light"] .btn-compat-action.action-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

:root:not([data-theme="dark"]) .btn-compat-action.action-error:hover,
[data-theme="light"] .btn-compat-action.action-error:hover {
  background: #ef4444;
  color: #ffffff;
}

:root:not([data-theme="dark"]) .btn-compat-action.action-warning,
[data-theme="light"] .btn-compat-action.action-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

:root:not([data-theme="dark"]) .btn-compat-action.action-warning:hover,
[data-theme="light"] .btn-compat-action.action-warning:hover {
  background: #f59e0b;
  color: #ffffff;
}

:root:not([data-theme="dark"]) .btn-compat-action.action-tip,
[data-theme="light"] .btn-compat-action.action-tip {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

:root:not([data-theme="dark"]) .btn-compat-action.action-tip:hover,
[data-theme="light"] .btn-compat-action.action-tip:hover {
  background: #0284c7;
  color: #ffffff;
}

/* 7. Vista Comparativa Lado a Lado */
:root:not([data-theme="dark"]) .compare-header-banner,
[data-theme="light"] .compare-header-banner {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .compare-header-banner h3,
[data-theme="light"] .compare-header-banner h3 {
  color: #0f172a;
  font-weight: 800;
}

:root:not([data-theme="dark"]) .compare-header-banner p,
[data-theme="light"] .compare-header-banner p {
  color: #64748b;
}

:root:not([data-theme="dark"]) .compare-card,
[data-theme="light"] .compare-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

:root:not([data-theme="dark"]) .compare-card.card-active-border,
[data-theme="light"] .compare-card.card-active-border {
  border: 2px solid #0284c7 !important;
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.16) !important;
}

:root:not([data-theme="dark"]) .compare-card.card-cheapest-border,
[data-theme="light"] .compare-card.card-cheapest-border {
  border: 2px solid #10b981 !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.16) !important;
}

:root:not([data-theme="dark"]) .tag-active-pill,
[data-theme="light"] .tag-active-pill {
  background: #0284c7;
  color: #ffffff;
}

:root:not([data-theme="dark"]) .diff-tag-pill,
[data-theme="light"] .diff-tag-pill {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

:root:not([data-theme="dark"]) .compare-price-block,
[data-theme="light"] .compare-price-block {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

:root:not([data-theme="dark"]) .compare-price-label,
[data-theme="light"] .compare-price-label {
  color: #64748b;
}

:root:not([data-theme="dark"]) .compare-price-num,
[data-theme="light"] .compare-price-num {
  color: #0284c7;
  font-weight: 800;
}

:root:not([data-theme="dark"]) .compare-count-label,
[data-theme="light"] .compare-count-label {
  color: #64748b;
}

:root:not([data-theme="dark"]) .compare-progress-header,
[data-theme="light"] .compare-progress-header {
  color: #64748b;
}

:root:not([data-theme="dark"]) .compare-compat-badge.error,
[data-theme="light"] .compare-compat-badge.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

:root:not([data-theme="dark"]) .compare-compat-badge.warning,
[data-theme="light"] .compare-compat-badge.warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

:root:not([data-theme="dark"]) .compare-compat-badge.optimal,
[data-theme="light"] .compare-compat-badge.optimal {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

:root:not([data-theme="dark"]) .preview-title,
[data-theme="light"] .preview-title {
  color: #0f172a;
  font-weight: 700;
}

:root:not([data-theme="dark"]) .empty-preview-text,
[data-theme="light"] .empty-preview-text {
  color: #94a3b8;
}

:root:not([data-theme="dark"]) .preview-list li,
[data-theme="light"] .preview-list li {
  border-bottom: 1px solid #f1f5f9;
}

:root:not([data-theme="dark"]) .preview-list .it-name,
[data-theme="light"] .preview-list .it-name {
  color: #1e293b;
}

:root:not([data-theme="dark"]) .preview-list .it-price,
[data-theme="light"] .preview-list .it-price {
  color: #64748b;
  font-weight: 600;
}

:root:not([data-theme="dark"]) .preview-list .it-qty,
[data-theme="light"] .preview-list .it-qty {
  color: #0284c7;
  font-weight: 700;
}

/* 8. Estado Vacío del Carrito */
:root:not([data-theme="dark"]) .cart-empty-full,
[data-theme="light"] .cart-empty-full {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .cart-empty-full .empty-icon,
[data-theme="light"] .cart-empty-full .empty-icon {
  color: #cbd5e1;
}

:root:not([data-theme="dark"]) .cart-empty-full h3,
[data-theme="light"] .cart-empty-full h3 {
  color: #0f172a;
  font-weight: 800;
}

:root:not([data-theme="dark"]) .cart-empty-full p,
[data-theme="light"] .cart-empty-full p {
  color: #64748b;
}

:root:not([data-theme="dark"]) .shortcut-pill-btn,
[data-theme="light"] .shortcut-pill-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}

:root:not([data-theme="dark"]) .shortcut-pill-btn:hover,
[data-theme="light"] .shortcut-pill-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

/* 9. Modales de Carrito y Presupuestos */
:root:not([data-theme="dark"]) #budgetHelpModal .modal-content,
[data-theme="light"] #budgetHelpModal .modal-content,
:root:not([data-theme="dark"]) #saveBudgetModal .modal-content,
[data-theme="light"] #saveBudgetModal .modal-content,
:root:not([data-theme="dark"]) #customPromptModal .modal-content,
[data-theme="light"] #customPromptModal .modal-content,
:root:not([data-theme="dark"]) #customConfirmModal .modal-content,
[data-theme="light"] #customConfirmModal .modal-content,
:root:not([data-theme="dark"]) #shareBudgetModal .modal-content,
[data-theme="light"] #shareBudgetModal .modal-content {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

:root:not([data-theme="dark"]) #budgetHelpModal h3,
[data-theme="light"] #budgetHelpModal h3,
:root:not([data-theme="dark"]) #saveBudgetModalTitle,
[data-theme="light"] #saveBudgetModalTitle,
:root:not([data-theme="dark"]) #customPromptTitle,
[data-theme="light"] #customPromptTitle {
  color: #0284c7 !important;
}

:root:not([data-theme="dark"]) #shareBudgetModal h3,
[data-theme="light"] #shareBudgetModal h3 {
  color: #7e22ce !important;
}

:root:not([data-theme="dark"]) .help-step-card,
[data-theme="light"] .help-step-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) #budgetHelpModal .modal-body,
[data-theme="light"] #budgetHelpModal .modal-body,
:root:not([data-theme="dark"]) #saveBudgetModal .modal-body,
[data-theme="light"] #saveBudgetModal .modal-body {
  color: #334155 !important;
}

:root:not([data-theme="dark"]) #saveBudgetModal input.form-control,
[data-theme="light"] #saveBudgetModal input.form-control,
:root:not([data-theme="dark"]) #customPromptInput,
[data-theme="light"] #customPromptInput {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) #saveBudgetModal input.form-control:focus,
[data-theme="light"] #saveBudgetModal input.form-control:focus,
:root:not([data-theme="dark"]) #customPromptInput:focus,
[data-theme="light"] #customPromptInput:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}

/* 10. Menú Flotante FAB en Mobile */
@media (max-width: 768px) {
  :root:not([data-theme="dark"]) .cart-mobile-fab-menu,
  [data-theme="light"] .cart-mobile-fab-menu {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14) !important;
  }

  :root:not([data-theme="dark"]) .cart-fab-action-btn,
  [data-theme="light"] .cart-fab-action-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
  }

  :root:not([data-theme="dark"]) .cart-fab-action-btn:hover,
  [data-theme="light"] .cart-fab-action-btn:hover {
    background: #f0f9ff !important;
    color: #0284c7 !important;
  }

  :root:not([data-theme="dark"]) .cart-fab-action-btn.fab-official,
  [data-theme="light"] .cart-fab-action-btn.fab-official {
    color: #059669 !important;
    border-color: #a7f3d0 !important;
    background: #ecfdf5 !important;
  }

  :root:not([data-theme="dark"]) .cart-fab-action-btn.fab-share,
  [data-theme="light"] .cart-fab-action-btn.fab-share {
    color: #7e22ce !important;
    border-color: #e9d5ff !important;
    background: #faf5ff !important;
  }
}


/* =============================================================================
   ESTILOS DE IMPRESIÓN: 3 PRESUPUESTOS EN 1 HOJA A4 LANDSCAPE
   ============================================================================= */

#budgetComparisonPrintSheet {
  display: none;
}

@media print {
  body.print-mode-comparison {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.print-mode-comparison > *:not(#budgetComparisonPrintSheet):not(.print-comparison-sheet) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  body.print-mode-comparison #print-ficha-container,
  body.print-mode-comparison #print-observations-container,
  body.print-mode-comparison #print-components-container,
  body.print-mode-comparison #print-egreso-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
  }

  body.print-mode-comparison #budgetComparisonPrintSheet {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-mode-comparison #budgetComparisonPrintSheet * {
    visibility: visible !important;
    opacity: 1 !important;
  }

  @page {
    size: A4 landscape;
    margin: 6mm 8mm;
  }

  .print-sheet-inner {
    width: 100%;
    margin: 0 auto;
    color: #0f172a;
  }

  .print-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .print-brand-title {
    font-size: 22pt;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
    color: #0284c7;
    line-height: 1;
  }

  .print-brand-sub {
    font-size: 8pt;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
  }

  .print-brand-addr, .print-brand-contact {
    font-size: 7.5pt;
    color: #334155;
    margin: 2px 0 0 0;
    line-height: 1.2;
  }

  .print-header-meta {
    text-align: right;
  }

  .meta-doc-title {
    font-size: 13pt;
    font-weight: 800;
    color: #0f172a;
  }

  .meta-doc-date {
    font-size: 8.5pt;
    color: #475569;
    margin-top: 3px;
  }

  .meta-doc-badge {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    font-size: 7pt;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 4px;
  }

  .print-sheet-intro {
    font-size: 7.5pt;
    color: #64748b;
    margin-bottom: 8px;
    font-style: italic;
  }

  .print-budgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-items: stretch;
  }

  .print-budget-col {
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
  }

  .col-highlight-cheapest {
    border: 2px solid #059669 !important;
    background: #f0fdf4 !important;
  }

  .col-header {
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 5px;
    margin-bottom: 6px;
  }

  .col-title {
    font-size: 10.5pt;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
  }

  .print-cheapest-badge {
    display: inline-block;
    background: #059669;
    color: #ffffff;
    font-size: 6.5pt;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 4px;
    letter-spacing: 0.3px;
  }

  .print-diff-tag {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 6.5pt;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-top: 4px;
  }

  .col-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7.5pt;
    line-height: 1.25;
    flex: 1;
    margin-bottom: 6px;
  }

  .col-items-table th {
    border-bottom: 1px solid #cbd5e1;
    padding: 3px 2px;
    text-align: left;
    font-size: 7pt;
    color: #475569;
    text-transform: uppercase;
  }

  .col-items-table td {
    padding: 3px 2px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
  }

  .col-items-table .col-qty {
    font-weight: 700;
    color: #0284c7;
  }

  .col-items-table .col-name {
    color: #1e293b;
    word-break: break-word;
  }

  .col-items-table .col-sub {
    text-align: right;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
  }

  .col-items-table tr.empty-row td {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 15px 0;
  }

  .col-total-box {
    background: #f8fafc;
    border: 1.5px solid #0f172a;
    border-radius: 4px;
    padding: 6px 8px;
    text-align: center;
    margin-top: auto;
  }

  .col-highlight-cheapest .col-total-box {
    background: #dcfce7;
    border-color: #059669;
  }

  .col-total-label {
    font-size: 6.5pt;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.4px;
  }

  .col-total-val {
    font-size: 13pt;
    font-weight: 900;
    color: #0f172a;
    margin: 2px 0;
  }

  .col-highlight-cheapest .col-total-val {
    color: #059669;
  }

  .col-total-count {
    font-size: 6.5pt;
    color: #64748b;
  }

  .print-sheet-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 8px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 5px;
    font-size: 6.5pt;
    color: #64748b;
    line-height: 1.3;
  }

  .footer-terms {
    max-width: 70%;
  }

  .footer-sign {
    text-align: right;
    font-weight: 600;
  }
}

/* =============================================================================
   HOJA DE PRESUPUESTO OFICIAL AFIP TIPO "X" (DISEÑO SEGÚN REFERENCIA)
   ============================================================================= */

#budgetOfficialPrintSheet {
  display: none;
}

@media print {
  body.print-mode-official {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.print-mode-official > *:not(#budgetOfficialPrintSheet):not(.print-official-sheet) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  body.print-mode-official #budgetOfficialPrintSheet {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: Arial, Helvetica, -apple-system, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-mode-official #budgetOfficialPrintSheet * {
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
  }

  @page {
    size: A4 portrait;
    margin: 6mm 8mm;
  }

  .official-sheet-inner {
    width: 100%;
    margin: 0 auto;
    color: #000000;
    font-size: 8.5pt;
    line-height: 1.25;
  }

  /* Encabezado Tripartito Oficial con Recuadro de la X */
  .official-header-box {
    display: flex;
    border: 1.5px solid #000000;
    border-radius: 4px;
    margin-bottom: 6px;
    overflow: hidden;
    background: #ffffff;
  }

  .official-header-left {
    flex: 1.2;
    padding: 8px 12px;
    border-right: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .official-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
  }

  .official-logo-box {
    background: transparent !important;
    color: #94a3b8 !important;
    padding: 0 !important;
    font-size: 22pt !important;
    font-weight: 900 !important;
    letter-spacing: 2.5px !important;
    line-height: 1 !important;
    display: block !important;
    margin-bottom: 2px;
  }

  .official-owner-name {
    font-size: 9pt;
    font-weight: 700;
    color: #000000;
    display: block;
    margin-bottom: 2px;
  }

  .official-left-details {
    font-size: 7.5pt;
    color: #000000;
    line-height: 1.3;
    margin: 1px 0;
  }

  .official-header-center {
    width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: #94a3b8 !important;
    border-right: 1.5px solid #000000;
    border-left: none;
    padding: 4px 6px;
  }

  .official-x-badge {
    font-size: 32pt;
    font-weight: 900;
    color: #94a3b8;
    line-height: 0.85;
    margin: 0;
  }

  .official-x-sub {
    font-size: 5.2pt;
    font-weight: 800;
    color: #94a3b8;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 3px;
    padding: 0;
    letter-spacing: 0.2px;
  }

  .official-header-right {
    flex: 1.2;
    padding: 8px 14px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .official-doc-title {
    font-size: 19pt;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.1;
    color: #000000;
    text-align: center;
  }

  .official-doc-number {
    font-size: 14pt;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 2px 0 6px 0;
    color: #000000;
    text-align: center;
  }

  .official-doc-date {
    font-size: 9pt;
    font-weight: 800;
    margin-bottom: 4px;
    color: #000000;
    text-align: right;
  }

  .official-fiscal-data {
    font-size: 7.5pt;
    color: #000000;
    line-height: 1.3;
    text-align: right;
  }

  /* Recuadro de Cliente */
  .official-client-box {
    border: 1.5px solid #000000;
    border-radius: 4px;
    margin-bottom: 6px;
    overflow: hidden;
    background: #ffffff;
  }

  .official-client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 6px 10px;
    gap: 3px 14px;
    font-size: 8pt;
  }

  .official-client-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .official-client-label {
    font-weight: 700;
    white-space: nowrap;
    font-size: 7.5pt;
    color: #1e293b;
  }

  .official-client-val {
    font-family: monospace, Arial, sans-serif;
    font-size: 8pt;
    font-weight: 600;
    word-break: break-word;
    color: #0f172a;
  }

  .official-disclaimer-bar {
    border-top: 1.5px solid #000000;
    padding: 4px;
    text-align: center;
    font-size: 7.5pt;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: #f8fafc;
    color: #0f172a;
  }

  /* Tabla de Items Contable */
  .official-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6px;
    font-size: 8pt;
  }

  .official-items-table th {
    border: 1.5px solid #000000;
    background: #f1f5f9;
    padding: 5px 6px;
    font-weight: 800;
    font-size: 7.5pt;
    text-align: left;
    color: #0f172a;
  }

  .official-items-table td {
    border: 1.5px solid #000000;
    padding: 4px 6px;
    vertical-align: middle;
    color: #000000;
  }

  .official-items-table .td-cant {
    text-align: right;
    font-family: monospace, Arial, sans-serif;
    font-weight: 700;
    width: 10%;
  }

  .official-items-table .td-desc {
    font-weight: 600;
    text-transform: uppercase;
    width: 58%;
  }

  .official-items-table .td-price {
    text-align: right;
    font-family: monospace, Arial, sans-serif;
    font-weight: 700;
    width: 16%;
    white-space: nowrap;
  }

  .official-total-row-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
  }

  .official-total-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #000000;
    padding: 6px 14px;
    background: #f8fafc;
    gap: 12px;
    min-width: 240px;
    justify-content: space-between;
  }

  .official-total-label {
    font-size: 9.5pt;
    font-weight: 800;
    color: #0f172a;
  }

  .official-total-val {
    font-size: 13.5pt;
    font-weight: 900;
    font-family: monospace, Arial, sans-serif;
    color: #000000;
  }

  /* Recuadro de Cuotas y Financiación Opcional en Impresión */
  .official-cuotas-box {
    border: 1.5px solid #000000;
    border-radius: 4px;
    margin-bottom: 14px;
    padding: 6px 10px;
    background: #ffffff;
  }

  .official-cuotas-title {
    font-size: 7.5pt;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .official-cuotas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 6px;
  }

  .official-cuota-card {
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    padding: 4px 6px;
    text-align: center;
    background: #f8fafc;
  }

  .official-cuota-name {
    font-size: 7pt;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
  }

  .official-cuota-amount {
    font-size: 9pt;
    font-weight: 800;
    color: #000000;
    font-family: monospace, Arial, sans-serif;
    margin: 1px 0;
  }

  .official-cuota-total {
    font-size: 6.5pt;
    color: #475569;
  }

  .official-cuotas-disclaimer {
    font-size: 6pt;
    color: #64748b;
    margin-top: 4px;
    text-align: right;
    font-style: italic;
  }

  /* Firma al pie derecho y aviso de presupuesto de cliente */
  .official-signature-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 25px;
    padding-right: 10px;
  }

  .official-signature-wrap.has-unverified-notice {
    justify-content: space-between;
    gap: 18px;
  }

  .official-unverified-notice {
    flex: 1;
    max-width: 62%;
    border: 1.5px solid #dc2626;
    background: #fef2f2;
    color: #991b1b;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 7.2pt;
    line-height: 1.35;
    text-align: left;
  }

  .official-signature-box {
    text-align: center;
    min-width: 230px;
    max-width: 280px;
  }

  .official-signature-line {
    border-top: 1.5px solid #000000;
    margin-bottom: 5px;
  }

  .official-signature-name {
    font-size: 9.5pt;
    font-weight: 800;
    color: #0f172a;
  }

  .official-signature-role {
    font-size: 7pt;
    color: #475569;
    text-transform: uppercase;
    font-weight: 700;
  }

  .official-signature-disclaimer {
    font-size: 6.4pt;
    color: #b91c1c;
    font-weight: 700;
    margin-top: 3px;
    line-height: 1.2;
  }
}

/* =============================================================================
   ADMIN PANEL: SUBPESTAÑA PRESUPUESTOS (ESTILOS UI)
   ============================================================================= */

.presupuestos-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.presupuestos-kpi-card {
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.presupuestos-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.presupuestos-kpi-card.kpi-total .presupuestos-kpi-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.presupuestos-kpi-info h4 {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.presupuestos-kpi-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-color, #ffffff);
  margin: 0;
}

.presupuestos-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.presupuestos-search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.presupuestos-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #94a3b8);
}

.presupuestos-search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  background: var(--bg-panel, #0f172a);
  color: var(--text-color, #ffffff);
  font-size: 0.9rem;
}

.presupuestos-table-wrap {
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.presupuestos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.presupuestos-table th {
  background: var(--bg-panel, #0f172a);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.presupuestos-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  vertical-align: middle;
  color: var(--text-color, #e2e8f0);
}

.presupuestos-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.presupuesto-num-badge {
  font-family: monospace;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  display: inline-block;
}

.presupuesto-total-badge {
  font-weight: 800;
  color: #10b981;
  font-size: 0.95rem;
}

.presupuesto-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-action-sm {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-action-print {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.btn-action-print:hover {
  background: #38bdf8;
  color: #ffffff;
}

.btn-action-cart {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.btn-action-cart:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-action-wa {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.btn-action-wa:hover {
  background: #25d366;
  color: #ffffff;
}

.btn-action-del {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.btn-action-del:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Modal Guardar Presupuesto */
.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

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

/* =============================================================================
   MEJORAS INTEGRALES: MI CARRITO Y PRESUPUESTOS (UX, VISUAL & FUNCIONAL)
   ============================================================================= */

/* 1. Indicadores de color y estados en Pestañas de Presupuestos */
.budget-tab-btn {
  position: relative;
  border-left: 4px solid #475569 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.budget-tab-btn.status-active {
  border-left: 4px solid #10b981 !important;
}

.budget-tab-btn.status-has-items:not(.status-active) {
  border-left: 4px solid #38bdf8 !important;
}

.budget-tab-btn.status-empty:not(.status-active) {
  border-left: 4px solid #64748b !important;
  opacity: 0.85;
}

.budget-tab-btn.active {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2) !important;
}

.tab-status-icon {
  font-size: 0.8rem;
  margin-right: 5px;
}

/* 2. Animaciones de Entrada y Transición Suave */
@keyframes cartFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item-card-expanded {
  animation: cartFadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.compare-card {
  animation: cartFadeSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 3. Miniaturas más Grandes con Zoom Hover y Badge de Cantidad */
.item-card-thumb {
  width: 110px !important;
  height: 110px !important;
  position: relative;
  background: rgba(15, 23, 42, 0.6) !important;
  border-radius: 10px !important;
}

.item-card-thumb img {
  max-width: 90% !important;
  max-height: 90% !important;
  transition: transform 0.25s ease;
}

.item-card-thumb:hover img {
  transform: scale(1.1);
}

.thumb-qty-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  z-index: 2;
}

/* Zoom Hover Tooltip Flotante */
.thumb-zoom-preview {
  position: absolute;
  left: 125px;
  top: -10px;
  width: 240px;
  height: 240px;
  background: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.item-card-thumb:hover .thumb-zoom-preview {
  opacity: 1;
  transform: scale(1);
}

.thumb-zoom-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 4. Drag & Drop para Reordenar Productos */
.cart-item-card-expanded[draggable="true"] {
  cursor: grab;
}

.cart-item-card-expanded.dragging {
  opacity: 0.45;
  border: 2px dashed #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
  cursor: grabbing;
}

.cart-item-card-expanded.drag-over {
  border-top: 3px solid #38bdf8 !important;
  transform: translateY(2px);
}

.drag-handle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: grab;
  padding: 4px 6px;
  font-size: 0.95rem;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}

.drag-handle-btn:hover {
  opacity: 1;
  color: #38bdf8;
}

/* 5. Selector de Ordenamiento */
.budget-sort-wrap {
  display: inline-flex;
  align-items: center;
}

.budget-sort-select {
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, rgba(255,255,255,0.15));
  color: var(--text-color, #ffffff);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.budget-sort-select:hover,
.budget-sort-select:focus {
  border-color: #38bdf8;
}

/* 6. Asistente Inteligente de Compatibilidad y Configuración Ideal */
.cart-compat-panel {
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  animation: cartFadeSlideIn 0.35s ease-out;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.cart-compat-panel.hidden {
  display: none !important;
}

/* Variantes de Contenedor General */
.cart-compat-panel.banner-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(185, 28, 28, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.cart-compat-panel.banner-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.cart-compat-panel.banner-tip {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(14, 116, 144, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.45);
}

.cart-compat-panel.banner-optimal {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.45);
}

/* Cabecera del Panel */
.compat-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compat-panel-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.banner-error .compat-panel-headline { color: #f87171; }
.banner-warning .compat-panel-headline { color: #fbbf24; }
.banner-tip .compat-panel-headline { color: #38bdf8; }
.banner-optimal .compat-panel-headline { color: #34d399; }

.compat-panel-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
}

/* Grid de Tarjetas de Diagnóstico */
.compat-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compat-diagnostic-card {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compat-diagnostic-card:hover {
  transform: translateY(-1px);
}

.compat-diagnostic-card.card-error {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

.compat-diagnostic-card.card-warning {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}

.compat-diagnostic-card.card-tip {
  border-left: 4px solid #06b6d4;
  background: rgba(6, 182, 212, 0.06);
}

.compat-diagnostic-card.card-optimal {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.06);
}

/* Cabecera de la Tarjeta */
.compat-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.compat-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 12px;
}

.compat-pill-badge.badge-error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.compat-pill-badge.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.compat-pill-badge.badge-tip {
  background: rgba(6, 182, 212, 0.2);
  color: #a5f3fc;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.compat-pill-badge.badge-optimal {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.compat-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

/* Cuerpo del Mensaje */
.compat-card-body {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.compat-card-body strong {
  color: #ffffff;
  font-weight: 600;
}

/* Botón de Acción de Catálogo */
.compat-card-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.btn-compat-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-compat-action.action-error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-compat-action.action-error:hover {
  background: #ef4444;
  color: #ffffff;
  transform: translateX(3px);
}

.btn-compat-action.action-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.btn-compat-action.action-warning:hover {
  background: #f59e0b;
  color: #0f172a;
  transform: translateX(3px);
}

.btn-compat-action.action-tip {
  background: rgba(6, 182, 212, 0.2);
  color: #a5f3fc;
  border: 1px solid rgba(6, 182, 212, 0.4);
}
.btn-compat-action.action-tip:hover {
  background: #06b6d4;
  color: #0f172a;
  transform: translateX(3px);
}

/* Badge en Vista Comparativa de Presupuestos */
.compare-compat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
  align-self: flex-start;
}

.compare-compat-badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.compare-compat-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.compare-compat-badge.optimal {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* 7. Mover vs Copiar Diferenciados y Notas por Producto */
.item-card-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.btn-note-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-note-toggle:hover,
.btn-note-toggle.has-note {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.item-card-note-box {
  width: 100%;
  margin-top: 8px;
  animation: cartFadeSlideIn 0.2s ease;
}

.item-card-note-box textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--text-color);
  resize: vertical;
  min-height: 48px;
}

.item-card-note-box textarea:focus {
  border-color: #f59e0b;
  outline: none;
}

.btn-move-opt {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 4px;
  color: #c084fc;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 7px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-move-opt:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
  border-color: #a855f7;
}

.btn-copy-opt {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 7px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-opt:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  border-color: #38bdf8;
}

/* 8. Barra de Progreso Visual en Vista Comparativa */
.compare-progress-wrap {
  margin: 10px 0 14px 0;
}

.compare-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.compare-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.compare-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-progress-fill.fill-cheapest {
  background: linear-gradient(90deg, #059669, #10b981);
}

.compare-progress-fill.fill-regular {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.compare-progress-fill.fill-highest {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

/* 9. Desglose de Resumen y Cuotas Sugeridas */
.summary-installment-teaser {
  background: rgba(56, 189, 248, 0.06);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-share-action {
  color: #c084fc !important;
}

.btn-share-action:hover {
  color: #ffffff !important;
  background: rgba(168, 85, 247, 0.2) !important;
}

/* 10. Accesos Directos en Estado Vacío */
.cart-empty-shortcuts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.shortcut-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-color);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shortcut-pill-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
}

/* 11. Menú Flotante FAB para Mobile */
.cart-mobile-fab-container {
  display: none;
}

@media (max-width: 768px) {
  .cart-mobile-fab-container {
    display: block;
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 1000;
  }

  .cart-mobile-fab-trigger {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
  }

  .cart-mobile-fab-trigger:active {
    transform: scale(0.92);
  }

  .cart-mobile-fab-menu {
    position: absolute;
    bottom: 64px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    animation: cartFadeSlideIn 0.2s ease;
  }

  .cart-fab-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    transition: all 0.15s ease;
  }

  .cart-fab-action-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
  }

  .cart-fab-action-btn.fab-official {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
  }

  .cart-fab-action-btn.fab-share {
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
  }

  .desktop-header-actions {
    display: none !important;
  }
}

/* ========================================================================= */
/* 21ST.DEV & 3D DEPTH ENGINE (Taste Skill & Impeccable UI Edition)          */
/* ponytail: Perspectiva 3D multicapa, brillo especular dinámico y elevación */
/* ========================================================================= */

/* Contenedores con perspectiva espacial */
.products-grid,
.offers-carousel-track,
.features-grid,
.gaming-grid {
  perspective: 1200px;
}

/* ponytail: Capas 3D interiores del producto con elevación física sutil en el eje Z */
.product-card .product-img-wrapper {
  transform-style: preserve-3d;
}

.product-card .product-img-wrapper img {
  transform: translateZ(8px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), filter 0.35s ease;
}

.product-card:hover .product-img-wrapper img,
.product-card.is-tilting .product-img-wrapper img {
  transform: translateZ(12px) scale(1.02);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
}

.product-card .product-badges {
  transform: translateZ(12px);
}

.product-card .btn-fav-card {
  transform: translateZ(10px);
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.product-card .product-details {
  transform-style: preserve-3d;
}

.product-card .product-actions {
  transform: translateZ(8px);
}

.product-card .product-name {
  transform: translateZ(4px);
}

.product-card .product-price-row {
  transform: translateZ(6px);
}

/* Capa de brillo especular dinámico suavizada (21st.dev Specular Glare) */
.card-specular-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 75%
  );
  mix-blend-mode: overlay;
  transition: opacity 0.35s ease;
  z-index: 8;
}

.product-card:hover .card-specular-glare,
.product-card.is-tilting .card-specular-glare,
.feature-card:hover .card-specular-glare,
.feature-card.is-tilting .card-specular-glare,
.gaming-card:hover .card-specular-glare,
.gaming-card.is-tilting .card-specular-glare {
  opacity: 0.65;
}

/* Elevación 3D en Feature Cards suavizada */
.feature-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translate3d(0, 0, 0);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.feature-card.is-tilting {
  transition: transform 0.08s ease-out, box-shadow 0.25s ease;
  transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translateY(-2px) translateZ(4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    0 12px 24px -6px rgba(0, 0, 0, 0.3),
    0 0 18px -4px var(--primary-glow);
}

.feature-card .feature-icon-wrapper {
  transform: translateZ(10px);
  transition: transform 0.35s ease;
}

.feature-card h3,
.feature-card p,
.feature-card .btn {
  transform: translateZ(6px);
}

/* Elevación 3D en Gaming Cards suavizada */
.gaming-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translate3d(0, 0, 0);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.gaming-card.is-tilting {
  transition: transform 0.08s ease-out, box-shadow 0.25s ease;
  transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translateY(-2px) translateZ(4px);
}

.gaming-card .gaming-card-icon {
  transform: translateZ(10px);
}

.gaming-card .gaming-card-info {
  transform: translateZ(6px);
}

/* Tacto refinado y micro-interacciones para Category Chips (21st.dev Taste) */
.cat-chip {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.cat-chip:active {
  transform: translateY(1px) scale(0.97);
}

/* Micro-resalte y suavizado en encabezados display */
.section-title h2 {
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
}

.product-price-row {
  font-variant-numeric: tabular-nums;
}

/* Accesibilidad y modo touch: Desactivar inclinación 3D para evitar tirones */
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .product-card,
  .feature-card,
  .gaming-card,
  .product-img-wrapper img,
  .product-badges,
  .product-actions,
  .feature-icon-wrapper,
  .gaming-card-icon {
    transform: none !important;
    transform-style: flat !important;
  }
  .card-specular-glare {
    display: none !important;
  }
}

/* ========================================================================= */
/* OPTIMIZACIÓN MÓVIL ALTO RENDIMIENTO — SAMSUNG GALAXY A / MOTO G / REDMI NOTE */
/* ponytail: Ajustes ergonómicos, 2 columnas compactas y aceleración por GPU */
/* sin tirones para procesadores Helio G85/G99, Exynos 850 y Snapdragon 680  */
/* ========================================================================= */

@media (max-width: 768px) {
  /* 1. Eliminación de GPU blur passes pesados en barras fijas para 60 FPS estables */
  .navbar-container,
  .mobile-cta-bar,
  .pre-scroll-item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .navbar-container {
    background-color: rgba(14, 19, 31, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .mobile-cta-bar {
    background-color: rgba(7, 9, 14, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* 2. Ocultar botón flotante duplicado de WhatsApp para evitar colisión con la barra inferior */
  .whatsapp-widget {
    display: none !important;
  }

  /* 3. Margen inferior de seguridad para que la barra fija no tape productos */
  .app-main-content {
    padding-bottom: 75px !important;
  }

  /* 4. Optimización de memoria en scroll continuo para teléfonos de 3GB/4GB RAM */
  .product-card {
    content-visibility: auto;
    contain-intrinsic-size: 0 280px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
  }

  /* Desactivar animaciones continuas de sombra difusa que recalientan la GPU */
  .offers-carousel-track .product-card::after {
    animation: none !important;
    display: none !important;
  }
  .badge-oferta {
    animation: none !important;
  }
}

/* Teléfonos móviles estándar (Samsung Galaxy A, Moto G, Redmi Note: 360px a 480px) */
@media (max-width: 480px) {
  /* Grilla compacta de 2 columnas con proporción áurea en pantallas de 360px a 430px */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 2px !important;
  }

  .product-card {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  /* Contenedor de imagen optimizado */
  .product-img-wrapper {
    height: 125px !important;
    padding: 8px !important;
    background-color: #ffffff !important;
  }

  .product-img-wrapper img {
    max-width: 86% !important;
    max-height: 86% !important;
  }

  /* Botón de favoritos compacto para no tapar la foto del producto */
  .btn-fav-card {
    width: 28px !important;
    height: 28px !important;
    top: 8px !important;
    right: 8px !important;
    font-size: 0.72rem !important;
    border-radius: 50% !important;
  }

  /* Badges de estado con padding reducido */
  .product-badges {
    top: 8px !important;
    left: 8px !important;
    gap: 4px !important;
  }

  .product-badges .badge-state,
  .product-badges .badge-hero-marvel {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    letter-spacing: 0.02em !important;
  }

  /* Detalles del producto con tipografía clampada de 2 líneas */
  .product-details {
    padding: 8px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .product-category {
    font-size: 0.68rem !important;
    margin-bottom: 2px !important;
    opacity: 0.75;
  }

  .product-name {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
    min-height: 2.5em !important;
    max-height: 2.5em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 4px !important;
  }

  .product-price-row {
    margin-bottom: 4px !important;
  }

  .product-price {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
  }

  .product-stock {
    font-size: 0.68rem !important;
    margin-bottom: 6px !important;
  }

  /* Botón táctil ergonómico con feedback táctil inmediato */
  .product-actions .btn {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .product-actions .btn:active {
    transform: scale(0.97) !important;
  }

  /* Hero Carousel: Ocultar flechas laterales para maximizar el área táctil */
  .carousel-control {
    display: none !important;
  }

  .carousel-container {
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }

  .carousel-info {
    padding: 14px 16px !important;
  }

  .carousel-info h1 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }

  .carousel-info p {
    font-size: 0.8rem !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .carousel-info .btn {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }

  /* Barra de categorías horizontal táctil suave */
  .category-nav-content {
    gap: 6px !important;
    padding: 6px 10px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .cat-chip {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  /* Ocultar flechas del navbar de categorías en pantallas pequeñas para ganar espacio */
  .cat-nav-arrow {
    display: none !important;
  }
}

/* Pantallas súper compactas (Samsung Galaxy A03, A10, 360px) */
@media (max-width: 380px) {
  .brand .logo-text {
    font-size: 1.35rem !important;
  }
  .brand .logo-subtext {
    font-size: 0.55rem !important;
  }
  .nav-links {
    gap: 4px !important;
  }
  .nav-links .btn {
    padding: 4px 6px !important;
    min-width: 32px !important;
  }
  .products-grid {
    gap: 8px !important;
  }
  .product-img-wrapper {
    height: 115px !important;
  }
}


/* ========================================================================= */
/* ENTREGA DE EFECTIVO — PAGO MIXTO INTERACTIVO                             */
/* ========================================================================= */

.payment-option-downpayment {
  background: rgba(59, 130, 246, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: var(--border-radius-sm);
  margin-top: 8px;
  padding: 14px !important;
  transition: all 0.25s ease;
}

.payment-option-downpayment:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.35) !important;
}

.downpayment-icon {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #3b82f6 !important;
  font-size: 0.95rem !important;
  width: 36px !important;
  height: 36px !important;
}

.dp-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.dp-title {
  color: var(--text-color);
  font-size: 0.98rem;
  font-weight: 700;
}

.dp-tag-pill {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.dp-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  display: block;
  margin-bottom: 12px;
}

.downpayment-calc-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.downpayment-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.downpayment-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.downpayment-label i {
  color: #3b82f6;
}

.downpayment-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.downpayment-prefix {
  position: absolute;
  left: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: #10b981;
  pointer-events: none;
}

.downpayment-input {
  width: 100%;
  padding: 9px 12px 9px 28px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text-color) !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--border-radius-sm) !important;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

:root:not([data-theme="dark"]) .downpayment-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

.downpayment-input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.downpayment-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Mini Cards de Desglose */
.dp-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.dp-card {
  padding: 9px 10px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

:root:not([data-theme="dark"]) .dp-card {
  background: #f8fafc;
}

.dp-card-entry {
  border-left: 3px solid #10b981;
}

.dp-card-remaining {
  border-left: 3px solid #3b82f6;
}

.dp-card-list {
  border-left: 3px solid #f59e0b;
}

.dp-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.dp-card-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-color);
}

.dp-card-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.text-emerald { color: #10b981 !important; }
.text-amber { color: #f59e0b !important; }
.text-blue { color: #3b82f6 !important; }

/* Lista de Cuotas del Saldo */
.dp-installments-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-color);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dp-installments-header i {
  color: #3b82f6;
}

.dp-cuotas-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.dp-cuota-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  font-size: 0.82rem;
  transition: background 0.2s ease;
}

:root:not([data-theme="dark"]) .dp-cuota-row {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.dp-cuota-row:hover {
  background: rgba(59, 130, 246, 0.08);
}

.dp-cuota-row.promo-row {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}

.dp-cuota-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-color);
}

.dp-badge-promo {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.dp-cuota-val {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.dp-cuota-amount {
  font-weight: 700;
  color: #3b82f6;
}

.dp-cuota-row.promo-row .dp-cuota-amount {
  color: #10b981;
}

.dp-cuota-total {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dp-actions-footer {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.detail-view-all-cuotas-btn {
  font-size: 0.78rem !important;
  padding: 6px 12px !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #60a5fa !important;
  background: rgba(59, 130, 246, 0.06) !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.detail-view-all-cuotas-btn:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

.dp-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.84rem;
  line-height: 1.4;
}

.dp-alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.dp-alert-success i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Modal de Cuotas: Header de Entrega de Efectivo */
.modal-downpayment-header {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

:root:not([data-theme="dark"]) .modal-downpayment-header {
  background: rgba(0, 0, 0, 0.03);
}

.modal-dp-intro {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-dp-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.modal-dp-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 170px;
}

.modal-dp-input {
  width: 100%;
  padding: 7px 12px 7px 26px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--text-color) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--border-radius-sm) !important;
  outline: none;
  font-family: inherit;
}

:root:not([data-theme="dark"]) .modal-dp-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

.modal-dp-input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.dp-currency-sym {
  position: absolute;
  left: 10px;
  font-weight: bold;
  color: #10b981;
  pointer-events: none;
}

.modal-dp-summary-container {
  margin-bottom: 14px;
}

.modal-dp-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dp-chip {
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

:root:not([data-theme="dark"]) .dp-chip {
  background: #f8fafc;
}

.dp-chip strong {
  color: var(--text-color);
}


/* ========================================================================= */
/* CALCULADORA DE CUOTAS PARA ADMINISTRADOR                                 */
/* ========================================================================= */

.admin-cuotas-calculator-card {
  position: relative;
  overflow: hidden;
}

.admin-calc-panel {
  border-radius: var(--border-radius-sm);
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  padding: 10px;
}

:root:not([data-theme="dark"]) .admin-calc-panel {
  background: #f8fafc;
}


/* ========================================================================= */
/* BANNER DE EVENTO ESPECIAL EN VIVO (CYBER MONDAY / PROMOS CON TIMER)      */
/* ========================================================================= */

.active-event-banner {
  margin: 12px 0 18px 0;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

:root:not([data-theme="dark"]) .active-event-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.active-event-banner::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: bannerShine 5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes bannerShine {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.event-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.event-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #10b981 0%, #00ffcc 100%);
  color: #0b1329;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

.event-banner-badge i {
  font-size: 0.95rem;
  color: #0b1329;
}

.event-banner-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-banner-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.event-banner-title strong {
  color: #10b981;
}

.event-banner-details {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.event-banner-details strong {
  color: var(--text-color);
}

.event-banner-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:root:not([data-theme="dark"]) .event-banner-countdown {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

.countdown-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.countdown-label i {
  color: #10b981;
}

.countdown-digits {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #00ffcc;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
  letter-spacing: 0.5px;
}

:root:not([data-theme="dark"]) .countdown-digits {
  color: #059669;
  text-shadow: none;
}

.countdown-digits .cd-part strong {
  color: inherit;
}

.event-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-banner-cta {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 7px 16px !important;
  border: none !important;
  border-radius: var(--border-radius-sm) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.event-banner-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.7) !important;
}

.event-banner-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.event-banner-close:hover {
  color: var(--danger-color);
}

/* Cyber Theme Enhanced Event Badges */
body.theme-cyber .badge-event-discount {
  background: linear-gradient(135deg, #10b981 0%, #00ffcc 100%) !important;
  color: #0b1329 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.6) !important;
  border: 1px solid #00ffcc !important;
}

body.theme-cyber .badge-event-discount i {
  color: #0b1329 !important;
}

@media (max-width: 768px) {
  .event-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  .event-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  .event-banner-cta {
    flex: 1;
    text-align: center;
  }
  .event-banner-countdown {
    width: 100%;
    justify-content: space-between;
  }
}

/* ========================================================================= */
/* MODO ADAPTATIVO DE BAJO RENDIMIENTO (html.low-end — Celulares y PCs Gama Baja) */
/* Se activa automáticamente en equipos con <= 4GB RAM, <= 4 núcleos, 2G/3G, */
/* pantallas táctiles móviles o ?lite=1. En PCs de escritorio potentes no    */
/* altera ningún efecto visual.                                              */
/* ========================================================================= */
.product-card:hover,
.product-card.is-tilting,
.feature-card:hover,
.feature-card.is-tilting,
.gaming-card:hover,
.gaming-card.is-tilting {
  will-change: transform;
}

html.low-end .navbar-container,
html.low-end .mobile-cta-bar,
html.low-end .pre-scroll-item,
html.low-end .modal-overlay,
html.low-end .modal-content,
html.low-end .cart-drawer,
html.low-end .glass-panel,
html.low-end .advanced-filters-sidebar,
html.low-end .detail-price-card,
html.low-end .active-event-banner {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.low-end .product-card,
html.low-end .feature-card,
html.low-end .gaming-card {
  transform: none !important;
  transform-style: flat !important;
  will-change: auto !important;
}

html.low-end .product-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
}

html.low-end .card-specular-glare,
html.low-end .gaming-card-glow,
html.low-end .offers-carousel-track .product-card::after {
  display: none !important;
  animation: none !important;
}

html.low-end .badge-oferta,
html.low-end .active-event-banner,
html.low-end .whatsapp-btn,
html.low-end .infancia-particle {
  animation-iteration-count: 1 !important;
}

