body {
  margin: 0;
  font-family: 'Arial Black', Arial, sans-serif;
  background: #0a0a0a;
  color: white;
}

/* HEADER */
.header {
  text-align: center;
  padding: 30px 20px;
  background: black;
  border-bottom: 1px solid #222;
}

.header h1 {
  font-size: 28px;
  letter-spacing: 2px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

/* CARD */
.card {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  position: relative;
}

.card:hover img {
  transform: scale(1.1);
}

.card img {
  transition: 0.4s;
}

/* IMAGEN */
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: contrast(1.1);
}

/* TEXTO */
.card h3 {
  padding: 10px;
  font-size: 16px;
}

.card p {
  padding: 0 10px;
  color: #00ff88;
  font-weight: bold;
}

/* BOTON */
.boton {
  display: block;
  margin: 10px;
  padding: 10px;
  background: transparent;
  border: 1px solid #ff0033;
  color: #ff0033;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.boton:hover {
  background: #ff0033;
  color: white;
}

/* CARRITO */
.carrito {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  max-width: 90%;
  height: 100%;
  background: #111;
  padding: 20px;
  z-index: 1000;
  border-left: 1px solid #222;
  box-shadow: -5px 0 20px rgba(0,0,0,0.5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.carrito.activo {
  transform: translateX(0);
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

.overlay.activo {
  opacity: 1;
  pointer-events: all;
}

/* BOTON WSP */
.boton-wsp {
  background: #00ff88;
  border: none;
  padding: 10px;
  width: 100%;
  margin-top: 20px;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

/* TAG */
.card::after {
  content: "UNDER";
  position: absolute;
  top: 10px;
  left: -40px;
  transform: rotate(-45deg);
  background: #ff0033;
  color: white;
  padding: 3px 40px;
  font-size: 10px;
}

/* ANIMACION */
.animado {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.animado.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
  .header h1 {
    font-size: 20px;
  }

  .grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px;
    scroll-snap-type: x mandatory;
  }

  .grid::-webkit-scrollbar {
    display: none;
  }

  .card {
    min-width: 75%;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .card img {
    height: 150px;
  }

  .boton {
    font-size: 12px;
    padding: 8px;
  }

  .carrito {
    width: 85%;
    border-radius: 12px 0 0 12px;
  }
}

/* LISTA CARRITO */
#lista-carrito {
  max-height: 40vh;
  overflow-y: auto;
}

/* CONTADOR */
#contador {
  background: #ff0033;
  border-radius: 50%;
  padding: 3px 8px;
  font-size: 12px;
}

#contador.animar {
  animation: rebote 0.3s ease;
}

@keyframes rebote {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* TALLES */
.talles {
  display: flex;
  gap: 8px;
  padding: 10px;
}

.talle-btn {
  background: transparent;
  border: 1px solid #444;
  color: white;
  padding: 6px 10px;
  cursor: pointer;
}

.talle-btn.activo {
  background: #ff0033;
  border-color: #ff0033;
}

/* SELECTORES */
.selector-codigo {
  margin: 10px;
  width: calc(100% - 20px);
  padding: 8px;
  background: #111;
  color: white;
  border: 1px solid #333;
  border-radius: 5px;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
}

.modal.activo {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 70%;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  cursor: pointer;
}

.controles button {
  margin: 10px;
  padding: 10px;
}

/* CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: 0.5s;
}

.carousel img.activo {
  opacity: 1;
}

/* BOTON FLOTANTE */
.wsp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00ff88;
  color: black;
  padding: 15px;
  border-radius: 50%;
  font-size: 20px;
  z-index: 1000;
}

/* HEADER DEL CARRITO */
.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cerrar-carrito {
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s;
}

.cerrar-carrito:hover {
  transform: scale(1.2);
  color: #ff0033;
}

/* MÉTODO DE PAGO */
.pago-selector {
  margin: 15px 0;
  padding: 12px;
  border: 1px solid #222;
  border-radius: 8px;
  background: #0a0a0a;
}

.pago-opcion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  margin-bottom: 4px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
}

.pago-opcion:hover {
  background: #1a1a1a;
}

.pago-opcion input[type="radio"] {
  accent-color: #ff0033;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.pago-tag {
  margin-left: auto;
  font-size: 11px;
  color: #00ff88;
  background: #001a0d;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #00ff8844;
}