/* ===== RESET Y BASE PREMIUM ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: #0b0c10;
  color: #c5c6c7;
  text-align: center;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(69, 252, 224, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(102, 51, 153, 0.08), transparent 25%);
}

/* ===== HEADER LOGO ===== */
.header-logo {
  padding: 30px 0;
  margin: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.header-logo a {
  display: block;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.logo {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 48.8% 50%;
  margin: 0;
  padding: 0;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(69, 252, 224, 0.4));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 20px rgba(69, 252, 224, 0.8));
}

/* ===== BOTÓN VOLVER ===== */
.btn-volver {
  position: fixed;
  top: 20px;
  left: 20px;
  background: transparent;
  border: 1px solid rgba(69, 252, 224, 0.3);
  color: #45fce0;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.btn-volver:hover {
  transform: scale(1.1);
  background: rgba(69, 252, 224, 0.1);
  box-shadow: 0 0 15px rgba(69, 252, 224, 0.5);
  color: #fff;
}

/* ===== SECCIÓN BIENVENIDA ===== */
.productos {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(11, 12, 16, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease;
}

.productos h2 {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(69, 252, 224, 0.3);
  font-weight: 600;
}

/* ===== HEADER CATEGORÍAS ===== */
.categoria-header {
  margin: 3rem auto 1.5rem;
  text-align: center;
  animation: fadeIn 1s ease 0.3s both;
}

.categoria-header h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #45fce0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.linea-decorativa {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #663399, #45fce0);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(69, 252, 224, 0.5);
}

/* ===== BOTONES DE CATEGORÍAS ===== */
.botones-categorias {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.botones-categorias button {
  background: transparent;
  border: 1px solid rgba(69, 252, 224, 0.3);
  padding: 1rem 2rem;
  border-radius: 28px;
  color: #e0e0e0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.botones-categorias button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #45fce0, #663399);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.botones-categorias button:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(69, 252, 224, 0.4);
}

.botones-categorias button:hover::before {
  opacity: 1;
}

/* ===== MODAL GENERAL ===== */
.modal,
#modal-unidades {
  display: none;
  position: fixed;
  z-index: 900;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}

.modal-contenido,
.modal-unidades-contenido {
  background: #111216;
  border: 1px solid rgba(69, 252, 224, 0.2);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  animation: aparecer 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-contenido h2,
.modal-unidades-contenido h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #45fce0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-contenido p,
.modal-unidades-contenido p {
  color: #a0aab2;
  margin-bottom: 1.5rem;
}

/* Scroll */
.modal-contenido::-webkit-scrollbar {
  width: 8px;
}

.modal-contenido::-webkit-scrollbar-track {
  background: #0b0c10;
  border-radius: 10px;
}

.modal-contenido::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #663399, #45fce0);
  border-radius: 10px;
}

.cerrar-modal,
.cerrar-modal-unidades {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s;
}

.cerrar-modal:hover,
.cerrar-modal-unidades:hover {
  color: #ff4d4d;
}

/* ===== PRODUCTOS EN MODAL ===== */
.contenedor-productos,
#contenedor-productos-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 25px;
  padding: 10px;
}

.producto {
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.producto:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(69, 252, 224, 0.3);
  box-shadow: 0 15px 30px rgba(69, 252, 224, 0.15);
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.producto:hover img {
  transform: scale(1.05);
}

.producto h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #e0e0e0;
  font-weight: 600;
}

.producto p {
  font-weight: 400;
  color: #45fce0;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.producto button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(66, 51, 153, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  width: 100%;
  margin-top: auto;
}

.producto button:hover {
  background: linear-gradient(135deg, #663399, #45fce0);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(69, 252, 224, 0.3);
  color: #fff;
}

/* ===== MODAL UNIDADES ===== */
.controles-unidades {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.controles-unidades button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controles-unidades button:hover {
  background: #45fce0;
  color: #0b0c10;
  border-color: #45fce0;
}

.controles-unidades span {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

#btn-confirmar-unidades {
  background: linear-gradient(135deg, #45fce0, #663399);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(69, 252, 224, 0.2);
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

#btn-confirmar-unidades:hover {
  transform: scale(1.05);
}

/* ===== MENSAJE CARRITO ===== */
.mensaje-carrito {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #45fce0;
  color: #45fce0;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1000;
  font-weight: 600;
}

.mensaje-carrito.visible {
  opacity: 1;
}

/* ===== BOTÓN FINALIZAR COMPRA ===== */
#modal-resumen .modal-contenido button:not(.cerrar-modal) {
  background: transparent;
  border: 1px solid rgba(69, 252, 224, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin: 1.5rem auto 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#modal-resumen .modal-contenido button:not(.cerrar-modal)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #45fce0, #663399);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

#modal-resumen .modal-contenido button:not(.cerrar-modal):hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(69, 252, 224, 0.3);
}

#modal-resumen .modal-contenido button:not(.cerrar-modal):hover::before {
  opacity: 1;
}

#modal-resumen #total-resumen {
  margin-top: 1rem;
  font-weight: 800;
  color: #45fce0;
  font-size: 1.3rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #07080a;
  color: #6c757d;
  font-weight: 300;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
}

/* ===== ANIMACIONES ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aparecer {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}