/* styles.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
     /* Desactiva el scroll */
  }

  header {
    position: absolute; /* Permite que el fondo pase detrás del header */
    top: 20px; /* Da espacio desde la parte superior */
    left: 50%; /* Centra horizontalmente */
    transform: translateX(-50%); /* Centra el header */
    width: 90%; /* El header ocupará solo el 80% del ancho de la pantalla */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.8); /* Fondo semi-transparente */
    padding: 5px 20px;
    border-radius: 10px; /* Bordes redondeados */
    border: 4px solid #F5862A; /* Borde de color rojo */
    z-index: 1;
  }
  
  .logo img {
    max-height: 50px;
  }
  
  .menu {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .menu a {
    text-decoration: none;
    color: white;
    font-size: 14px;
  }
  
  .menu a.active {
    background-color: rgb(223, 65, 67);
    padding: 10px 15px;
    border-radius: 10px;
    color: white!important;
  }
  
  .menu a:hover {
    background-color: rgb(223, 65, 67);
    padding: 10px 15px;
    border-radius: 10px;
    color: white!important;
  }

  .hero {
    background-image: url(/assets/videos/warehouse-video.gif);
    background-size: cover;
    background-position: center;
    color: white;
    /* text-align: center; */
    /* padding: 50px 20px; */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
}
 
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.secvideo {
  background-position: center;
  background-color: #141C25;
  /* text-align: center; */
  padding: 50px 20px;
  /* height: 60vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
}

.video-container {
  position: relative;
   /* Color naranja */
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

video {
  border: 4px solid #ff7300;
  width: 800px; /* Ajusta según necesidad */
  max-width: 100%;
  height: auto;
}

  .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    margin: 100px 100px 30px 150px;
}

.hero-btn {
    margin-left: 150px;
    font-size: 3rem;
    margin-right: auto;
}
  
  .cta-button {
    background-color: #DF4143;
    color: white;
    border: none;
    padding: 10px 40px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 20px;
    font-weight: 600;
  }
  
  .whatsapp-button {
      /* position: fixed; */
      bottom: 20px;
      /* right: 20px; */
      position: fixed;
      /* top: 20px; */
      right: 20px;
      z-index: 1000;
  }
  
  .whatsapp-button img {
    max-width: 50px;
  }

  .container {
    display: flex;
    background: #141C25;
  }
  
  .left-section {
    flex: 1; /* Toma la mitad del ancho */
    padding: 80px;
    overflow-y: auto; /* Permite scroll si el contenido es extenso */
  }
  
  .right-section {
    flex: 1; /* Toma la mitad del ancho */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #141C25; /* Fondo de contraste */
  }
  
  .right-section img {
    max-width: 90%;
    max-height: 100%;
    border-radius: 15px; /* Borde redondeado */
  }
  
  .section h1 {
    color: #F58729;
    margin-bottom: 10px;
    position: relative;
  }
  
  .section h1::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 5px;
    height: 200%;
    width: 2px;
    background-color: #F58729;
  }
  
  .valores ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
    list-style: none;
    padding: 0;
  }
  
  .valores ul li {
    position: relative;
    padding-left: 20px;
  }
  
  .valores ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #F58729;
    font-weight: bold;
  }

  .container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 870px;
  margin: 20px auto
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    transition: transform 0.3s ease;
    border: 4px solid #FF7A00;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card .info {
    padding: 15px;
    text-align: center;
    background: #fff;
    color: #333;
}

.card .pleca {
    position: absolute;
    bottom: -100%;
    left: 0;
    /* width: 100%; */
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease, bottom 0.3s ease;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* Hover effect */
.card:hover .pleca {
    bottom: 0;
}


.btn-cotizacion {
  background: #FF7A00;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-cotizacion:hover {
  background: #e06600;
}

.title {
  color: #e06600;
}


 #Sec2{
  background-image: url("assets/images/fondoproductos_.webp");
  background-size: cover;
 }

 /* Estilos para dispositivos móviles */
 @media (max-width: 630px) {
  .right-section{
    display: none;
  }
  .hero-text h1 {
    font-size: 2.5rem!important;
    margin: 50px!important;
  }
  .hero-btn {
    margin-left: 50px;
  }
}
@media (max-width: 900px) {
.grid1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.grid2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modal {
  overflow-y: auto; /* Permite scroll en la modal */
  align-items: flex-start!important; /* Para que empiece desde arriba en móvil */
  padding: 40px 20px;
}

.modal-content {
  max-height: none; /* Evita que se recorte */
  width: 100%;
  box-sizing: border-box;
}

}
@media (min-width: 300px ) and (max-width: 600px )  {
  .hero-btn {
    margin-left: auto!important;
    margin-right: auto;
  }

  .modal {
    overflow-y: auto; /* Permite scroll en la modal */
    align-items: flex-start !important; /* Para que empiece desde arriba en móvil */
    padding: 40px 20px;
  }
  
  .modal-content {
    max-height: none; /* Evita que se recorte */
    width: 100%;
    box-sizing: border-box;
  }
  }
 @media (max-width: 874px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  .menu li {
    text-align: center;
    padding: 10px;
  }

  .menu-toggle {
    display: block!important;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }

  .menu.show {
    display: flex;
  }
  .hero-text h1 {
    font-size: 1.9rem!important;
    margin: 50px!important;
    font-weight: 600;
  }
  .hero-btn {
    margin-left: 50px;
  }
  
}
@media (min-width: 875px ) and (max-width: 1025px )  {
.menu a {
  text-decoration: none;
  color: white;
  font-size: 12px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin: 100px;
}

.hero-btn {
  margin-left: 100px;
}
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 80px;
  background-color: #f27d16;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-cotizador {
  background-color: #DF4143;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 600;
  position: fixed;
  bottom: 100px;
  right: 20px;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-cotizador.show {
  display: block;
}
/* }
.back-to-top:hover {
  background-color: #0056b3;
} */

.back-to-top.show {
  display: block;
}


  /* Fondo del pop-up */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup {
  background: white;
  padding: 20px;
  width: 350px;
  height: 450px;
  border-radius: 15px;
  border: 4px solid #ff7300;
  text-align: center;
  position: relative;
  margin: auto;
}

.popup h2 {
    color: #ff7300;
    font-size: 26px;
    margin-bottom: 15px;
}

.popup input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ff7300;
    border-radius: 10px;
    font-size: 16px;
}

.popup button {
    background-color: #ff7300;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #ff7300;
}

/* Mostrar el pop-up cuando la clase "active" está presente */
.popup-overlay.active {
    visibility: visible;
    opacity: 1;
    z-index: 100;
}

.popup.btns {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Espaciado entre elementos */
  width: auto;
  height: auto;
}

.popup.btns button {
  width: 100%; /* Hace que los botones tengan el mismo ancho */
  padding: 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  vertical-align: middle;
  z-index: 1;
}


/* //POPUP VIDEO */
/* Fondo oscuro cuando el popup está activo */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
}


.overlay.active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  visibility: visible;
  opacity: 1;
}

/* Contenedor del popup */
.popupvideo {
  background: #ff7300;
  
  /* padding: 20px; */
  border-radius: 0px;
  position: relative;
  width: 700px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(255, 165, 0, 0.5);
}

/* Botón de cerrar */
.close-btnvideo {
  position: absolute;
  /* top: 10px; */
  right: 9px;
  font-size: 20px;
  cursor: pointer;
  color: transparent;
  z-index: 1;
}

/* Estilos del video */
#video2 {
  width: 100%;
  border-radius: 5px;
}

/* Botón de abrir */
.open-popupvideo {
  background: #ff6600;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* POP DE COTIZACION */


.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

.close-buttoncotizador {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal-content h2 {
  color: #f37021;
  margin-bottom: 20px;
}

.options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.option {
  border: 2px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  width: 200px;
  transition: transform 0.2s;
}

.option:hover {
  transform: scale(1.05);
}

.option img {
  width: 100%;
  /* height: 150px; */
  object-fit: cover;
}

.option button {
  width: 100%;
  padding: 10px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.rack { background-color: #d94b11; color: white; }
.mini { background-color: #2b65d9; color: white; }
.estanteria { background-color: #444; color: white; }