/* Reset */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #D1D1D1; /* Acero inoxidable */
  color: #1C1C1C; /* Negro asfalto */
}

a {
  text-decoration: none;
}

/* === HEADER & NAV === */
.navbar {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  overflow-x: hidden;
}

.navbar-brand {
  
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px; /* ajusta según tu caso */


}

.navbar-nav .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #1C1C1C;
}
.navbar-nav .nav-link {
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #FFD100; /* Tu color de acento */
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}



/* Botón de teléfono */
.navbar .btn {
  background-color: #1C1C1C;
  color: #FFD100;
  border: none;
  transition: all 0.3s ease;
}


.navbar .btn:hover {
  background-color: #FFD100;
  color: #1C1C1C;
}

/* === Hamburguesa personalizada === */
.custom-toggler-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 22px;
}

.custom-toggler-icon span,
.custom-toggler-icon::before,
.custom-toggler-icon::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #1C1C1C;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.custom-toggler-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.custom-toggler-icon::before {
  top: 0;
}

.custom-toggler-icon::after {
  bottom: 0;
}

/* Animación al expandir el menú */
.navbar-toggler:not(.collapsed) .custom-toggler-icon::before {
  transform: rotate(45deg);
  top: 9px;
}

.navbar-toggler:not(.collapsed) .custom-toggler-icon::after {
  transform: rotate(-45deg);
  bottom: 9px;
}

.navbar-toggler:not(.collapsed) .custom-toggler-icon span {
  opacity: 0;
}
.navbar .container {
  padding-left: 15px;
  padding-right: 15px;
}

.navbar-brand img {
  max-height: 45px;
}

/* Asegura que el logo no se estire o empuje contenido */
.navbar-brand {
  flex-shrink: 1;
  max-width: 50%;
}
.navbar-brand img {
  max-height: 85px;
  border-radius: 50%;
}





/* === BANNER === */
/* CSS */
.banner {
  background: url('../img/Baner.jpg') center center / cover no-repeat;
  color: #fff;
  position: relative;
  z-index: 1;
  padding: 150px 25px;
  min-height: 700px;
  justify-content: center;
  align-items: center;
  text-align: center;


}

/* Efecto de oscurecimiento opcional */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Textos */
.banner h1 {
  font-size: 3rem;
}

.banner p {
  font-size: 1.4rem;
}

/* Botón */
.banner .btn {
  background-color: #FFD100;
  color: #1C1C1C;
}

.banner .btn:hover {
  background-color: #B0B0B0; /* Gris cemento */
  color: #000;
}

/* === SERVICES === */
.services {
  background-color: #D1D1D1;
}

.services h2 {
  color: #1E3A5F;
}

.services .text-warning {
  color: #FFD100 !important;
}

/* === CUSTOM SERVICES === */
.custom-services h2 {
  color: #1E3A5F;
  font-weight: bold;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.icon-wrapper {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #FFD100; /* default icon color */
}

/* Colores industriales */
.card-asphalt { background-color: #1C1C1C; color: #fff; }
.card-steel   { background-color: #D1D1D1; color: #1C1C1C; }
.card-yellow  { background-color: #FFD100; color: #1C1C1C; }
.card-cement  { background-color: #B0B0B0; color: #1C1C1C; }
.card-dark    { background-color: #2A2A2A; color: #fff; }
.card-blue    { background-color: #1E3A5F; color: #fff; }

/* Iconos adaptados */
.card-asphalt .icon-wrapper,
.card-yellow .icon-wrapper,
.card-dark .icon-wrapper {
  color: #fff;
}



/* === GALLERY === */
#gallery {
  background-color: #D1D1D1; /* Acero inoxidable */
}

#gallery h2 {
  color: #1E3A5F; /* Azul técnico */
  font-weight: bold;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.gallery-img:hover {
  transform: scale(1.03);
}

.pagination .page-link {
  color: #1C1C1C;
  border: 1px solid #B0B0B0;
}

.pagination .page-link:hover {
  background-color: #FFD100;
  color: #1C1C1C;
  border-color: #FFD100;
}

.pagination .active .page-link {
  background-color: #FFD100;
  border-color: #FFD100;
  color: #1C1C1C;
   
}
.pagination .page-item {
  margin: 0 6px; /* espaciado horizontal entre botones */
}



/* === ABOUT === */
.about {
  background-color: #fff;
}

.about h2 {
  color: #1C1C1C;
}

.about-right h4 {
  color: #FFD100;
}

/* === CONTACT === */
.contact-left {
  background-color: #B0B0B0;
  color: #1C1C1C;
}

.contact-right {
  background-color: #FFD100;
  color: #1C1C1C;
}

.contact-right h4 {
  color: #1C1C1C;
}
#about h1 {
  color: #1C1C1C;
}

#about .btn {
  background-color: #FFD100;
  border: none;
}

#about .btn:hover {
  background-color: #B0B0B0;
  color: #000;
}

#about i {
  transition: transform 0.3s ease;
}

#about i:hover {
  transform: scale(1.2);
}
.contact-section i {
  color: #1E3A5F;
}
.contact-left i,
.contact-right i {
  margin-right: 8px;
}
.contact-left .btn:hover {
  background-color: #FFD100;
  color: #1C1C1C;
}






/* === FOOTER === */
footer {
  background-color: #1C1C1C;
  color: #D1D1D1;
}

footer .bi {
  font-size: 1.4rem;
  color: #FFD100;
  transition: transform 0.3s ease;
}

footer .bi:hover {
  transform: scale(1.2);
}

/* ==== TESTIMONIALS SECTION ==== */
.testimonials-section {
  background-color: #D1D1D1; /* Acero inoxidable */
}

#testimonial-slider .testimonial {
  margin: 0 20px 40px;
}

.testimonial .testimonial-content {
  padding: 35px 25px 35px 50px;
  margin-bottom: 35px;
  background: #fff;
  border: 1px solid #B0B0B0; /* Gris cemento */
  position: relative;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.testimonial .testimonial-content::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #fff;
  position: absolute;
  bottom: -10px;
  left: 22px;
  transform: rotate(45deg);
}

.testimonials-section {
  background-color: #D1D1D1;
}

.testimonial {
  background: #fff;
  padding: 30px 20px 40px 50px;
  border: 1px solid #B0B0B0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: scale(1.03);
}

.testimonial-content::after {
  content: "";
  width: 20px;
  height: 20px;
  background: #fff;
  position: absolute;
  bottom: -10px;
  left: 22px;
  transform: rotate(45deg);
}

.testimonial-icon {
  width: 50px;
  height: 45px;
  background: #FFD100;
  text-align: center;
  font-size: 22px;
  color: #1C1C1C;
  line-height: 42px;
  position: absolute;
  top: 30px;
  left: -19px;
  border-radius: 4px;
}

.testimonial .description {
  font-size: 15px;
  font-style: italic;
  color: #5f5f5f;
  line-height: 23px;
  margin-bottom: 10px;
}

.testimonial .title {
  font-size: 18px;
  font-weight: bold;
  color: #1E3A5F;
}

.testimonial .post {
  font-size: 14px;
  color: #FFD100;
}




/* === RESPONSIVE === */
@media (max-width: 768px) {

  /* 🔧 Ajusta el header principal para que los elementos se apilen en vertical */
  header .container {
    flex-direction: column;   /* De fila a columna */
    gap: 15px;                /* Espaciado entre logo/nav/btn */
    text-align: center;       /* Centra los textos y enlaces */
  }

  /* 🔠 Reduce tamaño del título principal del banner */
  .banner h1 {
    font-size: 2rem;          /* Más adecuado para móviles */
  }

  /* 🔡 Reduce tamaño del subtítulo en el banner */
  .banner p {
    font-size: 1rem;          /* Mayor legibilidad en pantallas pequeñas */
  }

  /* 📋 Si usas columnas con clase personalizada (ej. list-columns), se ajusta a una sola columna */
  .list-columns {
    column-count: 1;          /* Apila contenido verticalmente */
  }

  /* 🖼️ Ajusta imagenes de galería para evitar desbordes y mantener proporción */
  .gallery-img {
    max-height: 280px;        /* Controla altura en móvil */
    object-fit: cover;        /* Mantiene relación de aspecto sin distorsión */
  }

  /* 🤝 Apila las columnas de la sección About y Contacto */
  .about .container,
  .contact-section .container {
    flex-direction: column;   /* Evita que los bloques queden muy comprimidos en horizontal */
  }

  /* 🧱 BONUS: Si tienes botones muy juntos en .contact-left o .contact-right, puedes agregar separadores */
  .contact-left .btn,
  .contact-right .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
}
html, body {
  overflow-x: hidden;
}

/* Elimina desbordamientos en secciones con tarjetas o columnas */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Asegura que todo esté dentro del viewport */
.container, .contact-section .container, .about .container {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Evita que botones u íconos se salgan del contenedor en móvil */
@media (max-width: 576px) {
  .btn, .nav-link, img, .icon-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }
  .navbar .btn {
    width: 100%;
    margin-top: 10px;
  }

  .navbar-toggler {
    margin-left: auto;
  }

}

@media (max-width: 576px) {
  .contact-section .d-lg-flex {
    flex-direction: column;
    gap: 1.5rem; /* separa verticalmente los cuadros */
  }

  .contact-left,
  .contact-right {
    margin-bottom: 0;  /* elimina margen duplicado si lo hubiera */
    padding: 1.5rem;
  }
}


