/* Buttons */ 
.btn.btn-primary {
  background-color: #115147;
  border-color: #115147;
}

.btn-primary:hover {
  background-color: #0F483F;
  border-color: #0F483F;
}

.btn-secondary {
  background-color: #fff;
  border-color: #D5D7DA;
  color: #414651;
}

.btn-secondary:hover {
  background-color: #FAFAFA;
  border-color: #D5D7DA;
  color: #252B37;
}

/* Text */
.display-5 {
color:  #181D27;
font-family:  Inter;
font-size: 60px;
font-style: normal;
font-weight: 600;
line-height: 72px;
letter-spacing: -1.2px;
}

.lead {
color:  #535862;
font-family: Inter;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height:30px; /* 150% */
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #fff;
  overflow: hidden;
}

.hero-carousel-wrapper {
  position: relative;
  height: 100vh;
  clip-path: polygon(15% 0%, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
}

.carousel-inner,
.carousel-item,
.carousel-item img {
  width: 100%;
  height: 100%;
}
.hero-logo {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 81, 71, 0.85); /* Fondo más translúcido */
  padding: 32px 90px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18); /* Sombra más notoria */
  border: 2px solid #fff; /* Borde blanco sutil */
  z-index: 10;
}

.hero-logo img {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
}

/* Asegura que ambas columnas ocupen el 50% */
.hero-section .container,
.hero-section .row {
  height: 100%;
}

.hero-section .col-lg-6 {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-section {
  background-color: #0B362F;
  color: white;
  padding-bottom: 150px;
}

.asesoramiento-section {
  background-color: #fff;
  color:  #181D27;
  padding-bottom: 0;
  margin-bottom: 150px;
}


.contact-img {
  position: relative;
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.15);
}

.negative-margin {
  margin-top: -150px;
}

.spacing-9-xl {
  padding: 96px;
}

/* Estilos para el carousel de productos */
#productCarousel {
  position: relative;
}

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(17, 81, 71, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 20px;
}

#productCarousel .carousel-control-prev-icon,
#productCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

#productCarousel .carousel-indicators {
  bottom: -50px;
}

#productCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #115147;
  border: none;
  margin: 0 5px;
}

#productCarousel .carousel-indicators button.active {
  background-color: #0b362f;
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilos para los botones de filtro de industrias */
#filterButtons .btn {
  background-color: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

#filterButtons .btn[data-industry="naviera"] {
  background-color: #f3e5f5 !important;
  color: #6a1b9a !important;
  border: 1px solid #e1bee7 !important;
}

#filterButtons .btn[data-industry="petroleo"] {
  background-color: #e3f2fd !important;
  color: #1976d2 !important;
  border: 1px solid #bbdefb !important;
}

#filterButtons .btn[data-industry="metalurgica"] {
  background-color: #fff3e0 !important;
  color: #8d6e63 !important;
  border: 1px solid #ffcc80 !important;
}

#filterButtons .btn[data-industry="alimentaria"] {
  background-color: #e3f2fd !important;
  color: #1976d2 !important;
  border: 1px solid #bbdefb !important;
}

#filterButtons .btn[data-industry="vial"] {
  background-color: #fce4ec !important;
  color: #c2185b !important;
  border: 1px solid #f8bbd9 !important;
}

#filterButtons .btn[data-industry="transporte"] {
  background-color: #e8f5e8 !important;
  color: #2e7d32 !important;
  border: 1px solid #c8e6c9 !important;
}

#filterButtons .btn.active {
  background-color: #115147 !important;
  color: white !important;
  border-color: #115147 !important;
}

#filterButtons .btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* Estilos para los badges de productos en index.html */
.transporte-badge {
  background-color: #e8f5e8 !important;
  color: #2e7d32 !important;
  border: 1px solid #c8e6c9 !important;
}

.vial-badge {
  background-color: #fce4ec !important;
  color: #c2185b !important;
  border: 1px solid #f8bbd9 !important;
}

.alimentaria-badge {
  background-color: #e3f2fd !important;
  color: #1976d2 !important;
  border: 1px solid #bbdefb !important;
}

.limpieza-badge {
  background-color: #fff3e0 !important;
  color: #f57c00 !important;
  border: 1px solid #ffcc80 !important;
}

.industrial-badge {
  background-color: #f3e5f5 !important;
  color: #6a1b9a !important;
  border: 1px solid #e1bee7 !important;
}

.automotriz-badge {
  background-color: #e0f2f1 !important;
  color: #00695c !important;
  border: 1px solid #b2dfdb !important;
}

.especializado-badge {
  background-color: #f1f8e9 !important;
  color: #558b2f !important;
  border: 1px solid #dcedc8 !important;
}


@media (max-width: 768px) {

  .mobile-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contact-img {
    margin-top: 30px;
    margin-bottom: 0;
  }

  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }

  .hero-carousel-wrapper {
    height: 300px;
    margin-top: 1rem;
  }

  .hero-logo-mobile {
    margin-top: 0;
    width: 100%;
  }

  .hero-logo-bg {
    background-color: #115147;
    padding: 20px 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-logo-mobile img {
    max-width: 150px !important;
    height: auto;
  }

  .display-5 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.8px;
    text-align: center;
  }

  .lead {
    font-size: 18px;
    line-height: 26px;
    text-align: left;
  }

  /* Reducir espaciado entre secciones */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Asegurar que las imágenes ocupen todo el ancho */
  .img-fluid {
    width: 100% !important;
    height: auto;
  }

  /* Centrar textos en secciones */
  .text-center {
    text-align: center !important;
  }

  /* Ajustar contenedores para mobile */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mejorar espaciado en cards de productos */
  .product-card {
    margin-bottom: 1rem;
  }

  /* Ajustar hero section para mobile */
  .hero-section .col-lg-6 {
    text-align: center;
    padding: 1rem;
  }

  /* Centrar botones en mobile */
  .btn {
    display: inline-block;
    text-align: center;
  }

  /* Ajustar carousel de productos para mobile */
  #productCarousel .carousel-control-prev,
  #productCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    margin: 0 10px;
  }

  /* Reducir padding en secciones específicas */
  .pt-5 {
    padding-top: 2rem !important;
  }

  .pb-5 {
    padding-bottom: 2rem !important;
  }

  /* Mejorar sección "¿Por qué elegirnos?" para mobile */
  .w-75 {
    width: 100% !important;
    text-align: left;
  }

  /* Centrar todos los textos en la sección de KPIs */
  .d-flex.flex-column.justify-content-center.align-items-center {
    text-align: center;
    margin-bottom: 2rem;
  }

  /* Centrar números y títulos de KPIs */
  .d-flex.flex-column.justify-content-center.align-items-center h3,
  .d-flex.flex-column.justify-content-center.align-items-center p {
    text-align: center;
    width: 100%;
  }

  /* Mejorar espaciado entre KPIs */
  .row-cols-2 {
    gap: 1.5rem;
  }

  /* Centrar descripciones de KPIs */
  .d-flex.flex-column.justify-content-center.align-items-center .small {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Ajustar layout de KPIs para mobile */
  .row.row-cols-2 {
    display: flex;
    flex-direction: column;
  }

  .row.row-cols-2 > div {
    width: 100%;
    margin-bottom: 2rem;
  }
}



@media (max-width: 991px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-carousel-wrapper {
    clip-path: none;
    height: auto;
    margin-top: 2rem;
  }

  .hero-logo {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #115147;
    padding: 15px 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    max-width: 80%;
  }

  .hero-logo img {
    max-width: 100%;
    height: auto;
  }

  .hero-logo-mobile {
    margin-top: 0;
    width: 100%;
  }

  .hero-logo-bg {
    background-color: #115147;
    padding: 25px 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-logo-mobile img {
    max-width: 180px !important;
    height: auto;
  }
}
