* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: poppins, sans-seriff;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 80%;
}

.main2 {
  box-shadow: 0 0 20px rgb(209, 209, 209);
  background-color: rgb(255, 255, 255);
}

.main2-1 {
  background-image: url(../Assets/imagenes/lg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

img {
  width: 100%;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 80px 0;
  background-color: aqua;
  flex-direction: column;
  background-image: linear-gradient(rgba(7, 7, 7, 0.7), rgba(0, 0, 0, 0.7)),
    url("../Assets/imagenes/12.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

/* Menú fijo */
.menu-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px; /* o el alto real del menú */
  z-index: 1000;

  background-color: rgba(0, 0, 0, 0.95); /* fondo oscuro sólido */
  box-shadow: none; /* elimina cualquier sombra */
  backdrop-filter: none; /* evita desenfoques si estaban activos */
}

/* TOP MENU */
.top__menu {
  top: 0;
  display: flex;
  justify-content: space-between;
  background-color: rgb(26, 0, 0);
  padding: 5px;
  width: 100%;
  z-index: 1000;
  padding-left: 30px;
  font-size: 0px;
}

/* Íconos y enlaces del menú superior */
.top__menu_text i,
.top__menu_text a,
.redes__sociales a {
  color: white;
  font-size: 20px;
  padding-right: 10px;
}

.top__menu_text a:hover,
.redes__sociales a:hover,
.top__menu_text i:hover {
  color: red;
  transition: 0.3s;
}

/* FIN TOP MENU */

/* MENU PRINCIPAL */
.menu__principal {
  display: flex;
  justify-content: space-between;
  background-image: linear-gradient(
    rgba(0, 0, 0, 0.705),
    rgba(57, 28, 28, 0.852)
  );
  width: 100%;
  box-shadow: 0 0 20px rgb(207, 207, 207);
  align-items: center;
  z-index: 100003000000;
  font-weight: 900;
}

.menu__principal .navbar ul {
  display: flex;
}

.menu__principal .navbar ul li a {
  font-size: 18px;
  padding: 30px;
  display: block;
  transition: all 0.3s ease;
  color: rgb(255, 0, 0);
}

.menu__principal .navbar ul li a:hover {
  background-image: linear-gradient(
    rgba(48, 5, 5, 0.848),
    rgba(213, 12, 12, 0.852)
  );
  color: white;
}

.navbar-ul li {
  position: relative;
  background-color: transparent;
  color: white;
}

.menu__principal .navbar .navbar-ul .rodas {
  display: none;
  position: absolute;
  transition: all 0.3s ease;
  width: 170px;
  padding: 0;
  font-size: 15px;
}

.menu__principal .navbar .navbar-ul .rodas a {
  padding: 20px;
  font-size: 17px;
}

.menu__principal .navbar .navbar-ul :nth-child(2):hover .rodas {
  display: block;
  transition: all 0.3s ease;
  box-shadow: 10px 10px 10px rgba(138, 0, 0, 0.661);
  background-image: linear-gradient(
    rgba(81, 17, 17, 0.705),
    rgba(19, 2, 2, 0.852)
  );
}

.navbar ul li a:after {
  content: "";
  display: flex;
  height: 3px;
  background-color: rgb(255, 255, 255);
  border-radius: 30px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s linear;
}

.navbar ul li a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

#check {
  display: none;
}

label {
  display: flex;
  align-items: center;
}

label #btn,
label #cancel {
  color: rgb(161, 0, 0);
  font-size: 50px;
  cursor: pointer;
  display: none;
  left: 10px;
  margin-right: 20px;
}

.menu__principal label {
  cursor: pointer;
  display: nrone;
}

.menu__principal .logo img {
  display: flex;
  width: 120px;
  padding: 10px;
  margin-left: 50px;
}

.header-content {
  margin-top: 150px;
}

.span-1 {
  color: white;
  font-family: dodger;
}

.header-txt h2 {
  font-size: 40px;
  line-height: 1;
  font-style: italic;
  color: rgb(255, 0, 0);
  margin-bottom: 25px;
  font-family: "Arial Narrow Bold", sans-serif;
}

.header-txt p {
  font-size: 20px;
  color: rgb(255, 255, 255);
  margin-bottom: 35px;
}

.butons {
  display: flex;
  justify-content: center;
}

.btn-1 {
  display: inline-block;
  padding: 11px 35px;
  border: 3px solid red;
  color: white;
  margin: 0 15px;
  text-transform: uppercase;
  border-radius: 30px;
  font-weight: 900;
  align-self: center;
}

.btn-1:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(255, 0, 0);
  box-shadow: 0 0 10px rgb(255, 152, 241);
  border: 1px solid white;
}

.btn-2 {
  display: inline-block;
  background: linear-gradient(90deg, red, rgb(97, 0, 0));
  padding: 5px 25px;
  color: #ffffff;
  border-radius: 25px;
  margin-bottom: 5px;
}

.btn-2:hover {
  background: linear-gradient(90deg, rgb(119, 0, 0), rgb(255, 0, 0));
  box-shadow: 0 0 10px rgb(255, 0, 0);
  border: 1px solid rgb(255, 0, 0);
}

/* FIN MENU PRINCIPAL */

/* Pagina Index */

/* Estilo principal del header */
.header1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  height: calc(100vh - 100px); /* Resta el alto del menú */
  margin-top: 100px; /* Empuja el header debajo del menú fijo */

  background-image: linear-gradient(rgba(0, 0, 0, 0.705), rgba(0, 0, 0, 0.852)),
    url("../Assets/imagenes/Rodamientos.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Contenido dentro del header */
.header-content1 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

/* Texto principal */
.header-txt1 {
  text-align: center;
  padding: 0 10px;
  margin-top: 0;
}

/* Título */
.header-txt1 h1 {
  font-size: 3vw;
  line-height: 1.2;
  color: red;
  margin-bottom: 20px;
}

/* Logo */
.header-txt1 img {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
}

/* Subtítulo */
.header-txt1 h2 {
  font-size: 2.5vw;
  font-style: italic;
  color: white;
  margin-bottom: 25px;
  font-family: "Arial Narrow Bold", sans-serif;
}

/* Botones */
.butons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

/* Estilo alternativo si usas .header-txt en otra sección */
.header-txt {
  text-align: center;
  padding: 0 10px;
}

.header-txt h1 {
  font-size: 3.5vw;
  line-height: 1;
  color: rgb(255, 0, 0);
  margin-bottom: 25px;
}

/* Fin Index */

/* CARRUSEL VIEJO

 .carrusel {
     padding: 100px 0;
     text-align: center;
 }

 .carrusel h2 {
     color: rgb(103, 103, 103);
     font-size: 35px;
     margin-bottom: 45px;
     text-transform: uppercase;
 }

 .carrusel ul {
     display: flex;
     justify-content: space-between;
     font-size: 20px;
     font-weight: 900;
 }

 .carrusel ul img {
     width: 150px;
 }
/* CARRUSEL VIEJO*/

/* CARRUSEL NUEVO*/
.carousel-container {
  position: relative;
  width: 90%; /* Ancho relativo al contenedor padre */
  max-width: 900px; /* Ancho máximo */
  margin: 80px auto;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  padding: 20px 10%; /* Padding relativo al ancho */
}

.carousel-track {
  display: flex;
  justify-content: center;
  transition: all 0.5s ease-in-out;
}

/* Estilos de las diapositivas */
.carousel-slide {
  position: relative;
  width: 100%; /* Ancho completo del contenedor */
  height: 300px; /* Alto fijo */
  background-size: cover; /* Ajustar la imagen a la diapositiva */
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  /* Oculta todas las diapositivas excepto la primera */
  display: none;
  /* Agrega una transición para el cambio de opacidad */
  transition: all 0.5s ease-in-out;
}

.carousel-slide.active {
  display: flex;
  transition: all 0.5s ease-in-out;
}

/* Estilos del texto de la diapositiva */

.carousel-slide h2 {
  text-align: center;
}

.carousel-slide p {
  color: rgb(94, 94, 94);
  font-size: 1.5em; /* Tamaño de fuente relativo */
  font-weight: 900;
  position: absolute;
  right: 20px; /* Margen derecho relativo */
  bottom: 20px; /* Margen inferior relativo */
}

/* Estilos de los botones de navegación */
.carousel-prev,
.carousel-next {
  position: absolute;
  display: flex;
  top: 60%;
  transform: translateY(-50%);
  background-color: rgba(133, 133, 133, 0.5);
  color: white;
  padding: 15px 20px; /* Padding relativo */
  font-size: 20px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: red;
}

.carousel-prev {
  left: 10px; /* Margen izquierdo relativo */
}

.carousel-next {
  right: 10px; /* Margen derecho relativo */
}

/* Estilos de los puntos de navegación */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-dot.active {
  background-color: #007bff;
}

/* Estilos del título */
.carousel-container h2 {
  display: flex;
  justify-content: center;
  margin: 30px 0; /* Margen superior e inferior */
  font-size: 2em; /* Tamaño de fuente relativo */
  text-transform: uppercase;
  color: red;
}

/* Media Queries para adaptar el carrusel a diferentes tamaños de pantalla */
@media (max-width: 768px) {
  /* Ajustes para pantallas más pequeñas */
  .carousel-container {
    padding: 10px;
  }
  .carousel-slide {
    height: 200px; /* Reduce el alto de la diapositiva */
  }
  .carousel-slide p {
    font-size: 1.2em; /* Reduce el tamaño del texto */
  }
  .carousel-container h2 {
    font-size: 1.4em;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Ajustes para pantallas aún más pequeñas */
  .carousel-container {
    width: 95%; /* Ancho más grande para pantallas pequeñas */
  }
  .carousel-slide p {
    font-size: 1em; /* Reduce aún más el tamaño del texto */
  }
  .carousel-prev,
  .carousel-next {
    padding: 10px 15px; /* Reduce el padding */
    font-size: 18px; /* Reduce el tamaño de fuente */
  }

  .carousel-container h2 {
    font-size: 1.2em;
    text-align: center;
  }
}

/* FIN CARRUSEL NUEVO*/

/* PRODUCTOS */

#productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.producto {
  border: 1px solid #ccc;
  padding: 15px;
  text-align: center;
  text-align: center;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 0 0 20px rgb(107, 107, 107);
  text-align: center;
  background-color: white;
  border-radius: 10px;
  margin-left: 0 auto;
  position: relative;
}

.producto img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

#sugerencias {
  position: absolute;
  top: 50px;
  left: 0;
  width: 300px;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: none;
}

.sugerencia {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sugerencia:hover {
  background-color: #c50000;
}

.productos-content h2 {
  text-transform: uppercase;
  text-align: center;
  color: red;
  font-size: 35px;
  margin-bottom: 45px;
}

.busqueda {
  display: flex;
  flex-direction: column; /* Cambiar a columna para pantallas pequeñas */
  width: 100%;
  text-align: center;
  padding: 10px;
  margin-bottom: 50px;
  text-transform: uppercase;
  position: relative;
  align-items: center;
}

.busqueda input {
  margin: 0 10px 10px; /* Ajustar el margen */
  padding: 15px;
  font-size: 1.2em; /* Tamaño de fuente relativo */
  background-color: #ffffff;
  width: calc(100% - 100px); /* Ancho relativo para el input */
  border: 3px solid #ccc; /* Agregar un borde al input */
  border-radius: 5px; /* Agregar bordes redondeados */
}

#busqueda {
  width: 100%;
}

.busqueda input {
  outline: 0;
}

.busqueda input:focus {
  box-shadow: 0 0 20px rgb(255, 170, 170);
}

.busqueda input::placeholder {
  font-size: 1.2em; /* Tamaño de fuente relativo */
}

.btn-buscar {
  position: relative; /* Ajustar la posición */
  cursor: pointer;
  width: 100%; /* Ancho completo para pantallas pequeñas */
  height: auto; /* Alto automático */
  padding: 15px;
  font-size: 1.2em; /* Tamaño de fuente relativo */
  background-color: red;
  color: white;
  border: 3px solid red;
  margin: 10px 0; /* Ajustar el margen */
  text-transform: uppercase;
  border-radius: 5px; /* Agregar bordes redondeados */
}

.btn-buscar:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(179, 47, 47);
  box-shadow: 0 0 10px rgb(126, 126, 126);
  border: 3px solid rgb(255, 120, 120);
}

#ver-mas {
  display: inline-block;
  margin: 2rem auto;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-red, #d10000); /* usa tu variable si existe */
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#ver-mas:hover {
  background-color: #a80000;
  transform: scale(1.05);
}

#ver-mas:active {
  transform: scale(0.98);
}

/* Media Query para pantallas pequeñas */
@media (max-width: 768px) {
  .busqueda {
    flex-direction: column; /* Cambiar a columna para pantallas pequeñas */
  }
  .busqueda input {
    width: calc(100% - 20px); /* Ajustar el ancho del input */
  }
  .btn-buscar {
    width: 100%; /* Ancho completo para pantallas pequeñas */
    position: relative; /* Ajustar la posición */
    margin-top: 10px; /* Ajustar el margen */
  }
  .productos-content h2 {
    font-size: 1.4em;
    text-align: center;
  }
}

/* Media Query para pantallas muy pequeñas */
@media (max-width: 480px) {
  .busqueda input {
    font-size: 1em; /* Reducir el tamaño de fuente */
  }
  .btn-buscar {
    font-size: 1em; /* Reducir el tamaño de fuente */
  }

  .productos-content h2 {
    font-size: 1.2em;
    text-align: center;
  }
}

#filtros {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  justify-content: space-around;
  font-size: 20px;
  text-transform: uppercase;
  padding: 16px;
  background-image: linear-gradient(rgba(80, 0, 0, 0.7), rgb(131, 16, 16));
  color: white;
}

#filtros select {
  font-size: 15px;
  padding: 5px 20px 5px 2px;
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
  max-width: 150px; /* Limita el ancho máximo */
  white-space: nowrap; /* Evita salto de línea */
  overflow: hidden; /* Oculta el desbordamiento */
  text-overflow: ellipsis; /* Muestra "…" si el texto es largo */
}

.btn-5 {
  position: absolute;
  top: -10px;
  background-color: rgb(169, 255, 88);
  right: -20px;
  padding: 10px;
  border-radius: 20px;
  color: rgb(41, 41, 41);
  border: 2px solid rgb(109, 24, 24);
}

/* FIN PRODUCTOS */

/* quienes SOMOS */
.main {
  background-color: #991414;
  margin-top: 40px;
}

.productos-content {
  margin-bottom: 100px;
}

.informacion1 {
  position: relative;
}

.general-12 {
  width: 50%;
  z-index: 2;
  padding: 100px 150px 100px 100px;
}

.general-1 {
  position: relative;
  min-height: 250px;
  display: flex;
  margin-bottom: 60px;
  justify-content: space-between;
  text-align: end;
}

.general-11 {
  background-image: url(../Assets/imagenes/rodamiento-de-bolas-aislado-sobre-fondo-blanco-e67gtb.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px;
  width: 60%;
  z-index: 2;
}

.section-mask1 {
  position: absolute;
  top: -40px;
  bottom: -100px;
  right: 0;
  left: 0;
  z-index: 1;
  background-color: #991414;
  transform: skewY(4deg);
}

.general-12 h2 {
  font-size: 55px;
  line-height: 100px;
  color: #ffffff;
  text-transform: uppercase;
}

.general-12 p {
  border-left: 10px solid rgb(255, 220, 62);
  padding-left: 20px;
  color: #c8c8c8;
  font-size: 20px;
}

.informacion2 {
  display: flex;
  justify-content: space-between;
  height: 500px;
}

.general-21 {
  width: 60%;
  position: relative;
  padding: 100px 150px 100px 100px;
  background-color: #991414;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.general-21 h2 {
  font-size: 45px;
  line-height: 70px;
  color: #ffffff;
  text-transform: uppercase;
}

.general-21 p {
  font-size: 20px;
  color: #c8c8c8;
  font-weight: 600;
  padding-top: 20px;
  border-right: 10px solid rgb(255, 220, 62);
}

.general-21 ul {
  border-left: 10px solid rgb(255, 220, 62);
  padding-left: 20px;
  color: white;
  font-size: 20px;
  padding-top: 20px;
}

.general-2 {
  background-image: url(../Assets/imagenes/lg.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 50%;
  margin-top: 40px;
}

.general-2-1 {
  background-image: url(../Assets/imagenes/istockphoto-473155979-640x640.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 50%;
  margin-bottom: 40px;
}

.informacion3 {
  display: flex;
  background-image: linear-gradient(rgba(7, 7, 7, 0.7), rgba(0, 0, 0, 0.7)),
    url("../Assets/imagenes/SEDE.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 650px;
  padding: 100px 150px 100px 100px;
}

.general-3 {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.general-3 h2 {
  font-size: 45px;
  line-height: 70px;
  color: #ffffff;
  text-transform: uppercase;
}

.general-3 p {
  font-size: 30px;
  color: #c8c8c8;
  font-weight: 600;
  padding-top: 20px;
}

.informacion4 {
  display: flex;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../Assets/imagenes/lg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 650px;
  padding: 100px 150px 100px 100px;
}

.general-4 {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.general-4 h2 {
  font-size: 55px;
  line-height: 70px;
  color: #ffffff;
  text-transform: uppercase;
}

.general-4 p {
  font-size: 30px;
  color: #c8c8c8;
  font-weight: 600;
  padding-top: 20px;
}

.btn-4 {
  display: inline-block;
  padding: 11px 35px;
  border: 3px solid red;
  color: white;
  margin: 0 15px;
  text-transform: uppercase;
  border-radius: 30px;
  font-weight: 900;
  align-self: center;
  margin-top: 20px;
  background-color: #ff2b2b;
}

.btn-4:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(255, 0, 0);
  transition: all 0.4s ease;
  border: 2px solid white;
}

.tipos li {
  font-weight: 600; /* o 700 si quieres que se vea aún más sólido */
  margin-bottom: 10px;
  color: #c8c8c8;
}

/* FIN quienes SOMOS */

/*contactos */
.contacto {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-image: linear-gradient(
      rgba(30, 30, 30, 0.763),
      rgba(30, 30, 30, 0.761)
    ),
    url("../Assets/imagenes/depositphotos_316675914-stock-photo-a-large-number-of-ready.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 100px 0;
}

.info {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: white;
  padding: 0 100px;
  border-radius: 10px;
  margin-right: 50px;
}

.info h1 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
}

.info h2 {
  font-size: 30px;
  margin-bottom: -30px;
  margin-top: 50px;
}

.info h3 {
  font-size: 30px;
  margin-bottom: 20px;
}

.info div {
  margin-top: 40px;
}

.info p {
  font-size: 20px;
  color: rgba(255, 43, 43, 0.813);
  margin-bottom: 20px;
  font-weight: 900;
}

.info li a {
  color: rgba(255, 43, 43, 0.813);
  font-weight: 900;
}

.info li a:hover {
  color: rgb(255, 136, 136);
}

#map {
  height: 400px;
  border: 1px solid #ff0000;
}

.qr-join {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  margin: 3rem auto;
}

.qr-join img {
  width: 200px;
  border: 4px solid #25d366;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.qr-join h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

@media (max-width: 480px) {
  .qr-join img {
    width: 100%;
    max-width: 250px;
  }

  .btn-whatsapp {
    width: 90%;
    justify-content: center;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex; /* Alineación precisa */
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}

/* FIN contactos */

/* FORMULARIO */

form {
  text-align: center;
  height: 100%;
}

form h3 {
  font-size: 25px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 35px;
}

.input-container {
  position: relative;
}

.input-container i {
  padding: 15px;
  border-radius: 50%;
  background-color: red;
  color: white;
  position: absolute;
  font-size: 20px;
  top: 4px;
  width: auto;
}

.input-container input,
textarea {
  padding: 17px 15px 17px 65px;
  width: 100%;
  margin-bottom: 25px;
  border: 2px solid red;
  font-size: 16px;
  outline: none;
}

.input-container input:focus,
textarea:focus {
  box-shadow: 0 0 5px 5px rgb(255, 175, 143);
  background-color: rgb(255, 255, 255);
  color: red;
}

textarea {
  font-family: sans-serif;
  height: 150px;
}

::placeholder {
  font-size: 16px;
}

.btn-3 {
  margin-top: 0px;
  background-color: red;
  padding: 17px 30px;
  width: 30%;
  border: 0;
  color: white;
  font-size: 15px;
  cursor: pointer;
  display: flex;
}

.btn-3:hover {
  box-shadow: 0 0 5px rgb(255, 255, 255);
}

/* FIN FORMULARIO */

@supports (background-image: url("image.webp")) {
  .main2-1 {
    background-image: url("../Assets/imagenes/lg.webp");
  }

  .header {
    background-image: linear-gradient(rgba(7, 7, 7, 0.7), rgba(0, 0, 0, 0.7)),
      url("../Assets/imagenes/12.webp");
  }

  .header1 {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.705),
        rgba(0, 0, 0, 0.852)
      ),
      url("../Assets/imagenes/Rodamientos.webp");
  }

  .general-11 {
    background-image: url("../Assets/imagenes/rodamiento-de-bolas-aislado-sobre-fondo-blanco-e67gtb.webp");
  }

  .general-2 {
    background-image: url("../Assets/imagenes/lg.webp");
  }

  .general-2-1 {
    background-image: url(../Assets/imagenes/istockphoto-473155979-640x640.webp);
  }

  .informacion3 {
    background-image: linear-gradient(rgba(7, 7, 7, 0.7), rgba(0, 0, 0, 0.7)),
      url("../Assets/imagenes/SEDE.webp");
  }

  .informacion4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url("../Assets/imagenes/lg.webp");
  }
}

/* FOOTER */

.footer {
  background: rgb(28, 0, 0);
  padding-top: 30px;
}

.footer-content {
  height: 400px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: justify;
  align-content: center;
}

.logo2 {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo2 img {
  width: 200px;
}

.informacion {
  color: white;
  font-size: 20px;
  padding: 0 40px 0 10px;
  border-right: 2px solid white;
}

.informacion h2 {
  font-size: 30px;
  text-transform: uppercase;
  padding-bottom: 30px;
}

.enlaces {
  position: relative;
  font-size: 20px;
  margin-left: 20px;
  border-right: 2px solid white;
}

.enlaces li a:hover {
  transition: 0.3s;
  background-color: rgb(187, 0, 0);
  border-radius: 20px;
  padding: 10px;
}

.enlaces ul {
  display: flex;
  flex-direction: column;
}

.enlaces ul li {
  margin-bottom: 20px;
}

.enlaces ul li a {
  color: white;
  font-weight: bolder;
}

.redes__sociales2 {
  color: white;
}

.redes__sociales2 h2 {
  font-size: 30px;
  text-transform: uppercase;
  padding-bottom: 30px;
}

.redes__sociales2 a {
  display: inline-block;
  color: white;
  font-size: 20px;
  background-color: #8e0000;
  text-align: center;
  transition: all 300ms ease;
  border-radius: 30px;
  padding: 10px;
}

.redes__sociales2 a:hover {
  color: rgb(255, 0, 0);
  background-color: white;
}

.derechos {
  background-color: #2f0000;
  color: rgb(227, 227, 227);
  width: 100%;
  padding: 20px;
  font-size: large;
  text-align: center;
}

.derechos span {
  font-weight: bold;
  color: white;
}

/* FIN FOOTER */

.scroll-top {
  position: fixed;
  bottom: 20px;
  left: 20px; /* ← cambia right por left */
  display: none; /* Ocultar la flecha inicialmente */
  z-index: 10;
  cursor: pointer;
  height: 50px;
  width: 50px;
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.scroll-top:hover {
  transform: scale(1.1);
}

.scroll-top:hover {
  box-shadow: 0 0 20px red;
  background-color: red;
}

.scroll-top i:hover {
  color: white;
}

.scroll-top i {
  font-size: 25px;
  color: #ff0000; /* Color de la flecha */
}

/* Estilo para mostrar la flecha al hacer scroll */
.scroll-top.show {
  display: block;
}

/* MEDIA QUARIES */

@media (max-width: 991px) {
  label #btn {
    display: initial;
  }

  .top__menu,
  .redes__sociales {
    display: none;
  }

  .navbar {
    position: absolute;
    width: 50%;
    height: 100vh;
    top: 100%;
    left: -100%;
    opacity: 0.1;
    transition: all 0.8s;
    background-image: linear-gradient(
      rgba(0, 0, 0, 0.782),
      rgba(57, 28, 28, 0.937)
    );
  }

  .navbar ul {
    display: flex;
    flex-direction: column;
  }

  .navbar ul li {
    line-height: 30px;
    display: block;
    width: 100%;
    text-align: center;
  }

  .navbar ul li a::after {
    display: none;
  }

  .navbar ul li a {
    font-size: 20px;
  }

  #check:checked ~ .navbar {
    left: 0;
    opacity: 1;
    box-shadow: 0 20px 30px rgb(0, 0, 0);
  }

  #check:checked ~ label #btn {
    display: none;
  }

  #check:checked ~ label #cancel {
    display: initial;
  }

  .menu__principal .navbar .navbar-ul .rodas {
    display: none;
    transition: all 0.3s ease;
    width: 170px;

    font-size: 15px;
    left: 100%;
    top: 0;
    height: 140px;
  }

  .menu__principal .navbar .navbar-ul .rodas a {
    padding: 20px;
    font-size: 17px;
  }

  .menu__principal .navbar .navbar-ul :nth-child(2):hover .rodas {
    display: block;
    transition: all 0.3s ease;
    box-shadow: 10px 10px 10px rgba(138, 0, 0, 0.661);
    background-image: linear-gradient(
      rgba(81, 17, 17, 0.705),
      rgba(19, 2, 2, 0.852)
    );
  }

  #filtros {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  #filtros label {
    display: flex;
    justify-content: center;
  }

  #productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .carousel-track {
    display: flex;
  }

  .header-txt h1 {
    margin-bottom: 30px;
    font-size: 27px;
  }

  .header-txt h2 {
    font-size: 30px;
  }

  .header-txt span {
    font-size: 40px;
  }

  .header1 {
    height: 100vh;
    margin-top: 0;
  }

  .header-content1 h1 {
    margin-bottom: 30px;
    font-size: 27px;
  }
  .header-txt1 h2 {
    text-align: center;
  }

  .header-txt1 img {
    width: 100%;
  }

  .romay {
    display: none;
  }

  .butons {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .btn-1 {
    margin-bottom: 30px;
    font-size: 15px;
  }

  .carrusel {
    display: none;
  }

  /*.products {
         grid-template-columns: repeat(1, 1fr);
         gap: 30px;
     }

     .busqueda {
         display: flex;
         flex-direction: column;
     }*/

  .main {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .section-mask1 {
    position: absolute;
    top: -20px;
    bottom: -20px;
    right: 0;
    left: 0;
    z-index: 1;
    background-color: #991414;
    transform: skewY(4deg);
  }

  .main .general-2,
  .general-11 {
    display: flex;
  }

  .generally2 {
    align-items: center;
    position: relative;
    padding: 40px 10px;
    margin: 0;
    width: 100%;
    text-align: center;
    display: flex;
    height: 500px;
  }

  .generally2 h2 {
    font-size: 40px;
    line-height: 50px;
  }

  .generally2 p {
    font-size: 20px;
    padding: 10px;
  }

  .generally1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 40px 10px;
    margin: 0;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .contacto {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }

  .info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 25px;
  }

  .info div {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 25px;
  }

  #map {
    position: relative;
    display: flex;
    margin: 20px;
    width: 80vw;
  }

  .formulario {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-top: 50px;
  }

  #contact-form {
    display: flex;
    flex-direction: column;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 20px;
    padding: 20px;
  }

  .derechos {
    font-size: 20px;
  }

  .informacion {
    font-size: 15px;
    display: none;
  }

  .enlaces {
    border: 0;
  }

  .redes__sociales2 h2 {
    display: none;
  }

  .redes__sociales2 .social_media a {
    font-size: 20px;
    margin-bottom: 70px;
    align-items: center;
    margin: 3px;
    padding: 5px;
  }
}

/* Dispositivos medianos (tabletas horizontales) */
@media (max-width: 1024px) {
  .general-1,
  .informacion2,
  .informacion3,
  .informacion4 {
    flex-direction: column;
    padding: 40px 20px;
    height: auto;
  }

  .general-11,
  .general-2,
  .general-2-1 {
    width: 100%;
    min-height: 200px; /* o menos si el contenido es breve */
    height: auto;
  }

  .general-12,
  .general-21,
  .general-3,
  .general-4 {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
  }

  .general-12 h2,
  .general-21 h2,
  .general-3 h2,
  .general-4 h2 {
    font-size: 6vw;
    line-height: 1.2;
  }

  .general-12 p,
  .general-21 p,
  .general-3 p,
  .general-4 p {
    font-size: 4vw;
    font-weight: 600; /* o 700 si quieres más fuerza */
  }
}

/* Dispositivos pequeños (móviles) */
@media (max-width: 600px) {
  .btn-4,
  .btn-1,
  .btn-2,
  .btn-3 {
    width: 90%;
    font-size: 4vw;
    padding: 10px 20px;
    margin: 10px auto;
  }

  .tipos li {
    font-size: 4vw;
    margin-bottom: 10px;
  }

  .header-txt1 h1,
  .header-txt1 h2 {
    font-size: 6vw;
  }

  .carousel-slide {
    height: 180px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .informacion,
  .enlaces,
  .redes__sociales2 {
    padding: 10px;
    font-size: 4vw;
  }

  .info h1,
  .info h2,
  .info h3 {
    font-size: 5vw;
  }

  .info p {
    font-size: 4vw;
  }

  .generally2 {
    height: auto;
    padding: 20px 10px;
  }

  .tipos li {
    font-size: 4vw;
    font-weight: 600;
    margin-bottom: 10px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .footer-content img {
    max-width: 100px;
  }

  .info ul li a {
    word-break: break-word;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
  }

  .info ul {
    padding-left: 0;
    list-style: none;
  }

  .info div {
    padding: 10px;
  }
}
