/* RESET Y FUENTE BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #121212;
  color: #fff;
}

body, html {
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #000000, #222222);
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  left: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.background-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .background-video {
    display: block;
  }
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #FF3339;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #FF3339;
}

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

/* SUBMENU */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  padding: 10px 0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li {
  padding: 8px 20px;
}

.submenu li a {
  color: #fff;
  display: block;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.galeria-moderna-carrusel {
  padding: 60px 0;
  text-align: center;
}

.carousel-container {
  width: 100%;
  overflow-x: auto;  /* permitimos scroll horizontal en todos */
  scroll-behavior: smooth;
  cursor: grab;
  position: relative;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  
  user-select: none;
}

/* Contenedor carrusel */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Pista del carrusel animada */
.carousel-track {
  display: flex;
  animation: scrollDesktop 15s linear infinite;
}

/* Imágenes sin separación */
.imagen-galeria {
  flex: 0 0 auto;
  width: 600px;
  height: 400px;
  margin: 0; /* SIN separación */
}

/* Imágenes internas */
.imagen-galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animación para escritorio */
@keyframes scrollDesktop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-290%);
  }
}

/* Solo aplica la animación en escritorio */
@media (max-width: 168px) {
  .imagen-galeria {
    width: 90vw;  /* 90% del ancho de pantalla */
    height: auto;
    aspect-ratio: 3 / 2;
  }
}



  



/* ICONOS */
.icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.icons a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icons img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50%;
  background-color: black;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.icons img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
  .icons img {
    width: 60px;
    height: 60px;
    padding: 8px;
  }
}

/* FOOTER */
.footer {
  background-color: black;
  color: #aaa;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 14px;
}

/* RESPONSIVE MENU */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

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

  .menu-toggle {
    display: block;
  }

  .submenu {
    position: relative;
    display: none;
  }

  .has-submenu.active .submenu {
    display: block;
  }
}

/* PUZZLE */
#puzzle {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 2px;
  margin-top: 20px;
}

.piece {
  width: 100px;
  height: 100px;
  background-size: 300px 300px;
  border: 1px solid #ccc;
  cursor: grab;
}

/* BOTÓN FLOTANTE WHATSAPP PARA CELULAR */
.whatsapp-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float-btn:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 145px;
  height: 145px;
}

@media (max-width: 768px) {
  .whatsapp-float-btn {
    display: flex;
  }
}
