/* GENERAL  */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
  padding-top: 40px;
}

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

/* HEADER */
.header-bar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-right {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(to right, #00f, #a100ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  color: #444;
}

.nav-link:hover {
  text-decoration: underline;
}

.cart-button {
  font-weight: bold;
  color: #444;
  background: linear-gradient(to right, #00f, #a100ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.cart-button:hover {
  opacity: 0.8;
}

/* PRODUCTOS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  width: 100%;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: scale(1.03);
}

.product-card img {
  width: 100%;
  border-radius: 10px;
}

.product-card h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

.price {
  font-weight: bold;
  font-size: 1.2rem;
}

.old-price {
  color: gray;
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* BOTÓN DESTACADO */
.carrito-button {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.9rem 1.7rem;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  background: linear-gradient(to right, #00f, #a100ff);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.carrito-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* FONDO DEGRADADO SOLO EN CARRITO */
body.carrito-body {
  background: linear-gradient(to right, #f5f7ff, #f9f0ff);
  min-height: 100vh;
}

/* CARRITO STYLES */
.carrito-container {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.carrito-container h1 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.carrito-info-msg {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* PRODUCTOS */
#carrito-lista {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

#carrito-lista li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

#carrito-lista img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

/* DIVISOR */
.carrito-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 1.5rem auto;
  width: 80%;
}

/* TOTAL */
#carrito-total {
  font-size: 1.4rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 2rem;
}

/* BOTONES */
.carrito-botones {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.carrito-btn-primary,
.carrito-btn-secondary {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.carrito-btn-primary {
  background: linear-gradient(to right, #00f, #a100ff);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carrito-btn-secondary {
  background: #eee;
  color: #333;
}

.carrito-btn-primary:hover,
.carrito-btn-secondary:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ANIMACIÓN ENTRADA PRODUCTOS */
@keyframes fadeInUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-right {
    align-self: flex-end;
  }
}
.barra-oferta {
  background: linear-gradient(to right, #00f, #a100ff);
  color: white;
  overflow: hidden;
  white-space: nowrap;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.8rem 0;
  position: relative;
  z-index: 999;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(161, 0, 255, 0.5);
  width: 100%;
  box-sizing: border-box;
}

/* Líneas superiores e inferiores */
.barra-oferta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: #e4d75f;
}

.barra-oferta::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: #e4d75f;
}

.oferta-marquee {
  display: inline-block;
  
  animation: moverTextoDerecha 40s linear infinite;
}

.oferta-marquee span {
  display: inline-block;
  padding: 0 2rem;
  user-select: none;
}

/* Animación desplazamiento hacia la derecha */
@keyframes moverTextoDerecha {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}
/* Contenedor de controles */
.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9f9fb;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #e0e0e5;
}

/* Botones + y – */
.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.quantity-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

/* Display de la cantidad */
.quantity-display {
  min-width: 24px;
  text-align: center;
  font-weight: 500;
  color: #333;
}


/* Contenedor de los botones de PayPal */
.paypal-methods {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centra horizontalmente */
  justify-content: center;   /* centra verticalmente si hiciera falta */
  gap: 0.75rem;
  max-width: 320px;
  width: 100%;
  margin: 2rem auto;         /* margen superior e inferior + auto para centrar */
}

/* Asegura que el botón de PayPal llene todo el ancho del contenedor */
.paypal-methods > div {
  width: 100% !important;
}
.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-link:hover .product-card {
  transform: scale(1.02);
}



/* --- Divider Animado --- */
.divider {
  width: 100%;
  height: 8px;
  border: none;
  margin: 2rem 0;
  background: linear-gradient(-45deg, #00f, #a100ff, #00f, #a100ff);
  background-size: 400% 400%;
  animation: gradientAnim 8s ease infinite;
}

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