/* Tipografía y resets */
body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  background: #000;
  color: #fff;
  padding-top: 120px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}
a {
  text-decoration: none;
  color: #fff;
}

/* NAVBAR */
.navbar {

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px; /* 🔑 MÁS IMPORTANTE */
  z-index: 3000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Ocultar */
.navbar.hide {
  transform: translateY(-100%);
}
  
/* LOGO GENERAL (ESCRITORIO) */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 120px;     /* 🔥 tamaño escritorio */
  height: auto;
  transition: 0.3s ease;
}

@media (max-width: 768px) {

  .logo img {
    width: 70px;   /* 🔥 tamaño móvil */
  }

}

.navbar nav {
  flex: 1;
}
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}
.nav-links li {
  list-style: none;
}
.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: red;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
  margin-right: 40px; /* 🔥 separación del borde */
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: 0.3s;
}
.search-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
 
}
.search-icon img {
  width: 100px;
  height: 50px;
  padding-right: -200px;
  cursor: pointer;
   max-width: 100%;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* HERO */
.hero h1 span {
  color: #fff;
  font-size: 1.3em;
}
.carousel {
  width: 100%;
  height: 90vh;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
}

.slides img {
  min-width: 100%;   /* 🔥 clave para que solo se vea una */
  height: 100%;
  object-fit: contain;
}


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

.dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #555;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dots span.active {
  background: #fff;
}

/* FRASE */
.frase {
  text-align: center;
  padding: 20px;
  background-color: #111;
  font-style: italic;
}

/* DESTACADO */
.destacado {
  padding: 40px 20px;
  text-align: center;
 
}
.destacado h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
/* CONTENEDOR GRID MÁS PRO */
.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

/* TARJETA */
.producto {
  background: #141414;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

/* EFECTO HOVER PRO */
.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.15);
}

/* IMAGEN */
.producto img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.producto:hover img {
  transform: scale(1.05);
}

/* NOMBRE */
.nombre-producto {
  margin-top: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* PRECIO */
.precio,
.producto strong {
  font-size: 20px;
  font-weight: bold;
  color: #00ff88;
  display: block;
  margin-top: 8px;
}

/* BOTÓN */
.producto button {
  margin-top: 15px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #00ff88, #00c96b);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.producto button:hover {
  transform: scale(1.05);
}


/* PROMO */
/* --- Sección Promo --- */
.promo {
  padding: 60px 5%;
  background: #333;
  text-align: center;
}

.promo-imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Tarjeta de la promo */
.promo-card {
  position: relative;
  width: 100%;
  max-width: 600px;      /* ancho máximo por tarjeta */
  border-radius: 20px;
  overflow: hidden;
}

/* Imagen que se ajusta a todo el ancho y alto automático */
.promo-card img {
  width: 100%;
  height: auto;          /* 🔑 permite que se adapte en móvil */
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

/* Efecto zoom */
.promo-card:hover img {
  transform: scale(1.05);
}

/* Botón “Conocer más” siempre visible */
.btn-conocer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  opacity: 1;                 /* 🔑 visible en todas las pantallas */
  transition: background .3s ease;
}

.btn-conocer:hover {
  background: rgba(0,0,0,0.9);
}

/* Ajustes móviles */
@media (max-width: 768px) {
  .promo-imagenes {
    gap: 20px;
  }
  .promo-card img {
    height: auto;        /* evita recorte vertical */
  }
}

/* FOOTER */
.footer {
  background-color: #111;
  color: #fff;
  padding: 2rem 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
}

.footer-logo {
  flex: 1 1 100%;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 20%;
  height: auto;
}

.footer-section {
  flex: 1 1 200px;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-section form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section input[type="email"] {
  padding: 0.5rem;
  width: 80%;
  margin-bottom: 0.5rem;
}

.footer-section button {
  padding: 0.5rem 1rem;
  background-color: #ccc;
  border: none;
  cursor: pointer;
}
.redes-sociales img{
  width: 25px;
}

/* Responsive */
@media screen and (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    transform: translateX(-100%);
    width: 85%;
    max-width: 320px;
    height: calc(100dvh - 70px);
    background: #0a0a0a;
    flex-direction: column;
    padding: 40px 25px;
    transition: transform 0.35s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    z-index: 3000;
    overflow-y: auto;
  }

  .nav-links.nav-active {
    transform: translateX(0);
  }

  .burger {
    display: block;
    z-index: 3500;
  }

}

  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.toggle .line2 {
    opacity: 0;
  }

  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
 /* Overlay oscuro */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 2000;
}

/* Cuando está activo */
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Bloquear scroll real */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

   
.footer-info > div {
    flex: 1 1 100%;
  }


/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* justo debajo del item principal */
  left: 0;
  background: black;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: none; /* oculto por defecto */
  min-width: 180px;
  border-radius: 5px;
}

.dropdown-menu li {
  padding: 5px 15px;
}

.dropdown-menu li a {
  color: #fff;
  font-weight: normal;
  display: block;
}

.dropdown-menu li a:hover {
  background: rgb(117, 165, 238);
}

/* Mostrar en hover (desktop) */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Responsive: abrir con clic cuando se usa el menú móvil */
@media screen and (max-width: 768px) {
  .dropdown-menu {
    position: static;
    background: black;
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
}
.product-container {
  display: none;
}

.product-container.activo {
  display: flex;
}
.politica{
  text-align: center;
}
/* Fondo oscuro */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

/* Contenido */
.modal-content {
  background: white;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  border-radius: 10px;
  position: relative;
}

/* Botón cerrar */
.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* Estilo producto dentro del modal */
.modal-producto {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.modal-image img {
  width: 300px;
  border-radius: 10px;
}
.modal-details {
  flex: 1;
}
/* ===== Modal ===== */
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
      justify-content: center;
      align-items: center;
    }
    .modal-content {
      background: white;
      padding: 20px;
      max-width: 800px;
      width: 90%;
      border-radius: 15px;
      position: relative;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }
    .modal-left {
      flex: 1 1 40%;
      text-align: center;
    }
    .modal-right {
      flex: 1 1 55%;
    }
    .modal-content img {
      width: 100%;
      max-width: 280px;
      border-radius: 10px;
    }
    .modal-right h2 {
      color: #222;
      font-size: 1.8rem;
      margin-bottom: 10px;
    }
    .modal-right p {
      color: #444;
      font-size: 1rem;
      margin-bottom: 8px;
    }
    #modal-price {
      color: #D4AF37 !important;
      font-size: 1.3rem;
      font-weight: bold;
    }
    .btn-whatsapp {
      display: inline-block;
      background-color: #25D366;
      color: white;
      padding: 0.75rem 1.5rem;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
      transition: background 0.3s;
    }
    .btn-whatsapp:hover {
      background-color: #1ebe5d;
    }
    .close {
      position: absolute;
      top: 10px; right: 20px;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      color: #333;
    }
    .search-bar {
  display: none;
  position: absolute;
  top: 50px; /* justo debajo del header */
  right: 100px;
  background: white;
  padding: 5px;
  border: black;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-bar input {
  padding: 8px;
  width: 200px;
  border: none;
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}


#result-title {
  display: none;
  text-align: center;
  margin: 30px auto;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  padding: 15px 25px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9f9f9, #eaeaea);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: fit-content;
}

#no-results {
  display: none;
  text-align: center;
  margin: 30px auto;
  font-size: 1.5rem;
  font-weight: bold;
  color: #b30000;
  padding: 15px 25px;
  border-radius: 12px;
  background: #ffeaea;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: fit-content;
}


.ficha-tecnica {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  font-family: 'Raleway', sans-serif;
}

.ficha-tecnica h3 {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.ficha-tecnica ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ficha-tecnica li {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #333;
}

.ficha-tecnica strong {
  color: #000;
}

/* Contenedor general del modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: auto; /* 🔑 permite desplazamiento si el contenido es muy alto */
}

/* Contenido del modal */
.modal-content {
  background: #fff;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;  /* 🔑 limita la altura */
  overflow-y: auto;  /* 🔑 scroll vertical dentro del modal */
  padding: 20px;
  position: relative;
}
.modal {
  display: none;  /* 🔑 siempre oculto hasta que se abra con JS */
}

/* Ajuste en móviles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 85vh; /* menos altura para no tapar toda la pantalla */
  }
}
.precio {
  margin: 10px 0;
  font-size: 1.2rem;
}

.precio-original {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
}

.precio-descuento {
  color: #d60000;
  font-weight: bold;
  font-size: 1.3rem;
}

/* =========================
   BUSCADOR FIJO EN MOVIL
========================= */

@media (max-width: 768px) {

   .search-icon {
    display: none !important;
  }

  .search-bar {
    display: flex !important;
    justify-content: center;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 8px 0;
    background: #000;
    z-index: 2000;
  }

  .search-bar input {
    width: 100%;       /* 🔥 ya no 100% */
    max-width: 400px;    /* 🔥 límite elegante */
    padding: 10px 15px;
    border-radius: 25px; /* 🔥 estilo moderno */
    border: 1px solid #333;
    background: #111;
    color: white;
  }

}

