* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Configuración del Video de Fondo */
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 13, 13, 0.75); /* Oscurece el video para legibilidad */
  z-index: -1;
}

/* Header con la imagen de fondo detrás del contenido */
header {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)), url('images/fondo-header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px 20px 40px 20px;
  text-align: center;
  border-bottom: 1px solid #222;
  z-index: 1;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

.logos-chicos {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo-pequeno {
  height: 45px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.btn-cart {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cart:hover {
  transform: scale(1.05);
  background-color: #e6e6e6;
}

#cart-count {
  background-color: #00e676;
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
}

.banner-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-titulo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
}

.bio-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Frase con estilo urbano graffiti/tagging */
.bio-destacado-urbano {
  font-family: 'Permanent Marker', 'Rock Salt', cursive, sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1.5px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  line-height: 1.4;
}

.highlight-verde {
  color: #00e676;
  text-shadow: 0 0 12px rgba(0, 230, 118, 0.5);
}

.bio-sub {
  font-size: 1rem;
  color: #cccccc;
  font-weight: 400;
  margin-bottom: 5px;
}

.bio-tag {
  font-size: 0.9rem;
  color: #aaaaaa;
}

/* Navegación por categorías */
.categorias-bar {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  overflow-x: auto;
  background-color: #121212;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

.categorias-bar::-webkit-scrollbar {
  height: 4px;
}

.categorias-bar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.btn-cat {
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cat:hover {
  background-color: #2a2a2a;
  border-color: #555;
}

.btn-cat.active {
  background-color: #ffffff;
  color: #000000;
  font-weight: 600;
  border-color: #ffffff;
}

.btn-liquidacion {
  border-color: #ff3333;
  color: #ff4d4d;
  font-weight: 600;
}

.btn-liquidacion.active {
  background-color: #ff3333;
  color: #ffffff;
}

/* Grilla del Catálogo (Escritorio/PC) */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px 20px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.producto-card {
  background-color: rgba(22, 22, 22, 0.92);
  backdrop-filter: blur(5px);
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.producto-card:hover {
  transform: translateY(-5px);
  border-color: #444;
}

.img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #000;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.producto-card:hover .img-container img {
  transform: scale(1.05);
}

.prod-detalles {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.prod-detalles h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #eee;
}

.prod-detalles .precio {
  font-size: 1.15rem;
  font-weight: 800;
  color: #00e676;
  margin-bottom: 12px;
}

.btn-elegir {
  width: 100%;
  background-color: #222;
  color: #fff;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.producto-card:hover .btn-elegir {
  background-color: #00e676;
  color: #000;
  border-color: #00e676;
}

/* Modal Detalle de Producto */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content.modal-grande {
  background-color: #141414;
  border: 1px solid #333;
  border-radius: 16px;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-img-col {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-feed-scroll {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-feed-scroll img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.modal-info-col {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#modal-titulo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.precio-modal {
  font-size: 1.6rem;
  font-weight: 800;
  color: #00e676;
  margin-bottom: 25px;
}

.opciones-inline {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.selector-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selector-item label {
  font-size: 0.85rem;
  color: #aaa;
}

.selector-item select,
.selector-item input {
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}

.btn-wsp-directo {
  background-color: #00e676;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

.btn-wsp-directo:hover {
  background-color: #00c853;
  transform: scale(1.02);
}

/* Drawer / Carrito Lateral */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background-color: #121212;
  border-left: 1px solid #222;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-drawer.active {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
}

.cart-overlay.active {
  display: block;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-empty-text {
  color: #666;
  text-align: center;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #1a1a1a;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #262626;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-details h4 {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.cart-item-details p {
  font-size: 0.75rem;
  color: #888;
}

.cart-item-details .precio {
  color: #00e676;
  font-weight: 600;
  margin-top: 2px;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #222;
  background-color: #161616;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

#cart-total-price {
  color: #00e676;
}

.cart-checkout-btn {
  width: 100%;
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-checkout-btn:hover {
  background-color: #1ebd56;
}

/* Footer */
footer {
  background-color: #080808;
  border-top: 1px solid #222;
  padding: 30px 20px;
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-title {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.icono-red {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.icono-red:hover {
  transform: scale(1.15);
}

.copyright {
  font-size: 0.8rem;
  color: #555;
}

/* Responsivo Exclusivo para Celulares */
@media (max-width: 768px) {
  .catalogo-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 productos por fila en celular */
    gap: 6px;
    padding: 10px 5px;
  }

  .producto-card {
    border-radius: 8px;
  }

  .prod-detalles {
    padding: 6px 4px;
  }

  .prod-detalles h3 {
    font-size: 0.7rem;
    margin-bottom: 4px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .prod-detalles .precio {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .btn-elegir {
    padding: 5px 2px;
    font-size: 0.65rem;
    border-radius: 5px;
  }

  .modal-content.modal-grande {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }

  .modal-img-col {
    max-height: 280px;
  }

  .modal-info-col {
    padding: 20px;
  }

  .cart-drawer {
    width: 100%;
    right: -100%;
  }

  .bio-destacado-urbano {
    font-size: 1.2rem;
  }
}