 /* =====================================
   1. RESET Y ESTILOS GENERALES
===================================== */
body {
  margin: 0;
font-family: 'Poppins', sans-serif;
}

[type=button]:not(:disabled), 
[type=reset]:not(:disabled), 
[type=submit]:not(:disabled), 
button:not(:disabled) {
  cursor: pointer;
  border: none;
}

/* =====================================
   2. HERO
===================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  padding-top: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.hero h1 {
  font-size: 45px;
  font-weight: 700;
  margin-top: -100px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}









.hero-slideshow,
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow {
  z-index: -1;
}

.slide {
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

@keyframes zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Móviles */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 78vh;
    padding: 95px 15px 0;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
  }

  .hero h1 {
    font-size: 30px;
    margin-top: 0;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero-content {
    padding: 0 15px;
  }

  .btn-cotizar-ahora {
    font-size: 12px;
    padding: 10px 20px;
  }

  .btn-danger1 {
    font-size: 14px;
  }
}

/* =====================================
   3. BOTONES
===================================== */
.btn-danger,
.btn-cotizar-ahora,
.btn-orange,
.btn-light,
.custom-orange {
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-danger,
.btn-danger1 {
  background: #c40000;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-cotizar-ahora {
  background: linear-gradient(135deg, #c40000 0%, #c40000 100%);
  color: white !important;
  padding: 0.6rem 1.8rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-cotizar-ahora:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-orange {
  background-color: white;
  color: #0061fe;
  padding: 10px 20px;
}

.custom-orange:hover {
  background-color: white;
  color: #0061fe;
}

.btn-orange {
  background-color: #c40000;
  color: white;
  padding: 12px;
  border-radius: 8px;
}

.btn-orange:hover {
  background-color: #fff;
  color: #c40000;
}

.btn-light {
  background-color: #0061fe;
  color: white;
}

.btn-light:hover {
  background-color: #0061fe;
  color: white;
}

.btn:focus,
.btn:active,
button:focus,
button:active {
  box-shadow: none !important;
  outline: none !important;
}

 




 /* =====================================
   4. NAVBAR
===================================== */
.navbar {
  padding: 1px 0;
  background-color: #fff !important;
  width: 100%;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 0.3s ease;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
}

.logo {
  height: 110px;
  margin-left: 30px;
}

@media (max-width: 576px) {
  .logo {
    height: 80px;
    margin-right: 30px;
  }
}

/* =====================================
   5. NAV ITEMS
===================================== */
.navbar-nav .nav-item {
  margin: 0 0.3rem;
}

.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  margin: 0 10px;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #c40000 !important;
}

 .navbar-nav .nav-link.active {
  color: #c40000 !important;
  font-weight: 600;
  position: relative;

}


 
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
}
/* Dropdown */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  font-size: 15px;
color:#000;  
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #c40000;
}

.dropdown-item.active {
  background-color: #c40000;
  color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .navbar-nav .nav-item {
    margin: 0.2rem 0;
  }

  .btn-cotizar-ahora {
    margin-top: 0.5rem;
    display: inline-block;
  }
}





 

 

footer {
  background-color: #000;
  color: white;
  padding: 70px 20px 50px 20px;
  text-align: center;
}

footer a {
  color: #c40000;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.section-title {
  font-size: 2.5rem;
  color: #000;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: left;
}






 



.benefits-section {
  background-color: #fff;
  padding: 90px 0px;
  text-align: center;
  width: 100%;
}

.benefits-section h2 {
  font-size: 2em;
  color: #111;
  margin-bottom: 40px;
  font-weight: bold;
}

.benefit-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Tarjeta estándar (para escritorio) */
.benefit-card {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 30px 20px 0px 20px;
  width: 260px;
  transition: transform 0.3s ease;
  opacity: 0;
  
}

/* Animación stagger */
.benefit-card:nth-child(1) {
  animation-delay: 0.2s;
}
.benefit-card:nth-child(2) {
  animation-delay: 0.4s;
}
.benefit-card:nth-child(3) {
  animation-delay: 0.6s;
}
.benefit-card:nth-child(4) {
  animation-delay: 0.8s;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

/* Íconos */
.benefit-card .icon {
  font-size: 36px;
  color: #c40000;
  margin-bottom: 10px;
  display: block;
}

/* Subtítulo del ícono */
.icon-subtitle {
  display: block;
  font-size: 0.9em;
  color: #888;
  font-style: italic;
  margin-bottom: 10px;
}

/* Título */
.benefit-card h3 {
  font-size: 1.2em;
  color: #222;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Texto */
.benefit-card p {
  font-size: 1em;
  color: #555;
  line-height: 1.5;
}

/* MOBILE: Mostrar una tarjeta por fila */
@media (max-width: 768px) {
  .benefit-cards {
    flex-direction: column;
    align-items: center;
  }

  .benefit-card {
    width: 100%;
    max-width: 600px;
  }

  .benefit-card h3 {
    font-size: 28px;
  }

  .benefit-card p {
    font-size: 1.05em;
  }



.benefits-section {
  background-color: #fff;
  padding: 90px 20px;
  text-align: center;
  width: 100%;
}




}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


 




.lista-proyectos {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.lista-proyectos li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #000;
  display: flex;
  align-items: center;
}

.lista-proyectos i {
  color: #c40000;
  margin-right: 10px;
  font-size: 1rem;
}








 /* MOBILE: Mostrar una tarjeta por fila */
@media (max-width: 768px) {
   

.lista-proyectos {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.lista-proyectos li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #000;
  display: flex;
  align-items: center;
}

.lista-proyectos i {
  color: #c40000;
  margin-right: 11px;
  font-size: 1rem;
}



 .texto-izquierda h2 {
    color: #c40000;
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 70px;
}

 


}













.galeria-section {
  padding: 80px 20px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
}

.galeria-titulo {
  text-align: center;
  font-size: 2.2rem;
  color: #c40000;
  margin-bottom: 40px;
  font-weight: 600;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.galeria-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.galeria-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.05);
}




 /* Modal */
   /* Estilo del modal */
#modalGaleria {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

#modalGaleria .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modalGaleria img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* ✅ Esto mantiene la proporción */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Botones de navegación */
#modalGaleria .modal-prev,
#modalGaleria .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 15px;
  cursor: pointer;
  border: none;
  z-index: 10;
  user-select: none;
  border-radius: 50%;
}

#modalGaleria .modal-prev {
  left: 20px;
}

#modalGaleria .modal-next {
  right: 20px;
}

#modalGaleria .modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}




 .modal-content {
  border-radius: 12px;
  max-height: 90vh;
  overflow-y: auto;
}
.accordion-button {
  font-weight: 600;
}
.accordion-button:not(.collapsed) {
  background-color: #c40000;
  color: #fff;
}
.accordion-body {
  font-size: 0.95rem;
  line-height: 1.6;
}









.clientes-section {
  padding: 80px 20px;
  background-color: #f8f9fa;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  padding-bottom: 90px;
}

.clientes-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #c40000;
  margin-bottom: 10px;
}

.clientes-section p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Estilo de logos sin filtros */
.cliente-logo {
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
  padding: 10px;
}

/* Zoom elegante al pasar el mouse */
.cliente-logo:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .clientes-section h2 {
    font-size: 2rem;
  }

  .clientes-section p {
    font-size: 1rem;
  }
}

 


 /* Botón WhatsApp moderno y elegante */
.whatsapp-modern {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  z-index: 999;
}

.whatsapp-modern:hover {
  transform: scale(1.1);
  background-color: #1ebea5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.whatsapp-modern i {
  line-height: 1;
  text-decoration: none;
  pointer-events: none;
}




/* Iconos laterales izquierdos */
.social-icons-left {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  padding-left: 5px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: #333;
  color: #fff;
  border-radius: 5px 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon.facebook {
  background-color: #365bad;
}

.social-icon.instagram {
  background-color: #e4405f;
}





.maquinaria-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.textos-maquinaria {
  max-width: 800px;
  margin: 0 auto 40px;
}

.textos-maquinaria h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #b00000;
}

.textos-maquinaria p {
  font-size: 18px;
  color: #555;
}

.container-maquinas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.maquina-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.maquina-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.maquina-box img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;

}

.maquina-nombre {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.btn-ver {
  display: inline-block;
  padding: 5px 5px;
  color: #b00000;
  border: 2px solid #b00000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-ver:hover {
  background-color: #b00000;
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .container-maquinas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container-maquinas {
    grid-template-columns: 1fr;
  }
}




@media (max-width: 768px) {
 

  .maquina-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}





.textos-maquinaria h2 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #b00000;
}

.textos-maquinaria p {
  font-size: 18px;
  color: #555;
}



.maquina-box img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;


}

}



.modal-body img {
  max-height: 80vh;
  object-fit: contain;
}



.contacto {
  padding: 50px 20px;
  background-color: #ffff;
  text-align: center;
}

.contacto h2 {
  color: #b00000;
  font-size: 32px;
  margin-bottom: 10px;
}

.contacto p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #555;
}

.formulario-contacto,
#cotizador-form {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 20px;
}

.campo, .campo-full {
  flex: 1 1 100%;
}

.campo {
  min-width: 200px;
  flex: 1 1 calc(50% - 20px);
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

.btn-enviar {
  background-color: #b00000;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-enviar:hover {
  background-color: #800000;
}

.checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 10px;
}

.checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
}

.cliente-particular,
.cliente-empresa,
#detalle-maquinaria {
  display: none;
}

@media (max-width: 600px) {
  .campo {
    flex: 1 1 100%;
  }
}





 

#pantalla-enviando {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pantalla-cargando-contenido {
  text-align: center;
}

.pantalla-cargando-contenido p {
  font-size: 20px;
  color: #333;
  margin-top: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top: 6px solid #b00000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/*CARRUSEL*/

.clientes-carousel-section {
  padding: 60px 0 0;
  background: #f8f9fa;
  text-align: center;
}

.clientes-carousel-title {
  font-size: 28px;
  margin-bottom: 35px;
  color: #222;
}

.clientes-linea {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0 40px;
}

.clientes-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}

.clientes-grupo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.clientes-grupo img {
  height: 58px;
  width: auto;
  margin: 0 34px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;

  filter: none; /* 🔥 COLOR REAL */
  opacity: 1;

  transition: transform 0.3s ease;
}

.clientes-grupo img:hover {
  transform: scale(1.05);
}

@keyframes scrollLinea {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .clientes-grupo img {
    height: 42px;
    margin: 0 22px;
  }

  .clientes-track {
    animation-duration: 35s;
  }
}