:root {
  --negro: #000000;
  --dorado: #FFD700;
  --plateado: #C0C0C0;
}

@keyframes aparecer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  margin: 0;
  background-color: var(--negro);
  font-family: 'Orbitron', sans-serif;
  color: var(--plateado);
  background-image: url("back-ground lion.png");
  background-size: cover;
  background-position: center 60px;
  min-height: 100vh;
  animation: aparecer 2s ease-in-out 0.5s forwards;
  opacity: 0;
  overflow-x: hidden;
}

 h2{
  color: var(--dorado);
    font-size: 2.5rem;
}

/* ====== CARRITO ====== */
.contenedor-carrito {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  padding: 3rem;
  text-align: center;
}

/* ====== PRODUCTOS DENTRO DEL CARRITO ====== */
.producto {
  border: 1px solid var(--plateado);
  border-radius: 10px;
  padding: 1rem;
  background-color: #111;
  text-align: center;
  width: 100%;
  max-width: 250px;
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: scale(1.03);
}

.producto img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 11 / 14;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.producto h3 {
  color: var(--plateado);
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

.producto p {
  color: var(--dorado);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

/* ====== BOTÓN ELIMINAR ====== */
.eliminar {
  background-color: crimson;
  color: white;
  border: none;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.eliminar:hover {
  background-color: darkred;
  transform: scale(1.05);
}

/* ====== SUGERENCIAS ====== */
.sugerencias {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 30px;
}

#sugerencias {
  display: none;
}

.sugerencias > .sugerencias {
  flex-basis: 100%;
  justify-content: center;
  padding: 0;
}

.sugerencias > .sugerencias h2 {
  margin: 0;
}

.sugerencias h2{
  font-size: 2rem;
  font-weight: 700;
  color: var(--plateado);
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
  letter-spacing: 1px;
}
.sugerencias h2 i {
  margin-left: 0.5rem;
  color: #ffaa00;
  filter: drop-shadow(0 0 5px #ffaa00);
}

.sugerencias .card {
  width: 100%;
  max-width: 300px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffcc00;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sugerencias .card img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 11 / 8;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.sugerencias .card h3 {
  color: #ffc107;
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: bold;
}

.sugerencias .card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.8);
}

/* ====== FOOTER ====== */
footer {
  background-color: #111;
  color: var(--plateado);
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--plateado);
  margin-top: 50px;
}

footer a {
  color: var(--dorado);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

.carrito-total {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid gold;
  border-radius: 15px;
  padding: 15px;
  width: min(280px, 100%);
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.5s ease;
}

#totalCarrito {
  font-size: 1.4rem; /* 🔹 Aumenta o disminuye según necesites */
  font-weight: bold;
  color: var(--plateado); /* o usa #FFD700 si no tienes la variable */
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  letter-spacing: 1px;
}
.checkout-options,
.checkout-methods {
  margin-top: 10px;
  text-align: left;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(10, 10, 10, 0.6);
}

.checkout-option-title {
  margin: 0 0 8px;
  color: var(--dorado);
  font-size: 0.95rem;
  font-weight: 700;
}

.checkout-option-item,
.checkout-method-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: var(--plateado);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkout-option-item input,
.checkout-method-item input {
  accent-color: #FFD700;
}

.checkout-option-hint {
  margin: 7px 0 0;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.checkout-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cart-link {
  position: relative;
  color: #fff;
  text-decoration: none;
}

#cartCount {
  position: absolute;
  top: -13px;
  right: 65px;

  background: #FFD700;
  color: #000;

  font-size: 9px;
  font-weight: bold;

  padding: 4px 5px;
  border-radius: 50%;
  min-width: 9px;
  text-align: center;
  display: none; /* 👈 solo JS lo controla */
  pointer-events: none; /* no interfiere con hover */
  z-index: 9999;
}

#btnPagar {
  margin-top: 10px;
  background: linear-gradient(90deg, gold, orange);
  color: black;
  font-weight: bold;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#btnPagar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px gold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


.cantidad-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cantidad-control button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #FFD700;
  background: transparent;
  color: #FFD700;
  font-size: 18px;
  cursor: pointer;
}

.cantidad-control input {
  width: 50px;
  height: 32px;
  text-align: center;
  background: transparent;
  border: 1px solid #FFD700;
  border-radius: 8px;
  color: #FFD700;
  font-weight: bold;
}

/* 🔥 QUITAR FLECHAS DEL INPUT NUMBER */
.cantidad-control input::-webkit-inner-spin-button,
.cantidad-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cantidad-control {
  display: flex;
  justify-content: center;   /* 👈 centra horizontal */
  align-items: center;       /* 👈 centra vertical */
  margin: 10px auto;         /* 👈 lo centra dentro del card */
}

.contenedor-eliminar-todo {
  display: none; /* 🔹 Oculto por defecto */
  justify-content: flex-end;
  align-items: end;
  margin-right: 2rem;
  padding: 1rem 3rem;
  margin-top: 1rem;
}

#contenedorEliminarTodo {
  display: none;
  justify-content: flex-end;
  margin-top: 20px;
  margin-right: 3rem;
}

#contenedorAccionesPedido {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  margin-right: 3rem;
}

#btnVerEstadoPedido {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(90deg, #1f2937, #111827);
  border: 1px solid var(--dorado);
  color: var(--plateado);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, color 0.2s ease;
}

#btnVerEstadoPedido:hover {
  transform: scale(1.04);
  color: var(--dorado);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
}

#btnEliminarTodo {
  background: linear-gradient(90deg, crimson, darkred);
  color: white;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

#btnEliminarTodo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
}

/* ===== MODAL GLOBAL (JS) ===== */
.modal-js {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-js.hidden {
  display: none;
}

.modal-js-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  width: min(320px, calc(100% - 2rem));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.modal-js-content p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333;
}

.modal-js-content button {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-js-content button:hover {
  background: #333;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.55rem;
  }

  .contenedor-carrito {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1.2rem 0.8rem;
  }

  .producto {
    padding: 0.75rem;
  }

  .producto h3 {
    font-size: 0.98rem;
  }

  .producto p {
    font-size: 1rem;
  }

  #contenedorEliminarTodo {
    margin-right: 0;
    padding: 0 0.8rem;
    justify-content: center;
  }

  #contenedorAccionesPedido {
    margin-right: 0;
    padding: 0 0.8rem;
    justify-content: center;
  }

  #btnEliminarTodo {
    width: 100%;
    justify-content: center;
  }

  #btnVerEstadoPedido {
    width: 100%;
    justify-content: center;
  }

  .sugerencias {
    gap: 1rem;
    padding: 1rem 0.8rem;
  }

  .sugerencias h2 {
    font-size: 1.35rem;
    text-align: center;
  }

  .sugerencias .card {
    padding: 14px;
  }

  .carrito-total {
    padding: 12px;
  }

  #totalCarrito {
    font-size: 1.15rem;
  }
.checkout-options,
.checkout-methods {
  margin-top: 10px;
  text-align: left;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(10, 10, 10, 0.6);
}

.checkout-option-title {
  margin: 0 0 8px;
  color: var(--dorado);
  font-size: 0.95rem;
  font-weight: 700;
}

.checkout-option-item,
.checkout-method-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: var(--plateado);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkout-option-item input,
.checkout-method-item input {
  accent-color: #FFD700;
}

.checkout-option-hint {
  margin: 7px 0 0;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.checkout-disabled {
  opacity: 0.55;
  pointer-events: none;
}

  footer {
    margin-top: 1.2rem;
    padding: 1.2rem 0.9rem;
  }
}

@media (max-width: 420px) {
  h2 {
    font-size: 1.22rem;
  }

  .contenedor-carrito {
    grid-template-columns: 1fr;
    padding: 1rem 0.65rem;
  }

  .producto {
    max-width: 100%;
  }

  .sugerencias h2 {
    font-size: 1.12rem;
  }

  .sugerencias .card h3 {
    font-size: 1.08rem;
  }

  .sugerencias .card p {
    font-size: 0.88rem;
  }

  .cantidad-control {
    gap: 8px;
  }

  .cantidad-control input {
    width: 44px;
  }
}

