/* ======================================================
   RESET & BASE
   ====================================================== */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  background-color: #111;
  color: #f1f1f1;
}

h1,
h2,
.logo {
  font-family: 'Orbitron', sans-serif;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #39ff14;
  text-shadow: 0 0 2px #39ff14;
}

p {
  text-align: center;
}

/* ======================================================
   HEADER & NAV
   ====================================================== */
header {
  position: relative;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #000;
}

.logo {
  height: 100px;
  margin-right: 1rem;
  /* un poco más de “punch” visual */
  filter: brightness(1.15) contrast(1.15) drop-shadow(0 0 6px rgba(0,0,0,.5));
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  flex-grow: 1;
}

nav a {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #e91e63;
}

/* ======================================================
   HERO (VIDEO DE FONDO)
   ====================================================== */
.hero {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: clamp(1rem, 3vw, 1.5rem);
}

/* contraste del texto del hero */
.hero-content h1,
.hero-content p {
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Botón genérico */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  background: #e91e63;
  border-radius: 30px;
  transition: background 0.3s;
}

.btn:hover {
  background: #c2185b;
}

/* Secciones base */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ======================================================
   SERVICIOS
   ====================================================== */
#servicios {
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
}

#servicios h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.servicio-card {
  padding: 2rem 1.5rem;
  text-align: center;
  background: #1f1f1f;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
}

.servicio-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.servicio-card h3 {
  margin: 0.5rem 0;
  color: #fff;
}

.servicio-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #ccc;
}

/* ======================================================
   PRODUCTOS (CARDS + GRILLA)
   ====================================================== */
#productos {
  position: relative;
  z-index: 10;
  padding-top: 2rem;
  background: linear-gradient(135deg, #111, #1f1f1f);
}

#productos h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

/* --- Opción A: CSS Grid responsivo --- */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.producto,
.producto-index {
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  background: #1c1c1c;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* asegura ocupar la celda completa del grid */
}

.producto:hover,
.producto-index:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 255, 120, 0.3);
}

.producto img,
.producto-index img {
  width: 100%;
  height: 180px;
  margin-bottom: 1rem;
  object-fit: contain;
  border-radius: 8px;
}

.producto h3,
.producto-index h3 {
  margin: 0.5rem 0;
  font-weight: bold;
  min-height: 3.6rem;       /* reserva hasta 3 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto p,
.producto-index p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #ccc;
}

.producto-index .precio {
  margin-bottom: 0.8rem;
  font-weight: bold;
  color: #39ff14;
}

/* Botones en cards */
.producto button,
.producto-index button,
.btn-ver-mas {
  margin-top: 10px;
  padding: 8px 12px;
  font-weight: bold;
  color: #000;
  background: #39ff14;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.producto button:hover,
.producto-index button:hover,
.btn-ver-mas:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px #39ff14;
}

.btn-ver-mas {
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-block;
}

/* Ver más / Ver menos dentro de descripciones */
.leer-mas-btn {
  margin-top: 0.5rem;
  padding: 0;
  color: #ccc;
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.leer-mas-btn:hover,
.ver-mas:hover,
.ver-menos:hover {
  color: #39ff14;
}

.ver-mas,
.ver-menos {
  color: #39ff14;
  cursor: pointer;
  text-decoration: none;
  font-weight: inherit;
}

.descripcion-corta {
  overflow: hidden;
  min-height: 3.6rem;
}

/* ======================================================
   SWIPER (IMÁGENES & VIDEO)
   ====================================================== */
.swiper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
}

/* Swiper de Video */
.video-swiper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
}

.video-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-swiper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ======================================================
   MODAL DE GALERÍA
   ====================================================== */
.galeria-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 999;
  display: none;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  padding: 1rem;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
}

.galeria-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  padding: 1rem;
  border-radius: 10px;
  background: #111;
  overflow: hidden;
}

.galeria-modal-swiper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.galeria-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 576px) {
  .galeria-modal {
    width: 95%;
    max-height: 90vh;
  }
  .galeria-modal-content {
    max-width: 100%;
    max-height: 100%;
    height: auto;
  }
}

/* ======================================================
   FILTROS (PÁGINA DE PRODUCTOS)
   ====================================================== */
#filtros input,
#filtros select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 180px;
  max-width: 220px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: bold;
  color: #39ff14;
  background: #000;
  border: 2px solid #39ff14;
  border-radius: 30px;
  transition: 0.3s;
}

#filtros select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2339ff14" 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;
  cursor: pointer;
}

#filtros input:focus,
#filtros select:focus {
  background: #1f1f1f;
  color: #39ff14;
  outline: none;
}

/* ======================================================
   CARRITO (CONTAINER + TOGGLE)
   ====================================================== */
#carrito-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

#carrito-toggle {
  padding: 10px 15px;
  font-weight: bold;
  color: #000;
  background: #39ff14;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 0 10px #39ff14;
}

/* Caja del carrito */
#carrito {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 300px;
  margin-top: 10px;
  padding: 1rem;
  color: #fff;
  background: #000;
  border: 2px solid #39ff14;
  border-radius: 10px;
}

.carrito-oculto {
  display: none !important;
}

#carrito-lista {
  max-height: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  overflow-x: hidden;
}

#carrito-lista li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #222;
}

#carrito-lista li .agregar-item,
#carrito-lista li .eliminar-item {
  padding: 0.2rem 0.4rem;
  margin-left: 0.25rem;
  font-size: 1rem;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#carrito-lista li .agregar-item {
  color: #39ff14;
}

#carrito-lista li .eliminar-item {
  color: #e91e63;
}

/* Botón “Enviar pedido por WhatsApp” */
#whatsapp-boton {
  width: 100%;
  padding: 10px 16px;
  font-weight: bold;
  color: #fff;
  background: #25D366; /* verde WhatsApp */
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

#whatsapp-boton:hover {
  transform: scale(1.02);
  background-color: #1ebe5d;
  box-shadow: 0 0 8px #25D366;
}

/* ======================================================
   REDES, CTA E ÍCONOS FLOTANTES
   ====================================================== */
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}

.icon-float {
  position: fixed;
  bottom: 20px;
  width: 40px;
  height: 40px;
  z-index: 3000;
  pointer-events: auto;
}

.icon-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.icon-float img:hover {
  transform: scale(1.1);
}

.icon-float.instagram { right: 120px; }
.icon-float.whatsapp  { right: 70px; }
.icon-float.youtube   { right: 20px; }

.cta-float {
  position: fixed;
  right: 20px;
  bottom: 100px;
  padding: 15px 20px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  background-color: #39ff14;
  border-radius: 30px;
  box-shadow: 0 0 15px #39ff14;
  z-index: 1000;
}

/* ======================================================
   SECCIONES OSCURAS UNIFICADAS
   (Videos, Testimonios, Redes, Ubicación) + Títulos
   ====================================================== */
#videos,
#testimonios,
#redes-sociales,
#ubicacion {
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
}

/* Títulos (incluye #productos para que quede idéntico) */
#servicios h2,
#productos h2,
#videos h2,
#testimonios h2,
#redes-sociales h2,
#ubicacion h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #39ff14;
  text-shadow: 0 0 2px #39ff14;
  text-align: center;
}

/* Videos */
#videos .video-swiper {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Testimonios */
#testimonios blockquote {
  max-width: 800px;
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  color: #eaeaea;
  background: #1f1f1f;
  border-left: 4px solid #39ff14;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  font-style: italic;
}

/* Redes sociales */
#redes-sociales .social-icons img {
  filter: drop-shadow(0 0 6px #39ff14);
}

/* Ubicación / mapa */
#ubicacion p {
  margin-bottom: 1.2rem;
  color: #ccc;
}

#ubicacion .mapa-container {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: #1f1f1f;
  border: 1px solid #222;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

#ubicacion .mapa-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  padding: 2rem;
  font-size: 0.9rem;
  text-align: center;
  background: #000;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 768px) {
  .hero {
    height: auto;
  }

  .background-video {
    position: absolute;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    justify-content: center;
    margin-top: 1rem;
  }

  #ubicacion .mapa-container iframe {
    height: 360px;
  }
}
