body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #111827;
  color: #f3f4f6;
  overflow-x: hidden;
}

.page {
  margin: 10px auto;
  max-width: 100%;
  position: relative;
}

.page img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  cursor: pointer;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  z-index: 6;
  transition: opacity 0.3s ease;
}
header.hide-logo img {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* MENÚ LATERAL IZQUIERDO */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 14;
}

/* Menú lateral */
#mobileMenu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: #1f2937;
  color: #f3f4f6;
  padding: 20px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

/* Menú abierto */
#mobileMenu.open {
  left: 0;
}

/* Botón cerrar */
#mobileMenu .close-icon {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
}
#mobileMenu .close-icon:hover {
  color: #f3f4f6;
}

/* Header */
.menu-header {
  text-align: center;
  margin-bottom: 20px;
}

/* LISTA PRINCIPAL → empuja abajo */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;    
}
.menu-list li {
  margin: 14px 0;
}
.menu-list li a {
  color: #f3f4f6;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-list li a:hover {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255,255,255,0.6);
}

/* BLOQUE INFERIOR AGRUPADO */
.menu-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 50px;
}

/* Redes sociales */
.menu-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.menu-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #374151;
  color: #fff;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.menu-social a:hover {
  background: #4b5563;
  transform: scale(1.08);
}

/* Compartir catálogo */
.menu-share {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-share:hover {
  background: rgba(255,255,255,0.08);
}

/* CTA distribuidor */
.menu-distributor {
  padding: 14px 18px;
  text-align: center;
  background: #facc15;
  border-radius: 8px;
}
.menu-distributor a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}
.menu-distributor:hover {
  background: #fde047;
}

/**/
.menu-button{
  background:none;
  border:none;
  color:#f3f4f6;
  font-size:24px; 
  padding:15px;
  cursor:pointer;
}

.show-menu{
  display: flex;
}

/* Header */
.menu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 10px 20px;
  border-bottom: 1px solid #374151;
}
.menu-logo {
  height: 50px;
  margin-bottom: 15px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1d5db;
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.user-info i {
  font-size: 22px;
}

/* Lista de opciones */
.menu-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  flex: 1;
}
.menu-list li {
  margin-bottom: 14px;
}
.menu-list a,
.menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f3f4f6;
  background: none;
  border: none;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.menu-list a:hover,
.menu-list button:hover {
  background: #374151;
}


/* MODALES GENÉRICOS */

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 20;
}
.modal-content {
  background: #1f2937;
  color: #f3f4f6;
  padding: 20px;
  margin: 15px;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  position: relative;
}
.modal-content h2 {
  font-size: 1.3rem;
  margin-top: 0;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-secondary {
  background: #374151;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Icono de cerrar minimalista */
.close-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
}
.close-icon:hover {
  color: #fff;
}

/* VISTA: UN PRODUCTO */
.single-prod-container {
  width: 90%;                
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #f3f4f6;
  gap: 10px;
  margin: 0 auto;
}

/* HEADER */
.header-line {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.prod-rating .stars {
  color: #facc15;
  font-size: 0.8rem;
}

.prod-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

/* Imagen carrusel */
.prod-swiper img,
.prod-swiper video {
  width: 200px; 
  border-radius: 10px;
}

/* Botón share */
.share-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  border: none;
  color: white;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
}

/* Precio */
.prod-price {
  font-size: 1.1rem;
  font-weight: bold;
}

/* Cantidad en línea */
.qty-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;  
  margin-top: 4px;
}

.qty-row label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.qty-select {
  background: #1a1f2d;
  color: #fff;
  border: 1px solid #374151;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;   
  color-scheme: dark;
}

.qty-row option {
  background-color: #111827; 
  color: #ffffff;
}
.qty-select option:checked {
  background-color: #1f2933; 
  color: #ffffff;
}

/* Botón largo */
.add-big-btn {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.add-big-btn i {
  font-size: 1.2rem;
}

/* VISTA: VARIOS PRODUCTOS */

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

/* CARD */
.product-card {
  display: flex;
  gap: 12px;
  background: #374151;
  border-radius: 10px;
  padding: 14px;
  align-items: flex-start;
  color: white;
}

.product-card img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.product-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Código Hanna */
.hanna-code {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Precio */
.product-card .price {
  color: #e5e7eb;
  font-size: 0.9rem;
  margin-top: 2px;
}

/* Contenedor horizontal */
.qty-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

/* Etiqueta */
.qty-row label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Caja estilo input largo */
.qty-box {
  flex: 1;
  margin: 0 12px;

  background: #ffffff10;
  border: 1px solid #4b5563;
  padding: 5px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  position: relative;
}

/* El select visible */
.qty-select {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
}

/* Evita outline feo en móviles */
.qty-select:focus {
  outline: none;
}

/* flecha personalizada */
.qty-box::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
  pointer-events: none;
}

.qty-select {
  color-scheme: dark; 
}

.qty-box option {
  background-color: #111827; 
  color: #ffffff;
}

@media (max-width: 480px) {
  .product-card {
    flex-direction: row;
    align-items: center;
  }

  .qty-row {
    gap: 6px;
  }
  .add-btn {
    width: 34px;
    height: 34px;
  }

  .add-btn i {
    font-size: 1rem;
  }
}

/* BOLSA FLOTANTE */

.floating-icons {
  position: fixed;
  right: 15px;
  bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
}
.floating-icons button {
  background: #1f2937;
  color: #f3f4f6;
  border: none;
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  cursor: pointer;
  font-size: 20px;
}
.floating-icons button:hover {
  background: #374151;
}

/* LOADER Y HINTS */

#tutorial-hint,
#no-products-alert {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #1f2937;
  color: #f3f4f6;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 10;
  font-size: 14px;
}
#no-products-alert {
  background: #7f1d1d;
  color: #fff;
}

/* AVISO SOBRE PÁGINA SIN PRODUCTOS */

.no-products-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(127,29,29,0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  z-index: 10;
}

/* Contenedor flotante de la bolsa */
.cart-float {
  position: fixed;
  right: 30px;
  bottom: 20px;
  z-index: 5;
}

/* Botón de la bolsa */
.cart-float button {
  position: relative;
  background: #111827;
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  font-size: 22px;
  transition: transform 0.2s ease, background 0.3s ease;
}

/* Hover con efecto */
.cart-float button:hover {
  transform: scale(1.1);
  background: #111827;
}

/* Badge con la cantidad */
.cart-float #cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

/* Animación de “pop” cuando se actualiza */
.cart-float #cart-count.pop {
  transform: scale(1.3);
}
/* Modal del carrito */
.cart-modal-content {
  background: #111827; 
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-modal-content h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 8px;
}

/* Ítems del carrito */
#cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  background: #1f2937;
  padding: 10px;
  border-radius: 8px;
  gap: 10px;
}

.cart-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 18px;
  cursor: pointer;

  flex-shrink: 0;      
}
.remove-btn:hover {
  color: #dc2626;
}
/* Para truncar correctamente */
.cart-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;    
}

/* Asegura que no crezca hacia fuera */
.cart-info {
  flex: 1;
  min-width: 0;         
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.cart-info .price {
  color: #9ca3af;
  font-size: 0.85rem;
}

#cart-list li span:first-child {
  flex: 1;
}

/* Botón pagar */
#pay-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}
#pay-btn:hover {
  background: #2563eb;
}

/**/
.tutorial-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(17, 24, 39, 0.95);
  color: #f3f4f6;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Contenido central */
.tutorial-content {
  text-align: center;
  max-width: 300px;
  animation: fadeIn 0.3s ease;
}

.tutorial-logo {
  height: 80px;
  margin-bottom: 20px;
}

.tutorial-content h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.tutorial-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #d1d5db;
}

/* Botón */
.tutorial-btn {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 9999px; 
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.tutorial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
}

.tutorial-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}


/* Animación simple */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.badges {
  margin: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  background: #374151;
  color: #f3f4f6;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.add-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 14px 16px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;

  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;

  transition: background 0.15s ease, transform 0.1s ease;
}

.add-btn:active {
  background: #1d4ed8;
  transform: scale(0.98);
}

/* ── Móvil pequeño (< 480px) ── */
@media (max-width: 480px) {
  .add-btn {
    width: 70px;
    padding: 16px;
    border-radius: 8px;
    font-size: 11px;
  }

  /* Ajustes para que .qty-row no se rompa */
  .qty-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
  }

  /* El label y el select no crecen, el botón tampoco desborda */
  .qty-row label {
    flex-shrink: 0;
    font-size: 11px;
  }

  .qty-box {
    flex-shrink: 0;
  }

  .qty-select {
    font-size: 11px;
    padding: 4px 2px;
  }
}

.add-btn i {
  font-size: 0.9rem;
}

.add-btn:hover {
  background: #1d4ed8;
}

.add-btn:active {
  transform: scale(0.97);
}

/* Contenido */
.loader {
  position: fixed;
  bottom: 15px;
  left: 15px;
  background: rgba(31, 41, 55, 0.9);
  color: #f3f4f6;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 7;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11;
  pointer-events: none;
}

.loading-overlay.show {
  display: flex;
  pointer-events: all;
}

.loading-overlay__box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 24, 39, 0.95);
  color: #f3f4f6;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 14px;
}

/* Spinner */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #374151;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animaciones */
@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

#page-indicator {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 7;
  background: rgb(17 24 39 / 72%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.page-indicator__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-indicator__goto input {
  width: 64px;
  background: linear-gradient(180deg, #0b1222, #0f172a);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.page-indicator__goto button {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9 45%, #2563eb);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.page-indicator__goto input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.page-indicator__goto button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.page-indicator__goto button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(14, 165, 233, 0.25);
}

#page-indicator img {
  display: block;
  vertical-align: middle;
}

/* Y asegura que el top-row no afecte desktop */
.page-indicator__top-row {
  display: contents; /* en desktop los hijos se comportan como si el div no existiera */
}

/* ── Móvil (< 480px) ── */
@media (max-width: 480px) {
  #page-indicator {
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    padding: 10px 14px;
    gap: 8px;
    max-width: calc(100vw - 32px);
    width: max-content;
  }

  /* Renglon 1: "1 / 5" + lupa en la misma línea */
  #page-indicator > span,
  #page-indicator > img {
    display: inline-flex;
    align-items: center;
  }

  /* Agrupa el span y la img en un flex row */
  #page-indicator-current {
    display: inline;
  }

  .page-indicator__top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
  }

  /* Renglon 2: input + botón abajo */
  .page-indicator__goto {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
  }

  .page-indicator__goto input {
    width: 80px;
    font-size: 14px;
    padding: 8px 10px;
  }

  .page-indicator__goto button {
    font-size: 13px;
    padding: 8px 14px;
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

.products-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100px;  
  height: auto;
  z-index: 5;
  pointer-events: none; 
  box-shadow: none !important;
  width: 150px !important;
}

.page {
  position: relative; 
}

.no-products-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.no-products-badge.show {
  display: block;
  opacity: 1;
}

.empty-products-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.empty-products-badge.show {
  display: block;
  opacity: 1;
}

.no-stock-overlay {
  position: absolute;
  inset: 0; 
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.70);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 10px;

  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 3;
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}

/* video sticker and modal*/

.video-button {
  position: absolute;
  top: 90px;
  right: 50px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  animation: videoBeat 2.2s ease-in-out infinite;
}

/* Animación beat */
@keyframes videoBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.video-button img {
  width: 80px;
  height: auto;
  display: block;
}

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 20;
  justify-content: center;
  align-items: center;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px; /* experiencia vertical de móvil */
  height: 100%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#video-player {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: black;
}

.video-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 22px;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 300;
}

#video-volume-btn i {
  font-size: 22px;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.play-icon {
  width: 95px;
  opacity: 0.85;
  animation: videoBeat 2.2s ease-in-out infinite;
}

.video-actions {
  position: absolute;
  right: 20px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 100;
}

.video-action-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#video-end-overlay {
  display: none;
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 20px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 200;
}

.share-end-btn,
.video-end-btn {
  margin-top: 10px;
  background: white;
  color: black;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.video-volume-slider {
  position: absolute;
  right: 90px;   
  bottom: 50px;
  height: 120px;
  width: 28px;
  background: rgba(0,0,0,0.4);
  border-radius: 14px;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 8px;
  z-index: 200;
}

#volume-range {
  width: 90px;
  height: 100%;
  transform: rotate(-90deg);
  appearance: none;
  background: transparent;
  cursor: pointer;
}

/* Estilo del thumb (la bolita del slider) */
#volume-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
}

#volume-range::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 10px;
}

/* Títulos más suaves pero visibles */
.no-stock-msg strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.no-stock-msg {
  width: 100%;
  max-width: 95%;
  line-height: 1.25;
  font-size: 1.4rem;
}

.no-stock-msg .hint {
  font-size: 1.1rem;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .no-stock-overlay {
    padding: 12px 8px;
    font-size: 0.80rem;
  }

  .no-stock-msg strong {
    font-size: 0.85rem;
  }

  .no-stock-msg .hint {
    font-size: 0.65rem;
  }
}


/* ============================
   SCROLLBAR ESTILO DELGADO
============================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: transparent;
}
::-webkit-scrollbar:hover-thumb {
  background: #4b5563;
}


::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ============================
   FIREFOX
============================ */
* {
  scrollbar-width: thin;             
  scrollbar-color: #4b5563 #0f172a;  
}

.hidden{
  display: none;
}

/* Survey widget */
.survey-trigger {
  position: fixed;
  right: 30px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
  cursor: pointer;
}

.survey-trigger img {
  width: 50px;
}

.survey-trigger span {
  font-size: 11px;
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.8);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.survey-trigger:hover {
  transform: scale(1.1);
}

.survey-modal-content {
  max-width: 420px;
}

.survey-block {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.survey-options,
.survey-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.survey-options label,
.survey-scale label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  border: 1px solid #374151;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.survey-block textarea {
  background: #111827;
  border: 1px solid #374151;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
}


/**/
#liveNotice{
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:9999;
  display:none;
}

#liveNotice img{
  width:12vw;
  min-width:120px;
  max-width:220px;
  height:auto;
  cursor:pointer;
}
