/* Estilos generales */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner Section */
.hero-industrial {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
      to right,
      rgba(25, 25, 25, 0.95),
      rgba(25, 25, 25, 0.8)
    ),
    url("/assets/images/index/banner.webp");
  background-size: cover;
  background-position: center;
  padding: 0 60px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-texto {
  max-width: 700px;
  animation: slideLeft 1s ease-out forwards;
}

.hero-titulo {
  font-size: 4rem;
  text-transform: uppercase;
  font-weight: 900;
  color: #f9821c;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-titulo span {
  color: #fff;
}

.hero-descripcion {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.5;
  animation: fadeIn 2s ease-out forwards;
}

.hero-logo {
  max-width: 300px;
  animation: zoomIn 1.5s ease-out forwards;
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.6));
}

/* Barra decorativa tipo línea de montaje */
.hero-barra {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120%;
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    #f9821c,
    #f9821c 10px,
    #da6600 10px,
    #da6600 20px
  );
  animation: moveBar 5s linear infinite;
}

/* Animaciones */
@keyframes slideLeft {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-titulo {
    font-size: 2.5rem;
  }

  .hero-descripcion {
    font-size: 1rem;
  }

  .hero-logo {
    max-width: 100px;
    margin-bottom: 10px;
    margin-top: 30px;
  }
}

.hero-texto,
.hero-descripcion,
.hero-logo {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.hero-texto.activo {
  animation: slideLeft 1s ease forwards;
  animation-delay: 2s;
}

.hero-descripcion.activo {
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 2s;
}

.hero-logo.activo {
  animation: zoomIn 1.2s ease forwards;
  animation-delay: 2s;
}

/* Novedades */
.titulo-seccion {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.titulo-novedades {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f9821c;
  margin-bottom: 0.5rem;
}

.subtitulo-novedades {
  font-size: 1.2rem;
  color: #cccccc;
}

.novedades {
  background: #191919;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  font-family: "SFPro", sans-serif;
  color: #f2f2f2;
  position: relative;
  z-index: 1;
  text-align: center;
}

.novedades::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #191919;
  z-index: -1;
}

.producto-info {
  color: #000;
}

.grid-novedades {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Fuerza solo 3 columnas */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.novedad {
  background: #1e1e1e;
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.novedad:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(249, 130, 28, 0.2);
}

.novedad img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: #000;
}

.novedad-body h5 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #f9821c;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.novedad-info hr {
  border: none;
  border-top: 1px solid #444;
  margin: 0.5rem 0 1rem;
}

.novedad-body p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #cfcfcf;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.novedad-footer .btn {
  background: #f9821c;
  border: none;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.novedad-info .btn:hover {
  background: #da6600;
}

.novedad-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  background-color: #292929;
  color: #eee;
}

.novedad-body {
  flex-grow: 1;
}

.novedad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.9rem;
  color: #aaa;
}

.carousel-novedades-wrapper {
  position: relative;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
}

.scroll-novedades {
  overflow-x: auto;
  scroll-behavior: smooth;
  display: grid;
  grid-template-columns: repeat(6, 382px);
  gap: 1.5rem;
}

.scroll-novedades::-webkit-scrollbar {
  display: none;
}
.scroll-novedades {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Flechas */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  z-index: 2;
  cursor: pointer;
  padding: 0;
}

.carousel-arrow.left {
  left: -50px;
}

.carousel-arrow.right {
  right: -50px;
}

.carousel-arrow:hover {
  color: #f9821c;
  background: transparent;
}

@media (max-width: 992px) {
  .carousel-arrow.left {
    left: -25px;
  }

  .carousel-arrow.right {
    right: -25px;
  }

  .novedad {
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .banner-section {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center center;
  }

  .novedades {
    background-image: none;
    background-attachment: initial;
    background-color: #111; /* Fondo oscuro base */
    background: linear-gradient(to bottom, #1c1c1c, #000); /* degradado sutil */
    padding: 60px 20px;
  }

  .novedades::before {
    background-color: transparent; /* ya no hace falta overlay oscuro */
  }

  .titulo-seccion {
    font-size: 1.8rem;
  }

  .carousel-novedades-wrapper {
    position: relative;
    overflow: visible;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .scroll-novedades {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30%;
    padding: 0 calc((100vw - 300px) / 2);
  }

  .novedad {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: center;
  }

  .novedad img {
    height: 180px;
  }

  .novedad-info h5 {
    font-size: 1rem;
  }

  .novedad-info p {
    font-size: 0.85rem;
  }

  .carousel-arrow {
    font-size: 1.8rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: transparent;
    border: none;
    z-index: 3;
    padding: 0;
  }

  .carousel-arrow.left {
    left: -3%;
  }

  .carousel-arrow.right {
    right: -3%;
  }
}

.btn-ver-mas {
  background-color: #f9821c;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  padding: 15px 40px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-ver-mas:hover {
  background-color: #da6600;
  transform: scale(1.05);
}

/* Sobre Nosotros*/

.sobre-nosotros {
  background-color: #f9821c; /* naranja fuerte */
  padding: 80px 20px;
  font-family: "SFPro", sans-serif;
  color: #000;
}

.sobre-nosotros .contenido {
  background-color: #fff;
  border-radius: 10px;
  padding: 40px 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.sobre-nosotros .titulo-seccion {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 50px;
  color: #fff;
}

.bloque-quienes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
  align-items: center;
}

.bloque-quienes .img-wrapper {
  flex: 1 1 45%;
  text-align: center;
}

.bloque-quienes img {
  max-width: 100%;
  border-radius: 8px;
}

.bloque-quienes .texto {
  flex: 1 1 50%;
}

.bloque-quienes .texto h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.bloque-quienes .texto p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.bloque-quienes .resaltado {
  color: #f97316;
  font-weight: 600;
}

.btn-conozcanos {
  display: inline-block;
  margin-top: 15px;
  background-color: #f97316;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-conozcanos:hover {
  background-color: #cc5d0f;
}

.bloque-mision-vision {
  display: flex;
  flex-direction: row; /* FORZAMOS que sea horizontal */
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.bloque-mision-vision .bloque {
  flex: 1;
}

.bloque-mision-vision .img-wrapper {
  flex: 1;
  text-align: center;
}

.bloque-mision-vision img {
  max-width: 100%;
  border-radius: 8px;
}

.bloque h3 {
  text-align: right;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.bloque p {
  text-align: right;
  font-size: 1rem;
}

.separador {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
}

.linea {
  flex: 1;
  height: 1px;
  background-color: #aaa;
  max-width: 150px;
}

.icono-separador {
  height: 30px;
  margin: 0 15px;
}

@media (max-width: 768px) {
  .bloque-quienes {
    flex-direction: column;
  }

  .bloque-quienes .img-wrapper,
  .bloque-mision-vision .img-wrapper,
  .bloque-quienes .texto,
  .bloque-mision-vision .bloque {
    flex: 1 1 100%;
  }

  .bloque h3,
  .bloque p,
  .texto {
    text-align: center;
  }

  .bloque-mision-vision {
    flex-direction: column-reverse;
    text-align: center;
  }

  .bloque-mision-vision .bloque,
  .bloque-mision-vision .img-wrapper {
    width: 100%;
  }
}

.animar-entrada {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.animar-entrada.entrando {
  opacity: 1;
  transform: translateY(0);
}

.desde-izquierda {
  transform: translateX(-40px);
}

.desde-derecha {
  transform: translateX(40px);
}

.desde-izquierda.entrando,
.desde-derecha.entrando {
  transform: translateX(0);
}

/*Servicios*/

.servicios {
  background: #fff;
  text-align: center;
  padding: 60px 20px;
  font-family: "SFPro", sans-serif;
}

.titulo-seccion {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 50px;
}

.contenedor-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
  align-items: center;
  justify-content: center;
}

.servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.servicio:hover {
  transform: translateY(-4px);
}

.servicio img {
  height: 60px;
  margin-bottom: 15px;
}

.servicio h4 {
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
}

/* Experiencia seccion */

.section-experiencia {
  background-color: #f57c00; /* Naranja fuerte */
  padding: 60px 20px;
  text-align: center;
  color: white;
  font-family: "SFPro", sans-serif;
}

.contenedor-experiencia {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.bloque-experiencia {
  flex: 1 1 200px;
  max-width: 220px;
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bloque-experiencia.visible {
  opacity: 1;
  transform: translateY(0);
}

.bloque-experiencia h3 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.bloque-experiencia h3 span {
  font-size: 2rem;
  font-weight: 900;
}

.bloque-experiencia p {
  font-size: 1rem;
  margin: 0;
  color: white;
}

.separador-vertical {
  width: 1px;
  height: 60px;
  background-color: white;
}

.trabaja-nosotros {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.trabaja-nosotros.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-blanco {
  background-color: #fff;
  color: black;
  font-weight: bold;
  font-size: 1.25rem;
  padding: 15px 40px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
  .contenedor-experiencia {
    flex-direction: column;
  }

  .separador-vertical {
    width: 60px;
    height: 1px;
  }
}

.btn-blanco:hover {
  background-color: #f1f1f1;
  transform: scale(1.05);
}

/*Preguntas frecuentes*/
.faq-nueva {
  background-color: #191919;
  padding: 80px 20px;
  font-family: "SFPro", sans-serif;
  color: #eee;
}

.faq-header .resaltado {
  color: #f9821c;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.subtexto-faq {
  color: #aaa;
  font-size: 1.1rem;
  margin-top: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Por defecto 1 columna */
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .faq-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.faq-card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(249, 130, 28, 0.15);
}

.faq-icon {
  font-size: 2.2rem;
  color: #f9821c;
  margin-bottom: 15px;
}

.faq-titulo {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.faq-descripcion {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}
