/* === Fondo principal === */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  padding-top: 85px; /* espacio para header fijo */
}

/* === HEADER FIJO === */
.site-header.transparent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.site-header .container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === LOGO / BRANDING === */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 90px;
  width: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.5));
  transition: transform 0.3s ease;
}

.brand img:hover {
  transform: scale(1.05);
}

/* === Menú === */
.menu a {
  margin: 0 15px;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #00e0ff;
}

/* === Botón CTA === */
.cta.small {
  background: linear-gradient(90deg, #ff00a8, #00e0ff);
  padding: 6px 16px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta.small:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.6);
}

/* === Contacto === */
.contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-info i {
  color: #00e0ff;
  margin-right: 6px;
}

/* === Contenedor general === */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* === Cards === */
.cards {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  justify-content: center;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

.card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.card:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.4);
}

/* === Slider === */
.slider {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slides img.active {
  opacity: 1;
  z-index: 2;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s, opacity 0.3s;
  z-index: 10;
  opacity: 0;
}

.slider:hover button {
  opacity: 1;
}

.slider button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.prev { left: 10px; }
.next { right: 10px; }

/* === Lightbox === */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99999;
}

#lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
  animation: fadeIn 0.3s ease;
}

#close-lightbox {
  position: absolute;
  top: -40px;
  right: -40px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  transition: background 0.3s;
}

#close-lightbox:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* === FOOTER CORREGIDO === */
.site-footer {
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 30px 15px;
  color: #ccc;
  overflow: hidden;
}

.site-footer .brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer .logo-img {
  max-width: 120px;
  height: auto;
  display: inline-block;
}

.site-footer strong {
  color: #fff;
  font-size: 1.1rem;
}

.site-footer .legal {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .site-footer .logo-img {
    max-width: 90px;
  }
}

/* === HAMBURGUESA: SOLO EN MÓVIL === */

/* Por defecto (pantallas grandes) */
.menu-toggle {
  display: none !important;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10000;
}

.menu-toggle:hover {
  color: #00e0ff;
}

/* --- Modo móvil --- */
@media (max-width: 768px) {
  .site-header .container.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
  }

  .brand img {
    height: 65px;
  }

  .menu-toggle {
    display: block !important;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10000;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
    z-index: 3000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    color: #fff;
    font-size: 1.3rem;
    text-align: center;
    display: block;
  }

  .contact-info {
    display: none;
  }
}

/* === Página de producto individual === */
.producto-detalle {
  margin-top: 120px;
  text-align: center;
  background: rgba(0,0,0,0.6);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}

.producto-img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,0,255,0.4);
}

.producto-detalle h1 {
  font-size: 2rem;
  margin-top: 1rem;
  color: #fff;
}

.producto-detalle p {
  color: #ddd;
  font-size: 1.1rem;
}

.producto-detalle select {
  background: #111;
  color: #fff;
  border: 1px solid #00e0ff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 1rem;
}

#precio-actual {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.product-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.product-link:hover {
  color: #00e0ff;
}

.producto-descripcion h3, 
.producto-descripcion h4 {
  color: #00e0ff;
  text-shadow: 0 0 10px #ff00c8;
}

.producto-descripcion table th {
  color: #00e0ff;
}

.producto-descripcion ul li {
  list-style: none;
  margin: 6px 0;
  position: relative;
}

.producto-descripcion ul li::before {
  content: "✦";
  color: #ff00c8;
  margin-right: 6px;
}


