/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100vw;
  position: relative;
  padding: 0;
  margin: 0;
}

main {
  flex: 1 0 auto;
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../img/Logo_Mystic_BW.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}


/* Header */
header {
  background-color: #000; /* Fondo negro */
  color: #fff;
  padding: 18px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

/* Estilo para el logo como enlace */
.logo a {
  text-decoration: none;
  color: #fff; /* Mantiene el color blanco */
  font-size: 2.2rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.logo img {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background-color: #000;     /* Camufla cualquier borde en el header */
  border-radius: 12px;        /* Bordes suaves */
  border: none;
  filter: none;               /* Sin glow */
  transition: transform 0.2s ease-out;
  flex-shrink: 0;
}

.logo img:hover {
  transform: scale(1.08);     /* Leve zoom al pasar el mouse */
  filter: none;               /* Asegura que no vuelva el brillo */
}


.logo h1 {
  font-size: 2.2rem; /* Tamaño aumentado */
  color: #fff;
}

/* Navegación principal */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav ul.menu {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-nav ul.menu li a {
  color: gold;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}
.main {
  position: relative;
  z-index: 1;
}
.menu {
  list-style: none;
  display: flex;
  gap: 30px; /* Espaciado aumentado */
}

.menu li {
  position: relative;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem; /* Tamaño aumentado */
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #88CFF2; /* Azul claro */
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #F5C542;
  cursor: pointer;
  margin-left: auto;
  padding: 10px 15px;
  user-select: none;
}

/* Menú desplegable */

.dropdown {
  position: relative;
  z-index: 1000;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #111; /* Mismo fondo del modo hamburguesa */
  color: #F5C542;
  padding: 15px 10px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.2); /* Glow dorado suave */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
  border: 1px solid #F5C542;
  width: 200px; /* Igualar ancho */
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  background-color: #0e0e0e;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child {
  margin-bottom: 0;
}

.dropdown-menu a {
  position: relative;
  color: #F5C542; /* Dorado por defecto */
  text-decoration: none;
  padding: 15px 10px;
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.4s ease;
  border-radius: 8px;
  border: 1px solid transparent;
}

.dropdown-menu a:hover {
  color: #d87aff; /* Neón lila en el texto */
  text-shadow: 0 0 6px #d87aff, 0 0 10px #d87aff; /* Brillo neón lila */
  border: 1px solid #F5C542; /* Borde dorado */
  box-shadow: 0 0 12px #F5C542, inset 0 0 4px #F5C54220;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li {
  margin-bottom: 5px;
}


/* Acciones del header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px; /* Espaciado aumentado */
}

.header-actions input {
  padding: 10px 15px; /* Tamaño aumentado */
  border-radius: 20px;
  border: 1px solid #333;
  font-size: 1.1rem; /* Tamaño aumentado */
}

.header-actions input:focus {
  box-shadow: 0 0 10px #F5C542; /* Efecto de sombra dorado */
  border-color: #F5C542; /* Borde dorado */
}

.header-actions .login-btn,
.header-actions .cart-btn {
  padding: 10px 20px; /* Tamaño aumentado */
  background-color: #d3d2d0; /* Azul claro */
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1rem; /* Tamaño aumentado */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header-actions .login-btn:hover,
.header-actions .cart-btn:hover {
  background-color: #F5C542; /* Dorado */
  color: #000;
}

/* Menú desplegable principal (iniciar sesión) */
.dropdown-menu-container {
  position: absolute;
  top: 60px; /* Ajustado por tamaño */
  right: 20px;
  background-color: #2A4D73; /* Azul intermedio */
  color: #fff;
  padding: 20px; /* Tamaño aumentado */
  border-radius: 8px;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-menu-container h3 {
  margin-bottom: 15px;
  color: #F5C542; /* Dorado */
  font-size: 1.5rem; /* Tamaño aumentado */
}

.dropdown-menu-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu-container ul li {
  margin-bottom: 10px;
}

.dropdown-menu-container ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem; /* Tamaño aumentado */
  transition: color 0.3s ease;
}

.dropdown-menu-container ul li a:hover {
  color: #88CFF2; /* Azul claro */
}

/* Banner */
.banner {
  padding: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  text-align: center;
  color: #F5F5F5;
  backdrop-filter: blur(3px);
  box-shadow: 0 0 25px rgba(245, 197, 66, 0.2); /* leve glow dorado */
  border-top: 1px solid #F5C542;
  border-bottom: 1px solid #F5C542;
}

.banner h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #F5C542; /* dorado del logo */
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.banner p {
  font-size: 1.2rem;
  color: #ccc;
}

.banner .explore-btn {
  background-color: #F5C542;
  color: #000;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner .explore-btn:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.7);
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.banner-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.banner-content .explore-btn {
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
}


/* Estilo general del carrusel */
.carousel {
  margin: 30px 0;
  padding: 20px 10px;
  text-align: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(245, 197, 66, 0.2);
  backdrop-filter: blur(2px);
}

.carousel-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #F5C542;
  text-shadow: 2px 2px 4px #000;
  margin-bottom: 20px;
}

/* Contenedor que mantiene la pista visible */
.carousel-container {
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Pista de ítems */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Cada ítem */
.carousel-item {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Imagen de la carta */
.carousel-item img {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 3px solid #F5C542;
  box-shadow: 0 0 30px rgba(245, 197, 66, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(245, 197, 66, 0.6);
}

/* Nombre del producto */
.carousel-item h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #F5C542;
  margin-top: 18px;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px #000;
}

/* Precio */
.carousel-item p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #ddd;
  margin: 0;
  text-shadow: 1px 1px 2px #000;
}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: radial-gradient(circle at center, #F5C542 0%, #e6b800 100%);
  border: none;
  color: #000;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 15px rgba(245, 197, 66, 0.75);
}


.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.tcg-logos {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.tcg-logos img {
  height: 70px;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px #00000066);
  transition: transform 0.3s ease;
}

.tcg-logos img:hover {
  transform: scale(1.1);
}

.tcg-logos .logo-myl {
  height: 120px;
}

/* Footer */
footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background-color: #000; /* Fondo negro */
  text-align: center;
  color: #fff;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}


footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

#intro-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  pointer-events: none;
}

#intro-screen img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  opacity: 0;
  filter: blur(10px);
  animation: revealLogo 0.7s ease-out forwards 0.3s;
}

@keyframes revealLogo {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.3);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(0.7);
  }
}

@keyframes fadeOutIntro {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* Contenido principal oculto al principio */
body:not(.loaded) main,
body:not(.loaded) header,
body:not(.loaded) footer,
body:not(.loaded) .banner,
body:not(.loaded) .carousel {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Cuando todo está listo */
body.loaded main,
body.loaded header,
body.loaded footer,
body.loaded .banner,
body.loaded .carousel {
  opacity: 1;
  transition: opacity 1s ease;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background-color: #F5C542;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ffe066;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseBorder {
  0% {
    box-shadow: 0 0 4px #F5C542, 0 0 8px #F5C542, inset 0 0 4px #F5C54220;
    border-color: #F5C542;
  }
  50% {
    box-shadow: 0 0 6px #F5C542, 0 0 12px #F5C542, inset 0 0 6px #F5C54230;
    border-color: #ffd700;
  }
  100% {
    box-shadow: 0 0 4px #F5C542, 0 0 8px #F5C542, inset 0 0 4px #F5C54220;
    border-color: #F5C542;
  }
}

/*---------------------------------Sección Tienda ------------------------------------*/

.precio-oferta-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.precio-original {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9rem;
}

.precio-oferta {
  color: #f5c542;
  font-weight: bold;
  font-size: 1.1rem;
  animation: parpadeo 1.5s infinite;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.oferta-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.oferta-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5c542;
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
}

.input-oferta {
  background-color: #1a1a1a;
  border: 1px solid #f5c542;
  color: white;
  padding: 8px;
  border-radius: 5px;
}




.btn-cargar-mas-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  margin: 0;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}


.btn-cargar-mas {
  padding: 8px 20px;
  background-color: #c19c00;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-width: auto;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.3);
  cursor: pointer;
}

.btn-cargar-mas:hover {
  background-color: #e5b700;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 220, 0, 0.6);
}


.tienda-container {
  padding: 60px 40px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  min-height: 80vh;
}

.tienda-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
}


.tienda-banner {
  text-align: center;
  margin-bottom: 40px;
}

.tienda-banner h1 {
  font-size: 2.5rem;
  color: #F5C542;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(245, 197, 66, 0.4);
}

.tienda-banner p {
  font-size: 1.2rem;
  color: #ccc;
}

.tienda-filtros {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tienda-filtros input,
.tienda-filtros select {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #F5C542;
  background-color: #111;
  color: #F5C542;
  font-size: 1rem;
}

.tienda-filtros input::placeholder {
  color: #aaa;
}

.productos-grid {
  flex: 1 1 0%;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  min-width: 0;
  box-sizing: border-box;
}

.producto-card {
  width: 250px;
  background-color: #111;
  border: 1px solid #F5C542;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.2);
  justify-content: space-between;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  position: static; /* Importante para mantener el orden natural */
  display: flex;
  text-decoration: none;
}

.producto-card-inner {
  transition: transform 0.4s ease;
  transform: scale(1);
  width: 100%;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.3);
  z-index: 4;
}

.producto-card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.producto-card h3 {
  font-size: 1.2rem;
  color: #F5C542;
  margin-bottom: 10px;
}

.producto-card p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 10px;
}

.producto-card button {
  padding: 8px 16px;
  background-color: #F5C542;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.producto-card button:hover {
  background-color: #fff;
}

.producto-card.hidden {
  opacity: 0;
  transform: scale(0.6); /* desaparece hacia adentro */
  pointer-events: none;
  position: relative; /* permite animar sin sacar del flujo */
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1; /* para que no se superponga */
}

.product-detail-info {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.2);
  max-width: 800px;
}

.product-detail-info img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.1);
}

.product-info {
  flex: 1;
  min-width: 250px;
}

.product-info h2 {
  color: #F5C542;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.product-info p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 10px;
}

.notify-section input,
.notify-section button {
  display: block;
  margin-top: 10px;
}

.notify-section input {
  background: #111;
  border: 1px solid #F5C542;
  border-radius: 8px;
  padding: 10px;
  color: white;
  width: 100%;
  max-width: 300px;
}

.notify-section button {
  background: #F5C542;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.notify-section button:hover {
  background: #fff;
}

.stock-info {
  margin-top: 6px;
  font-size: 1.2rem;
  color: #333;
}

.sin-stock {
  color: #d9534f; /* rojo fuerte */
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 4px;
  display: block;
}


/* === Banner de la Tienda === */
.tienda-banner {
  padding: 60px 30px;
  text-align: center;
  background: rgba(15, 12, 10, 0.9); /* fondo pergamino oscuro */
  color: #F5C542; /* dorado principal */
  border-top: 1px solid #F5C542;
  border-bottom: 1px solid #F5C542;
  box-shadow: 0 0 12px rgba(213, 174, 63, 0.2);
  backdrop-filter: blur(4px);
}

.tienda-banner h1 {
  font-size: 2.8rem;
  font-weight: bold;
  color: #F5C542;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
  margin-bottom: 10px;
}

.tienda-banner p {
  font-size: 1.3rem;
  color: #ddd;
}

.tienda-filtros {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-top: 1px solid #F5C542;
  border-bottom: 1px solid #F5C542;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.2);
  flex-wrap: wrap;
}

/* Estilo base de ambos elementos */
.tienda-filtros input[type="text"],
.tienda-filtros select {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #F5C542;
  background-color: #111;
  color: #fff;
  width: 250px;
  transition: all 0.4s ease;
}

/* Hover: primero fade-in, luego animación eléctrica */
.tienda-filtros input[type="text"]:hover,
.tienda-filtros select:hover {
  animation: fadeInGlow 0.3s ease-out forwards,
  electricGlow 1.6s ease-in-out infinite;
  animation-delay: 0s, 0.3s;
}

/* Focus sin glow, mantiene dorado */
.tienda-filtros input[type="text"]:focus,
.tienda-filtros select:focus {
  outline: none;
  border-color: #F5C542;
  box-shadow: none;
}

/* Ancho específico del buscador */
.tienda-filtros input[type="text"] {
  width: 250px;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid #555;
  z-index: 999;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

.search-dropdown li {
  padding: 10px;
  cursor: pointer;
  color: #f0c040;
}

.search-dropdown li:hover {
  background-color: #222;
}
/* Contenedor de sugerencias */
#sugerencias-busqueda {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #111;
  border: 1px solid gold;
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);

  /* animación por defecto */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

/* cuando hay resultados: activar animación */
#sugerencias-busqueda.activo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Ítems individuales */
.sugerencia-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  color: white;
  border-bottom: 1px solid #333;
  transition: background 0.2s;
}

.sugerencia-item:last-child {
  border-bottom: none;
}

.sugerencia-item:hover {
  background-color: #222;
}

/* Imagen pequeña */
.sugerencia-item .miniatura {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #555;
}


/* Select personalizado */
.tienda-filtros select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #111;
  color: #F5C542;
  font-weight: bold;
  border: 1px solid #F5C542;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: 0 0 6px rgba(245, 197, 66, 0.2);
  transition: all 0.4s ease;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23F5C542' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* Hover con glow animado */
.tienda-filtros select:hover {
  animation: fadeInGlow 0.3s ease-out forwards,
  electricGlow 1.6s ease-in-out infinite;
  animation-delay: 0s, 0.3s;
  cursor: pointer;
}

/* Opciones del desplegable */
.tienda-filtros select option {
  background-color: #111;
  color: #F5C542;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Estilo cuando se hace hover sobre las opciones (solo visible en Firefox) */
.tienda-filtros select option:hover {
  background-color: #d87aff22;
  color: #d87aff;
}

@keyframes fadeInGlow {
  from {
    box-shadow: 0 0 0px #d87aff;
    border-color: #F5C542;
  }
  to {
    box-shadow: 0 0 8px #d87aff, 0 0 12px #d87aff;
    border-color: #d87aff;
  }
}

@keyframes electricGlow {
  0%, 100% {
    box-shadow: 0 0 8px #d87aff, 0 0 12px #d87aff;
  }
  50% {
    box-shadow: 0 0 12px #d87aff, 0 0 18px #d87aff;
  }
}


/* -------------------- Menú de filtros -------------------- */

.tienda-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tienda-filtros-lateral {
  flex: 0 0 250px;
  max-width: 250px;
  background-color: #111;
  border: 1px solid gold;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.filtro-box {
  margin-bottom: 30px;
}

.filtro-box h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #F5C542;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
  border-bottom: 1px solid #F5C54233;
  padding-bottom: 5px;
}

.filtro-box label {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre checkbox y texto */
  margin-bottom: 10px;
  color: white;
  font-size: 1rem;
}

.filtro-box label:hover {
  color: #d87aff;
  text-shadow: 0 0 6px #d87aff;
}

.filtro-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f5c542;
  margin: 0;
}

.filtro-box input[type="checkbox"]:hover {
  filter: drop-shadow(0 0 6px #d87aff);
  transition: filter 0.3s ease;
}

.filtro-box input[type="range"] {
  width: 100%;
  background: #F5C542;
  height: 6px;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  transition: box-shadow 0.3s ease;
}

.filtro-box input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background: #d87aff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px #d87aff;
}

.filtro-box input[type="checkbox"],
.filtro-box input[type="radio"] {
  margin-right: 8px;
  accent-color: #F5C542;
  transform: scale(1.1);
}

.precio-valores {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #F5C542;
  margin-top: 8px;
}

.slider-container {
  position: relative;
  width: 100%;
}

#precio-slider {
  width: 100%;
}

#slider-value-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #d87aff;
  color: #000;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  pointer-events: none;
  white-space: nowrap;
  transition: left 0.1s ease-out;
  box-shadow: 0 0 8px #d87aff88;
}

.tienda-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #111;
  color: #F5C542;
  font-weight: bold;
  border: 1px solid #F5C542;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1rem;
  box-shadow: 0 0 6px rgba(245, 197, 66, 0.2);
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23F5C542' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: all 0.4s ease;
  width: 100%;
}

/* Hover: efecto lila eléctrico */
.tienda-select:hover {
  animation: fadeInGlow 0.3s ease-out forwards,
  electricGlow 1.6s ease-in-out infinite;
  animation-delay: 0s, 0.3s;
  cursor: pointer;
}

/* Focus sin glow */
.tienda-select:focus {
  outline: none;
  border-color: #F5C542;
  box-shadow: none;
}

/* Opciones */
.tienda-select option {
  background-color: #111;
  color: #F5C542;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tienda-select option:hover {
  background-color: #d87aff22;
  color: #d87aff;
}


#precio-slider {
  transition: all 0.3s ease-in-out;
}

#precio-slider::-webkit-slider-thumb {
  transition: all 0.25s ease;
}

#slider-value-label {
  transition: left 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#precio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 6px #d87aff;
}


/* -------------------- Carrito -------------------- */

@keyframes bounceCart {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.2); }
  40%  { transform: scale(0.95); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glowCart {
  0% { filter: drop-shadow(0 0 0px #F5C542); }
  50% { filter: drop-shadow(0 0 10px #F5C542); }
  100% { filter: drop-shadow(0 0 0px #F5C542); }
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #f0f0f0;
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.cart-btn.animate {
  animation: bounceCart 0.6s ease;
}

.mensaje-carrito {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(0); /* <- esto faltaba */
  background-color: #F5C542;
  color: #000;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mensaje-carrito.mostrar {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}


.icono-carrito-btn {
  width: 38px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
  filter: brightness(0.9) grayscale(0.2) contrast(1.1);
  transform: translateY(-2px); /* opcional para centrar */
}

.cart-btn.animate img.icono-carrito-btn {
  animation: glowCart 0.6s ease-in-out;
}
#cart-count.bounce {
  animation: rebote 0.4s ease;
}

@keyframes rebote {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* -------------------- Carrito total -------------------- */

.metodo-entrega-bloque {
  margin: 20px 0;
}

#metodo-entrega {
  width: 100%;
  padding: 10px 15px;
  background-color: #111;
  color: var(--dorado); /* Asumo que ya tienes una variable --dorado */
  border: 2px solid var(--dorado);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23FFD700' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px 18px;
}

#metodo-entrega:focus {
  outline: none;
  box-shadow: 0 0 5px var(--dorado);
}



/* ========== Carrito ========== */
.carrito-container {
  padding: 60px 40px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.75);
  min-height: 80vh;
}

.carrito-vacio {
  text-align: center;
  padding: 80px 20px;
}

.carrito-vacio img {
  width: 200px;
  margin-bottom: 20px;
  opacity: 1.6;
}

.carrito-vacio h2 {
  font-size: 1.8rem;
  color: #F5C542;
  margin-bottom: 10px;
}

.carrito-acciones {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}


.btn.claro {
  background-color: #fff;
  color: #000;
  border: 1px solid #aaa;
}

.btn.claro:hover {
  background-color: #f0f0f0;
}

.carrito-lleno {
  max-width: 1000px;
  margin: 0 auto;
}

.carrito-lleno h2 {
  font-size: 2rem;
  color: #F5C542;
  margin-bottom: 20px;
  text-align: center;
}

.carrito-productos {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 40px 0;
}

.item-carrito {
  display: grid;
  grid-template-columns: 50px 100px 1fr auto auto auto;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #111;
  border: 1px solid #F5C542;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.1);
}

.item-carrito img {
  width: 100px;
  border-radius: 10px;
}

.item-carrito .info {
  flex: 1;
}

.item-carrito .info h3 {
  font-size: 1.2rem;
  color: #F5C542;
  margin-bottom: 8px;
}

.item-carrito .info p {
  margin: 5px 0;
  font-size: 1rem;
  color: #ccc;
}

.item-carrito .eliminar {
  background-color: transparent;
  border: none;
  font-size: 1.6rem;
  color: #ff5252;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.item-carrito .eliminar:hover {
  transform: scale(1.2);
  color: #ff867f;
}

.carrito-resumen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid #F5C542;
  border-bottom: 1px solid #F5C542;
}

.carrito-resumen .total {
  font-size: 1.6rem;
  color: #F5C542;
}

.carrito-resumen .btn.dorado {
  background-color: #F5C542;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carrito-resumen .btn.dorado:hover {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.5);
}

.carrito-container .hidden {
  display: none !important;
}

button.eliminar:hover img {
  filter: brightness(1.2);
  transform: scale(1.25);
  transition: all 0.3s ease;
}

.cantidad-controles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cantidad-controles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cantidad-controles button {
  background-color: transparent;
  border: 1px solid #F5C542;
  color: #F5C542;
  font-weight: bold;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.subtotal {
  color: #F5C542;
  font-weight: bold;
  text-align: right;
  font-size: 1.1rem;
}

.eliminar img {
  width: 50px;
  transition: transform 0.2s ease;
}

.eliminar:hover img {
  transform: scale(1.2);
}

.nombre-precio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.nombre-precio h3 {
  margin: 0;
  color: #F5C542;
  font-size: 1.1rem;
}

.nombre-precio .precio-unitario {
  color: #ccc;
  font-size: 0.95rem;
}

.precio-unitario-bloque {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* <- cambia de center a flex-start */
  justify-content: center;
  text-align: left;
  margin-left: 20px;        /* <- agrega separación desde el borde izquierdo */
  gap: 4px;
  min-width: 120px;         /* <- mantiene un ancho mínimo bonito */
}

.precio-unitario-bloque .etiqueta {
  font-size: 0.95rem;
  color: #aaa;
  font-weight: 500;
}

.precio-unitario-bloque .valor {
  font-size: 1.25rem;
  font-weight: bold;
  color: #F5C542;
}

.btn.rojo {
  background-color: #ff5252;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn.rojo:hover {
  background-color: #ff867f;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
}

.acciones-carrito {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* -------------------- Resumen de compra -------------------- */

.resumen-page .item-carrito {
  display: grid;
  grid-template-columns: 70px 1.5fr 1fr 60px 100px;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: #111;
  border: 1px solid #F5C542;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.15);
}

.resumen-page .carrito-productos {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.resumen-page .cantidad-controles.resumen {
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F5C542;
  text-align: center;
}

.resumen-page .info h3 {
  font-size: 1.1rem;
  color: #F5C542;
  margin: 30px;
  white-space: normal;
  word-wrap: break-word;
}

.resumen-page .cantidad-bloque,
.resumen-page .subtotal-bloque {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.resumen-page .etiqueta {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 3px;
}

.resumen-page .cantidad,
.resumen-page .subtotal-valor {
  font-size: 1.2rem;
  font-weight: bold;
  color: #F5C542;
}

/* -------------------- Compra Exitosa -------------------- */

.exito-page .exito-section {
  text-align: center;
  padding: 80px 20px;
  color: #F5C542;
}

.exito-page .exito-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
}

.exito-page .exito-section p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
}

.exito-page .exito-logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.exito-page .btn.dorado {
  background-color: #F5C542;
  color: #000;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 12px 28px;
  border-radius: 16px;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
  display: inline-block;
}

.exito-page .btn.dorado:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 18px rgba(245, 197, 66, 0.6);
  transform: translateY(-2px);
}

.exito-page .btn {
  width: auto;               /* que no se estire al 100% */
  min-width: 220px;          /* ancho mínimo razonable */
  max-width: 90%;            /* evita que se pase del contenedor */
  padding: 12px 24px;
  margin: 10px auto;
  display: inline-block;     /* importante: evita estiramiento completo */
  font-size: 1rem;
  text-align: center;
}
/* -------------------- Login -------------------- */

body.login-page {
  background: #5c5959;
  background-size: contain;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 20px;
}

.login-box {
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid #F5C542;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 0 18px #F5C54288;
  width: 100%;
  max-width: 350px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.login-logo {
  width: 140px;
  margin-bottom: 20px;
}

.login-box input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: #111;
  border: 1px solid #444;
  color: #fff;
  border-radius: 8px;
}

#login-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.login-box input:focus {
  outline: none;
  border-color: #f5c542;
}

.login-message {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ff8080;
  text-align: center;
}
.login-info {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}

.login-info a {
  color: #d87aff;
  text-decoration: none;
}

.login-info a:hover {
  text-decoration: underline;
}

.login-box h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.btn.dorado {
  background-color: #F5C542;
  border: none;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}

.btn.dorado:hover {
  background-color: #ffd700;
}


.boton-guardar {
  background-color: #ffd700;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.boton-guardar:hover {
  background-color: #ffcc00;
}

.forgot-password {
  margin-top: 15px;
  text-align: center;
}

.forgot-password a {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #fff2b0;
  text-decoration: underline;
}

/* -------------------- Product -------------------- */

#graficoPrecio {
  max-width: 100%;
  width: 100%;
  height: 300px;
  margin-top: 30px;
  background: none; !important /* Fondo oscuro */
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); /* Brillo dorado tenue */
}

.product-detail-info canvas {
  display: block;
  margin: 0 auto;
}


.carta-container {
  perspective: 1000px;
  display: inline-block;
}

.carta-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 10px;
}

.carta-hover:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}


.product-detail {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #111;
  border-radius: 12px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.product-detail-info {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.2);
  width: 100%;
}

.product-detail-info img.product-image,
#imagen-producto {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.1);
}

.product-info {
  flex: 1;
  min-width: 250px;
}

.product-info h2,
#nombre-producto {
  color: #F5C542;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#precio-producto {
  font-size: 1.4rem;
  color: #ffd700;
  margin-bottom: 15px;
}

.product-info p,
#descripcion-producto {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 10px;
}

#zona-boton {
  margin-top: 20px;
}

/* Botón agregar al carrito */
.agregar-carrito,
#btn-notificar {
  padding: 10px 20px;
  background-color: #F5C542;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.agregar-carrito:hover,
#btn-notificar:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* Estilo input y botón de notificación manual (si se usa en el futuro) */
.notify-section input,
.notify-section button {
  display: block;
  margin-top: 10px;
}

.notify-section input {
  background: #111;
  border: 1px solid #F5C542;
  border-radius: 8px;
  padding: 10px;
  color: white;
  width: 100%;
  max-width: 300px;
}

.notify-section button {
  background: #F5C542;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* Productos Relacionados */
.carousel-relacionados {
  margin: 40px 15px 30px 15px;
  padding: 20px 10px;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.15);
  max-width: 900px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.carousel-relacionados h3 {
  text-align: center;
  font-size: 1.8rem;
  color: #F5C542;
  margin-bottom: 20px;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.carousel-relacionados-container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  justify-content: center;
}

.carousel-relacionados-container::-webkit-scrollbar {
  display: none;
}

.carousel-relacionados-container .producto-card {
  flex: 0 0 auto;
  width: 230px;
  background-color: #111;
  border: 1px solid #F5C542;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.1);
  transition: transform 0.3s ease;
}

.carousel-relacionados-container .producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 16px rgba(245, 197, 66, 0.3);
}

.carousel-relacionados-container .producto-card-inner {
  padding: 15px;
  text-align: center;
}

.carousel-relacionados .carousel-btn {
  background-color: #F5C542;
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.3);
}

.carousel-relacionados .carousel-btn.prev {
  left: 10px;
}

.carousel-relacionados .carousel-btn.next {
  right: 10px;
}

.carousel-relacionados .carousel-btn:hover {
  background-color: #ffe066;
}

/* Botón volver a tienda */
.volver-tienda {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.btn-volver-tienda {
  background-color: transparent;
  color: #88CFF2;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.1rem;
  border: 2px solid #88CFF2;
  box-shadow: 0 0 8px rgba(136, 207, 242, 0.2);
  transition: all 0.3s ease;
}

.btn-volver-tienda:hover {
  background-color: #F5C542;
  color: #000;
  border-color: #F5C542;
  box-shadow: 0 0 14px rgba(245, 197, 66, 0.4);
}


/*----------- Register ----------*/

body.registro-page {
  background: url("../img/Logo_Mystic_BW.png") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

.registro-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.registro-box {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(245, 197, 66, 0.3);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.registro-logo {
  width: 180px;
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  background: #111;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #f5c542;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #ffe07a;
}

.mensaje {
  margin-top: 10px;
  color: #ff6f61;
  font-size: 14px;
}

/*---------- User interface ---------- */

/* Estilos base para la página de usuario */
body.usuario-page {
  background-color: #242424;
  color: #f5c542;
  font-family: inherit;
  margin: 0;
  padding: 0;
}

.usuario-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

.usuario-info {
  font-family: 'Playfair Display', serif; /* o 'Cinzel', según el estilo que busques */
  line-height: 1.6;
  font-size: 1rem;
}

.usuario-info p {
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  font-family: 'Source Serif Pro', serif;
  color: #e9dfb1;
}
.usuario-info strong {
  display: inline-block;
  width: 80px;
  color: #f5c542;
  font-weight: 600;
}


.usuario-info span {
  color: #e3c96b;
  font-weight: normal;
}

.usuario-info, .historial-compras {
  background-color: #111;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(245, 197, 66, 0.3);
}

.usuario-info h2,
.historial-compras h2 {
  margin-top: 0;
  color: #f5c542;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.historial-compras ul {
  list-style: none;
  padding-left: 0;
}

.historial-compras li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.dorado {
  color: #f5c542;
  font-weight: bold;
}

.boton-salir {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #ff6f61;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.boton-salir:hover {
  background-color: #e65a4f;
}

.boton-peligro {
  background-color: #ff4d4d;
  color: #fff;
  border: none;
  padding: 10px 18px;
  margin-top: 65px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
  display: block;
  width: 100%;
  text-align: center;
}

.boton-peligro:hover {
  background-color: #ff1a1a;
  transform: scale(1.05);
}

.boton-peligro:active {
  transform: scale(0.95);
  box-shadow: 0 0 5px rgba(255, 77, 77, 0.8);
}

.btn-eliminar-historial {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  background-image: url("img/Logo_Trash.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  vertical-align: middle;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-eliminar-historial:hover {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 4px gold);
}


/* Fade-out para eliminar */
.fade-out {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cambiar-password {
  margin-top: 0; /* Lo maneja .usuario-container con gap */
  padding: 20px;
  background-color: #111; /* Igual que .usuario-info y .historial-compras */
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(245, 197, 66, 0.3); /* Igual que los otros */
  width: 100%;
}

.cambiar-password h2 {
  margin-top: 0;
  color: #f5c542;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.form-password input {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  background: #1c1c1c; /* Ligeramente más clara que #111 */
  color: #f5c542;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-password input::placeholder {
  color: #888;
}


#mensajePassword {
  color: #f5c542;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

.usuario-info,
.historial-compras,
.cambiar-password {
  width: 100%;
  max-width: 400px;
}
.usuario-info h2,
.historial-compras h2,
.cambiar-password h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #f5c542;
  padding-bottom: 8px;
  margin-bottom: 15px;
  text-shadow: 0 0 6px rgba(245, 197, 66, 0.4);
}
.usuario-info,
.historial-compras,
.cambiar-password {
  border: 1px solid rgba(245, 197, 66, 0.2);
  background-color: #111111dd; /* oscurecido con transparencia */
  backdrop-filter: blur(2px);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.15), 0 0 6px #f5c54244 inset;
}

.boton-salir,
.boton-peligro,
.cambiar-password button {
  font-family: 'Cinzel', serif;
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.boton-salir:hover,
.boton-peligro:hover,
.cambiar-password button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(245, 197, 66, 0.6);
}


/*---------- Admin ----------*/

.agregar-producto-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5c542;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid #f5c542;
  border-radius: 16px;
  width: 220px;
  height: auto;
  min-height: 340px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px;
  text-align: center;
}

.agregar-producto-admin:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.3);
}

.producto-card.fade-in {
  animation: fadeIn 0.4s ease-in;
}

.producto-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.precio-slider-valor {
  color: violet;
  font-weight: bold;
  margin-left: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #111;
  color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.3);
  max-width: 400px;
  width: 90%;
  position: relative;
}

.modal-contenido h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #f5c542;
  text-align: center;
}

.modal-contenido input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: none;
  background: #222;
  color: white;
  border-radius: 6px;
}

.modal-contenido button {
  background: #f5c542;
  border: none;
  padding: 10px 15px;
  color: black;
  font-weight: bold;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-contenido button:hover {
  background: #ffe066;
}

.cerrar-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.modal-contenido select,
.modal-contenido textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: none;
  background: #222;
  color: white;
  border-radius: 6px;
  resize: vertical;
}



/*---------- Responsive Style ----------*/

@media (max-width: 980px) {
  header {
    display: flex;
    flex-direction: column;
    background-color: #000;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .login-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 12px;
    background-color: #f0f0f0;
    color: #000;
    white-space: nowrap;
  }

  .fila-logo-busqueda {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .logo {
    display: flex;
    align-items: center;
    width: 25%;
  }

  .logo img {
    height: 60px;
    width: auto;
  }

  .buscador-contenedor {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .buscador-contenedor input {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .fila-menu-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: #F5C542;
    cursor: pointer;
    padding: 6px;
    margin-left: 0;
  }

  .cart-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background-color: #f0f0f0;
    color: #000;
    width: auto;
  }

  .cart-btn img.icono-carrito-btn {
    width: 24px;
    height: auto;
  }

  .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border-top: 1px solid #F5C542;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .main-nav.responsive {
    display: flex;
    padding: 20px 0;
  }

  .menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
  }

  .menu li {
    width: 100%;
    text-align: center;
  }

  .menu li a {
    display: block;
    padding: 12px 10px;
    color: #F5C542;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid transparent;
  }

  .menu li a:hover {
    color: #d87aff;
    text-shadow: 0 0 6px #d87aff, 0 0 10px #d87aff;
    border: 1px solid #F5C542;
    animation: pulseBorder 1.8s ease-in-out infinite;
  }

  .has-submenu .dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #111;
    border-top: 1px solid #F5C542;
    width: 100%;
    padding: 10px 0;
    gap: 10px;
    align-items: center;
  }

  .has-submenu.open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu li a {
    padding: 10px;
    color: #F5C542;
    text-align: center;
  }

  .dropdown-menu li a:hover {
    background-color: #222;
  }

  .login-box {
    margin: 30px 20px;
    padding: 20px 15px;
    width: 100%;
    max-width: 700px;
  }

  .login-logo {
    width: 700px;
  }

  .btn.dorado {
    font-size: 0.95rem;
  }

  .tienda-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tienda-filtros-lateral {
    width: 90%;
    margin-bottom: 1.5rem;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 12px;
  }

  .productos-grid {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .producto-card {
    width: 100%;
    max-width: 320px;
  }

  .producto-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .producto-card h3 {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 0.5rem;
  }

  .producto-card p,
  .producto-card .stock {
    text-align: center;
  }

  .producto-card button {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1rem;
  }

  .carrito-productos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .item-carrito {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #111;
    border: 1px solid gold;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
  }

  .item-carrito img {
    max-width: 130px;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .item-carrito .info h3 {
    color: gold;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .item-carrito .precio-unitario-bloque {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: gold;
    text-align: center;
  }

  .item-carrito .precio-unitario-bloque .etiqueta {
    display: block;
    font-weight: bold;
    margin-bottom: 0.2rem;
  }

  .item-carrito .cantidad-controles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
  }

  .item-carrito .cantidad-controles button {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 1px solid gold;
    background-color: #000;
    color: gold;
  }

  .item-carrito .cantidad-controles .cantidad {
    min-width: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: white;
  }

  .item-carrito .subtotal {
    font-size: 1.2rem;
    font-weight: bold;
    color: gold;
    margin-top: 0.5rem;
    text-align: center;
  }

  .item-carrito .eliminar {
    align-self: flex-end;
    background: none;
    border: none;
    margin-bottom: 0.8rem;
  }

  .item-carrito .eliminar img {
    width: 50px;
    height: 50px;
  }

  /* =================== Panel de Usuario Responsive =================== */

  .usuario-page {
    overflow-x: hidden;
    width: 100%;
  }

  .usuario-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 15px;
    box-sizing: border-box;
    width: 100%;
  }

  .usuario-info,
  .historial-compras,
  .cambiar-password {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .usuario-info p,
  .historial-compras li,
  .cambiar-password form {
    font-size: 1rem;
  }

  .usuario-info h2,
  .historial-compras h2,
  .cambiar-password h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  #cerrar-sesion,
  #btn-limpiar-historial,
  .boton-guardar {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    box-sizing: border-box;
  }

  .form-password {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .form-password input {
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #f5c542;
    background-color: #111;
    color: #f5c542;
    box-sizing: border-box;
    width: 100%;
  }

  #mensajePassword {
    font-size: 0.95rem;
    text-align: center;
  }

  #lista-compras {
    padding-left: 0;
    list-style: none;
    font-size: 0.95rem;
    width: 100%;
  }

  #lista-compras li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  .btn-eliminar-historial {
    width: 28px;
    height: 28px;
    background-image: url('/img/icono-eliminar.png'); /* Ajusta esta ruta si es necesario */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    align-self: flex-end;
    flex-shrink: 0;
  }

}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #f4f4f4;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
  border: 1px solid gold;
}

.toast.show {
  opacity: 1;
  bottom: 40px;
}

body {
  cursor: url('/img/cursor.png') 10  6, auto;
}
