@import url("https://fonts.googleapis.com/css?family=Lato:400,300,700,900,400italic");
@import url("https://fonts.googleapis.com/css2?family=Hind&family=Montserrat:wght@700&display=swap");

/* --- home.css */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.container {
  display: flex; /* Organiza el sidebar y el contenido principal horizontalmente */
  flex-direction: row; /* Sidebar a la izquierda, contenido principal a la derecha */
  height: 100vh;
  width: 100%;
}

/* Contenido principal */
.main-content {
  flex-grow: 1; /* Ocupa el espacio restante horizontalmente */
  display: flex; /* Organiza sus hijos verticalmente */
  flex-direction: column; /* Apila `#proparallax` y el footer */
  height: 100%; /* Ocupa toda la altura */
  overflow-y: auto; /* Scroll vertical si el contenido excede la altura */
}

/* Proparallax */
#proparallax {
  flex: 1; /* Ocupa todo el espacio vertical disponible antes del footer */
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 40em;
}

#proparallax img {
  position: absolute;
  width: 64.67rem !important;
  height: 37.5rem;
  overflow: hidden;
  object-fit: cover;
}

/* Contenedor del texto */
.text-overlay {
  position: absolute;
  top: 50%; /* Centrar verticalmente */
  transform: translate(25%, -50%); /* Ajuste perfecto al centro */
  text-align: center;
  color: white;
  z-index: 10; /* Asegura que el texto esté encima de las imágenes */
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* Efecto de sombra en el texto */
  width: 700px;
}

/* Título */
.text-overlay h1 {
  font-size: 3rem; /* Tamaño grande para el título */
  margin: 0;
  font-weight: bold;
  text-transform: uppercase;
}

/* Subtítulo */
.text-overlay p {
  font-size: 1.5rem;
  margin: 10px 0 0;
  font-style: italic;
}

@keyframes parallax_one {
  /* controls img.one movement */
  0% {
    /* .imageloaded */
    height: 37.5rem;
    width: 50rem;
    left: 0rem;
    opacity: 1;
  }
  /* .imagehold runs from 0 to 27.77% */
  27.77% {
    /* .imageloaded */
    width: 50rem;
    left: 0rem;
  }
  27.78% {
    /* .imagepreunload */
    width: 50rem;
    left: 0rem;
    right: 50rem;
  }
  33.33% {
    /* .imageunloaded */
    height: 37.5rem;
    width: 0rem;
    left: 0rem;
    right: 0rem;
    opacity: 1;
  }
  33.34% {
    /* imageoff */
    opacity: 0;
  }
  94.43% {
    /* .imageon */
    left: 0rem;
    opacity: 0;
  }
  94.44% {
    /* .imageinitial */
    height: 37.5rem;
    width: 0rem;
    left: 50rem;
    opacity: 1;
  }
  100% {
    /* .imageloaded */
    width: 50rem;
    left: 0rem;
    opacity: 1;
  }
}

@keyframes parallax_two {
  /* controls img.two movement */
  0% {
    /* .imageoff */
    opacity: 0;
  }
  27.77% {
    /* .imageon */
    left: 0rem;
    opacity: 0;
  }
  27.78% {
    /* .imageinitial */
    width: 0rem;
    height: 37.5rem;
    left: 50rem;
    opacity: 1;
  }
  33.33% {
    /* .imageloaded */
    width: 50rem;
    left: 0rem;
  }
  /* .imagehold runs from 33.34% - 61.10% */
  61.10% {
    /* .imageloaded */
    width: 50rem;
    left: 0rem;
  }
  61.11% {
    /* .imagepreunload */
    width: 50rem;
    left: 0rem;
    right: 50rem;
  }
  66.67% {
    /* .imageunloaded */
    width: 0rem;
    right: 0rem;
    left: 0rem;
    height: 37.5rem;
    opacity: 1;
  }
  66.68% {
    /* .imageoff */
    opacity: 0;
  }
  100% {
    /* .imageoff */
    opacity: 0;
  }
}

@keyframes parallax_three {
  /* controls img.three movement */
  0% {
    /* .imageoff */
    opacity: 0;
  }
  61.10% {
    /* .imageon */
    opacity: 0;
  }
  61.11% {
    /* .imageinitial */
    width: 0rem;
    height: 37.5rem;
    left: 50rem;
    opacity: 1;
  }
  66.67% {
    /* .imageloaded */
    width: 50rem;
    left: 0rem;
  }
  /* .imagehold runs from 66.67% - 94.43% */
  94.43% {
    /* .imageloaded */
    width: 50rem;
    left: 0rem;
  }
  94.44% {
    /* .imagepreunload */
    width: 50rem;
    left: 0rem;
    right: 50rem;
  }
  100% {
    /* imageunloaded */
    width: 0rem;
    right: 0rem;
    left: 0rem;
    height: 37.5rem;
    opacity: 1;
  }
}

#proparallax img.one {
  animation-name: parallax_one; /* controls img.one movement */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 18s;
  animation-direction: forwards;
  object-fit: cover;
}

#proparallax img.two {
  animation-name: parallax_two; /* controls img.two movement */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 18s;
  animation-direction: forwards;
  object-fit: cover;
}

#proparallax img.three {
  animation-name: parallax_three; /* controls img.three movement */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 18s;
  animation-direction: forwards;
  object-fit: cover;
}

/* TESTIMONIALS */

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #444;
  font-weight: bold;
}
.testimonials {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
  color: #333;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.testimonial {
  flex: 0 0 100%; /* Cada testimonio ocupa el 100% del ancho del carrusel */
  box-sizing: border-box;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial i.fa-quote-left {
  font-size: 2rem;
  color: #007bff;
  position: absolute;
  top: 10px;
  left: 20px;
}

.testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  margin: 50px 0 15px; /* Ajuste para el ícono */
  color: #555;
}

.testimonial h4 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #777;
}

.rating span {
  font-size: 1.5rem;
  color: #f4c150; /* Color dorado para las estrellas */
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  color: white;
  background: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 10px;
}

.btn:hover {
  background: #0056b3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos del modal VALORACION */
/* Contenedor del modal */
#image-modal-valoracion {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto; /* Permite desplazarse si el contenido es más alto que la ventana */
  z-index: 1000;
}

#image-modal-valoracion .modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
}

#image-modal-valoracion.hidden {
  display: none;
}

/* Botón para cerrar el modal */
.close-modal-reseñas {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff4d4d; /* Rojo llamativo */
    color: white;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  
/* Grilla de imágenes */
#modal-image-container {
  display: grid;
  gap: 10px;
  justify-content: center;
}

#modal-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
/* Estilo responsivo */
@media (min-width: 1024px) {
  #modal-image-container {
    display: grid;
    grid-template-columns: repeat(
      auto-fit,
      minmax(300px, 1fr)
    ); /* Ajusta dinámicamente según el número de imágenes */
    grid-auto-flow: dense; /* Rellena los espacios vacíos */
    gap: 10px;
    justify-content: center;
  }

  #modal-image-container img {
    max-height: 340px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #modal-image-container {
    grid-template-columns: repeat(
      auto-fit,
      minmax(300px, 1fr)
    ); /* Ajusta dinámicamente */
    gap: 10px;
    justify-content: center;
  }

  #modal-image-container img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
}

@media (max-width: 767px) {
  #modal-image-container {
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 10px;
    justify-content: center;
  }

  #modal-image-container img {
    max-height: 250px; /* Ajustar para pantallas pequeñas */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
}

/* About me */
.about-me {
  padding: 40px 20px;
  background-color: #f8f9fa;
}

.about-me__container {
  display: flex;
  flex-wrap: wrap; /* Permite apilar en pantallas pequeñas */
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.about-me__image {
  flex: 1 1 45%; /* Ocupa hasta el 45% del contenedor */
  text-align: center;
}

.about-me__image img {
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.about-me__image h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}

.about-me__image p {
  font-size: 1rem;
  color: #666;
}

.about-me__highlights {
  flex: 1 1 50%; /* Ocupa hasta el 50% del contenedor */
}

.about-me__highlights h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: #007bff;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.highlight img {
  width: 90px;
  height: 90px;
  margin-left: 160px;
}

.highlight p {
  font-size: 1rem;
  color: #555;
}

/* Servicios mas elegidos */
.popular-products {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
}

.popular-products h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  font-weight: bold;
}

/* Contenedor de los productos */
.products-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* Hace que los productos se adapten en pantallas pequeñas */
}

/* Estilo de cada producto */
.product {
  text-align: center;
  max-width: 200px;
}

.product-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%; /* Hace que la imagen sea circular */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen se ajuste correctamente */
}

.product h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #555;
}

/* Botón estilo */
.btneventspopular {
  display: inline-block;
  padding: 10px 15px;
  font-size: 1rem;
  color: white;
  background: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btneventspopular i {
  margin-right: 5px;
}

.btneventspopular:hover {
  background: #0056b3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Hero banner */
/* Wrapper del collage */

/* Wrapper del collage */
.image-grid-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

/* Collage */
.image-grid {
  display: flex;
  flex-wrap: wrap;
}

.image-grid div {
  width: 25%;
  height: 240px;
  overflow: hidden; /* Necesario para el object-fit */
  position: relative;
}

/* Imágenes nuevas */
.image-grid div img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Reemplaza background-size */
  object-position: center;
  display: block;
}

/* Texto centrado */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 25px;
  border-radius: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 5px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Responsividad */
@media (max-width: 768px) {
  .image-grid div {
    width: 33.33%;
    height: 200px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .image-grid div {
    width: 50%;
    height: 150px;
  }

  .hero-text {
    top: 50%;
  }

  .hero-text h1 {
    font-size: 2rem;
    width: 290px;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .image9,
  .image10,
  .image11,
  .image12 {
    display: none;
  }

  .highlight img {
    width: 50px;
    height: 50px;
  }
}


/* Responsive Adjustments */

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .testimonial {
    padding: 15px;
  }

  .testimonial p {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
  }

  .about-me__container {
    flex-direction: column; /* Cambia a diseño vertical */
  }

  .about-me__image {
    flex: 1 1 100%; /* Toma todo el ancho */
  }

  .highlight img{
    width: 70px;
    height: 70px;
    margin-left: 0px;
  }

  .about-me__highlights {
    flex: 1 1 100%; /* Toma todo el ancho */
  }

  .products-container {
    flex-direction: column; /* Cambia a diseño vertical */
    gap: 20px;
  }

  .product {
    max-width: 100%;
  }
}

/* --- sidebar.css */
body {
  font-size: 14px;
  color: #666;
  background: #f2f2f2;
  /*-webkit-text-size-adjust: 100%;*/
  -moz-osx-font-smoothing: grayscale;
  /*-webkit-font-smoothing: antialiased;*/
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* ------------ Sidenav CSS ------------- */
#sidenav {
  width: 320px; /* 📌 Ancho fijo */
  background: #101010;
  color: white;
  overflow-y: auto;
  position: relative;
  flex-shrink: 0; /* 📌 Evita que el sidebar se reduzca */
}

#sidenav.open {
  left: -300px;
}
#sidenav .logo {
  padding: 20px 50px;
  background: #101010;
  display: block;
}
#sidenav .logo a {
  color: #dadada;
  font-size: 30px;
}
#sidenav .logo a.nav-icon {
  display: none;
}
#sidenav .menu {
  position: static;
}

.sidebar-search {
  margin: 15px;
  padding: 10px;
}

.sidebar-search input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.sidebar-search input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

#sidenav .menu ul {
  list-style: none;
  background: #101010;
  margin: 0;
}

/* Estilo para resaltar coincidencias en títulos */
.match {
  color: #ff5722; /* Color naranja llamativo */
  font-weight: bold; /* Texto en negrita */
  text-decoration: underline; /* Subrayado */
  text-decoration-thickness: 2px; /* Grosor del subrayado */
  text-underline-offset: 3px; /* Espacio entre el texto y el subrayado */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Sombra suave */
  transition: all 0.3s ease; /* Transición suave */
}

/* Estilo para resaltar categorías */
.match-category {
  color: #007bff; /* Color azul llamativo */
  font-weight: bold; /* Texto en negrita */
  border-left: 4px solid #007bff; /* Borde izquierdo */
  padding-left: 8px; /* Espaciado para el borde */
  transition: all 0.3s ease; /* Transición suave */
}

/* Animación de desvanecimiento */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match,
.match-category {
  animation: fadeIn 0.5s ease-in-out; /* Aplicar animación */
}

#sidenav .menu ul li {
  padding: 6px 14%;
  margin-top: 10px;
}
#sidenav .menu ul li.active {
  border-left: solid 4px red;
}
#sidenav .menu ul .menu-categoria {
  font-size: 25px;
  color: rgba(253, 18, 117, 0.7);
  font-weight: 300;
  display: block;
}
#sidenav .menu ul li a {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  display: block;
}
#sidenav .menu ul li a:hover {
  color: rgba(255, 255, 255, 0.5);
}
#sidenav .menu ul li a.logout:hover {
  color: red;
}
#sidenav .menu ul li ul {
  list-style: none;
  margin: 10px auto 0;
  padding: 10px 15px;
  border-top: solid 1px rgba(255, 255, 255, 0.08);
  border-bottom: solid 1px rgba(255, 255, 255, 0.08);
}
#sidenav .menu ul li ul li {
  padding: 6px 3px;
}
#sidenav .menu ul li ul li a {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

/* Ocultar los bordes del contenedor si no hay elementos visibles */
#sidenav .menu ul li ul {
  border-top: none;
  border-bottom: none;
}

/* Agregar bordes solo si hay al menos un elemento visible */
#sidenav .menu ul li ul:has(li:not([style*="display: none"])) {
  border-top: solid 1px rgba(255, 255, 255, 0.08);
  border-bottom: solid 1px rgba(255, 255, 255, 0.08);
}

/* Cambiar el estilo de los elementos ocultos para que no ocupen espacio */
#sidenav .menu ul li ul li[style*="display: none"] {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: none; /* Asegurarse de que los bordes no se muestren */
}

/* Mejorar la apariencia de los enlaces visibles */
#sidenav .menu ul li ul li {
  transition: all 0.3s ease; /* Transición suave al mostrar/ocultar */
}

/* LISTA DE PIROTECNIA */
#pirotecnia-menu {
  color: #ec410b !important;
}

/* Estilos para el contenedor principal de pirotecnia */
.piro-container {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Estilo para las etiquetas de pirotecnia (hacen de categorías) */
.menu-etiqueta {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  padding: 6px 14%;
  margin-top: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.menu-etiqueta:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* Flecha para indicar desplegable */
.menu-etiqueta .arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.menu-etiqueta.active .arrow {
  transform: rotate(90deg);
}

/* ESTILOS PARTICULARES PARA ETIQUETAS ACTIVAS DE PIROTECNIA */
.menu-etiqueta.active {
  /* Quitamos el borde izquierdo rojo del estilo general */
  border-left: none !important;
  /* Agregamos tus estilos particulares aquí */
  background: rgba(253, 18, 117, 0.1);
  color: rgba(253, 18, 117, 0.9);
  border-radius: 4px;
}

/* Lista de subcategorías (servicios) */
.subcat-list {
  list-style: none;
  margin: 0;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-top: solid 1px rgba(255, 255, 255, 0.08);
  border-bottom: solid 1px rgba(255, 255, 255, 0.08);
  display: none; /* Oculto por defecto */
}

.subcat-list.active {
  display: block; /* Mostrar cuando está activo */
}

.subcat-list li {
  padding: 6px 3px;
  margin: 0;
}

.subcat-list li a {
  font-size: 18px;
  color: rgba(255, 100, 100, 0.8) !important; 
  display: block;
  transition: color 0.3s ease;
}

.subcat-list li a:hover {
  color: rgba(255, 100, 100, 1); 
  text-decoration: underline;
}

@media (max-width: 768px) {
  #sidenav {
    width: 100%;
    height: auto;
    z-index: 100;
    background: none;
    margin-bottom: 40px;
  }
  #sidenav .logo {
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 101;
  }
  #sidenav .logo a {
    font-size: 20px;
  }
  #sidenav .logo a.nav-icon {
    display: inline;
    float: right;
  }
  #sidenav .menu {
    display: none;
  }
  #sidenav .menu.open {
    position: fixed;
    top: 50px; /* Ajusta según la altura de tu logo */
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
    display: block !important;
    overflow-y: auto; /* Habilita el scroll vertical */
  }
  #sidenav .menu ul {
    border-top: solid 1px #333;
  }
  #sidenav .menu ul li {
    padding: 6px 5%;
  }

  .menu-etiqueta {
    padding: 6px 5%;
    font-size: 20px;
  }

  .menu-etiqueta.active {
    margin-left: 5px;
    margin-right: 5px;
  }

  .subcat-list {
    padding: 10px 8px;
  }

  .subcat-list li a {
    font-size: 16px;
  }
}

/* --- footer.css */
:root {
  --text-font: "Hind", sans-serif;
  --title-font: "Montserrat", sans-serif;
  --white: hsl(0, 0%, 100%);
  --dark: hsl(0, 0%, 8%);
  --dark-fade: rgba(0, 0, 0, 0.35);
  --gray: hsl(0, 0%, 44%);
  --light-gray: hsl(0, 0%, 63%);
  --faded-gray: hsl(0, 0%, 88%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--text-font);
  color: var(--dark);
}

img {
  width: 100%;
  vertical-align: top;
}

a {
  text-decoration: none;
  color: inherit;
}

.footer {
  width: 100%; /* 📌 Que solo ocupe el ancho del contenido principal */
  padding: 20px 0;
  text-align: center;
  margin-top: 80px;
}

.footer__redes-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 45px auto;
}
.footer__redes-wrapper li {
  display: inline-block;
}
.footer__redes-wrapper li:hover {
  color: var(--gray);
}
.footer__link {
  text-transform: uppercase;
  font-family: var(--title-font);
  font-size: rem(14);
}
.footer .fab {
  margin-right: 8px;
}
.footer__texto {
  color: var(--light-gray);
  text-align: center;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.gallery__photo {
  position: relative;
  display: inline-block;
}
.gallery__fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-fade);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}
.gallery__fade:hover {
  opacity: 1;
}
.gallery__icon {
  color: #fff;
  width: 50px;
  height: 50px;
}

.separador {
  background-color: var(--faded-gray);
  height: 2px;
  max-width: 30px;
  margin: 15px auto 20px;
}

.footer__redes-wrapper li, .gallery__fade {
  transition: all ease 0.3s;
}

/**
 * Owl Carousel v2.3.4
 * Copyright 2013-2018 David Deutsch
 * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
 */
.owl-carousel,
.owl-carousel .owl-item {
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.owl-carousel {
  display: none;
  width: 100%;
  z-index: 1;
}

.owl-carousel .owl-stage {
  position: relative;
  -ms-touch-action: pan-Y;
  touch-action: manipulation;
  -moz-backface-visibility: hidden;
}

.owl-carousel .owl-stage:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.owl-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  max-height: 18em;
}

.owl-carousel .owl-item,
.owl-carousel .owl-wrapper {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-item {
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-touch-callout: none;
}

.owl-carousel .owl-item img {
  display: block;
  width: 100%; /* 📌 Se adapta al ancho del contenedor */
}

.owl-carousel .owl-dots.disabled,
.owl-carousel .owl-nav.disabled {
  display: none;
}

.no-js .owl-carousel,
.owl-carousel.owl-loaded {
  display: block;
}

.owl-carousel .owl-dot,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-nav .owl-prev {
  cursor: pointer;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
  background: 0 0;
  color: inherit;
  border: none;
  padding: 0 !important;
  font: inherit;
}

.owl-carousel.owl-loading {
  opacity: 0;
  display: block;
}

.owl-carousel.owl-hidden {
  opacity: 0;
}

.owl-carousel.owl-refresh .owl-item {
  visibility: hidden;
}

.owl-carousel.owl-drag .owl-item {
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.owl-carousel.owl-grab {
  cursor: move;
  cursor: grab;
}

.owl-carousel.owl-rtl {
  direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
  float: right;
}

.owl-carousel .animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.owl-carousel .owl-animated-in {
  z-index: 0;
}

.owl-carousel .owl-animated-out {
  z-index: 1;
}

.owl-carousel .fadeOut {
  animation-name: fadeOut;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.owl-height {
  transition: height 0.5s ease-in-out;
}

.owl-carousel .owl-item .owl-lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.owl-carousel .owl-item .owl-lazy:not([src]),
.owl-carousel .owl-item .owl-lazy[src^=""] {
  max-height: 0;
}

.owl-carousel .owl-item img.owl-lazy {
  transform-style: preserve-3d;
}

.owl-carousel .owl-video-wrapper {
  position: relative;
  height: 100%;
  background: #000;
}

.owl-carousel .owl-video-play-icon {
  position: absolute;
  height: 80px;
  width: 80px;
  left: 50%;
  top: 50%;
  margin-left: -40px;
  margin-top: -40px;
  background: url(owl.video.play.png) no-repeat;
  cursor: pointer;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  transition: transform 0.1s ease;
}

.owl-carousel .owl-video-play-icon:hover {
  -ms-transform: scale(1.3, 1.3);
  transform: scale(1.3, 1.3);
}

.owl-carousel .owl-video-playing .owl-video-play-icon,
.owl-carousel .owl-video-playing .owl-video-tn {
  display: none;
}

.owl-carousel .owl-video-tn {
  opacity: 0;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.4s ease;
}

.owl-carousel .owl-video-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
}

/* home-destacados.css */
.featured-products {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  /* Fondo neutro para combinar con blanco y negro */
  color: black;
  padding: 50px 20px;
  text-align: center;
}

.featured-carousel-container {
  max-width: 1200px;
  margin: auto;
  overflow: visible;
  background: transparent;
  padding: 20px;
  position: relative;
  /* Fija los botones dentro del carrusel */
}

.featured-products-title {
  font-size: 28px;
  margin-bottom: 20px;
}

.featured-carousel {
  display: flex;
  overflow: hidden;
  width: 100%;
}

/* Contenedor del producto */
.featured-carousel-item {
  width: calc(33.33% - 20px); /* ✅ Ajustado para mostrar 3 elementos */
  min-width: calc(33.33% - 20px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* Para que el contenido no se desborde */
  text-align: center;
  height: 420px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.featured-carousel-item:hover {
  transform: scale(1.02);
}

/* Imagen del producto */
.featured-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.featured-carousel-item:hover img {
  transform: scale(1.05);
}

/* Contenedor de información dentro de la imagen */
.featured-carousel-item .product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
  padding: 15px 10px;
  border-radius: 0 0 15px 15px;
  color: white;
  transition: background 0.3s;
}

.featured-carousel-item:hover .product-info {
  background: rgba(0, 0, 0, 0.8);
}

/* Título del producto */
.featured-carousel-item h3 {
  margin: 5px 0;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Botón dentro de la imagen */
.featured-carousel-item a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background-color: #ff9900;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.featured-carousel-item a:hover {
  background-color: #cc7a00;
}

.featured-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  /* En lugar de margin-right en los items */
}

.featured-products-title {
  font-size: 28px;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.featured-products-title::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: #007bff; /* Color del subrayado */
  bottom: -10px; /* Distancia del texto */
  left: 0;
}

/* Botones de navegación */
.featured-carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  font-size: 24px;
  z-index: 1;
}

.featured-carousel-button.prev {
  left: -17px;
}

.featured-carousel-button.next {
  right: 10px;
}

.featured-carousel-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
  /* .featured-carousel {
        width: 106%;
    } */

  .featured-carousel-item {
    width: 28%;
    min-width: 28%;
  }
}
@media (max-width: 480px) {
  /* Ocultar botones en móviles */
  .featured-carousel-button.prev {
    left: 6px;
  }

  /* Mostrar solo 1 producto si la pantalla es muy pequeña */
  .featured-carousel-item {
    width: 47%;
    min-width: 47%;
    height: 350px;
    margin: 0 auto; /* Centrar el único producto */
  }
/* Ajustar la posición de la información del producto */
.product-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(0%);
    width: 90%; /* Reducir el ancho */
    background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro para mejor legibilidad */
    padding: 8px;
    border-radius: 10px;
    text-align: center;
}

/* Hacer el título más pequeño y limitarlo a 2 líneas */
.product-info h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ajustar el botón */
.product-info a {
    display: inline-block;
    font-size: 14px;
    padding: 6px 12px;
    background-color: #ff9900;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.product-info a:hover {
    background-color: #cc7a00;
}

  /* Ajuste del contenedor */
  .featured-products,
  .featured-carousel-container {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* services-random-home.css */
/* Estilos generales para la sección de productos */
.mas-productos {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9, #eaeaea);
}

/* Título de la sección */
.mas-productos-titulo {
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: #333; /* Color oscuro para mejor contraste */
}

.mas-productos-titulo::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff; /* Línea decorativa debajo del título */
    margin: 10px auto 0;
}

/* Grid de productos */
.mas-productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Estilos para cada tarjeta de producto */
.mas-producto-item {
    background: white;
    padding: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.mas-producto-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Imágenes de los productos */
.mas-producto-item img {
    width: 100%;
    height: 300px; /* Imágenes más altas */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mas-producto-item:hover img {
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
}

/* Títulos de los productos */
.mas-producto-item h3 {
    font-size: 20px;
    color: #333;
    margin: 15px 0 10px;
}

/* Estilos para el botón "VER PRODUCTO" */
.mas-producto-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px; /* Padding en todos los lados */
    border: 3px solid #e4e4e4; /* Borde double */
    color: #848494; /* Color de texto */
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5; /* Line-height */
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* Efecto hover */
.mas-producto-link:hover {
    border-color: #007bff; /* Borde azul */
    color: #007bff; /* Texto azul */
}
/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mas-producto-item:nth-child(1) { animation-delay: 0.1s; }
.mas-producto-item:nth-child(2) { animation-delay: 0.2s; }
.mas-producto-item:nth-child(3) { animation-delay: 0.3s; }
.mas-producto-item:nth-child(4) { animation-delay: 0.4s; }
.mas-producto-item:nth-child(5) { animation-delay: 0.5s; }
.mas-producto-item:nth-child(6) { animation-delay: 0.6s; }

/* Estilos responsive para móviles */
@media (max-width: 768px) {
    .mas-productos-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
        }

    .mas-producto-item img {
        height: 250px; /* Imágenes más altas en móviles */
    }

    .mas-productos-titulo {
        font-size: 28px; /* Título más pequeño en móviles */
    }

    .mas-producto-item h3 {
        font-size: 18px; /* Títulos de productos más pequeños en móviles */
    }

    .mas-producto-link {
        padding: 8px 16px; /* Botón más pequeño en móviles */
        font-size: 14px;
    }
}