header .container,
footer .container {
    max-width: 1450px;
} 

a {
  color: white;
  text-decoration: none;
}

.navbar-toggler {
  border: none;
}

p {
  color: white;
}

.border-bottom {
    1px solid gray !important;    
}

video {
  object-fit: cover;
}

/* Servicios */


.card-service {
  height: 28rem;  
  position: relative;
  background-image: var(--bg-hero);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
}


.card-service-container {

  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);  

  position: absolute;
  bottom: 0;
  width: 100%;
  color: white;
  padding: 3rem;
  transition: transform 0.4s ease;
  transform: translateY(60%);
}

.card-service-title {
  font-size: 2.5rem;
}

.card-service-title::after {
  content: '';
  display: block;
  margin: 19px auto 15px;
  width: 46px;
  height: 3px;
  background-color: #eb212e;  
}


.card-service-description {
  font-size: 1rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover behavior */
.card-service:hover .card-service-container {
  transform: translateY(0%);
}

.card-service:hover .card-service-description {
  opacity: 1;
}

.scroll-x-container {
  display: flex;
  overflow: hidden;
}

.card-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0 0.5rem;
}

.card-blog {
  height: 28rem;
  background-color: transparent;
}

@media (min-width: 768px) {
  .card-slide {
    flex: 0 0 33.3333%; /* 3 cards en desktop */
  }
}


/* Tienda */

.hero-image {
  --bg-hero: url("../img/tienda-taller.png");
  background-image: var(--bg-hero);
  background-size: cover; /* Asegura que la imagen cubra todo el espacio */
  background-position: center; /* Centra la imagen */
  min-height: 50vh;
  position: relative; /* Es importante para posicionar el overlay */
  display: flex; /* Para centrar verticalmente el contenido */
  align-items: center; /* Para centrar verticalmente el contenido */
  justify-content: center; /* Para centrar horizontalmente el contenido */
}


.hero-image__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Color negro con 50% de opacidad */
  z-index: 1; /* Asegura que el overlay esté por encima de la imagen */
}

.hero-image .py-5, 
.heroc-image .py-5,
.card .py-5
.card p {
  z-index: 1; 
}

.container-md {
  max-width: 55%;  
}

.about-content {
  text-align: justify;
}

/* Home - Blog */

.card-blog {
  border: 1px solid gray;
}

.card-blog-title {
  height: 2rem;
  /* padding: 1rem; */
}

.card-blog-header {
  min-height: 5rem;
}

.card-blog-container {
  padding: 1.5rem;
  width: 24rem;
  min-height: 22rem;  
}

.card-blog-container img {
  text-align: center;
}

.card-blog-description {
  height: 2rem;
}

.card-img {
  width: 75%;
}

.card-blog h3 {
  font-size: 20px;
  text-transform: uppercase;
}


/* Blog - Section */

.blog-item-title {
  font-size: 2.2rem;
  font-weight: 700;
}

.blog-item-body p {
  font-size: 1.5rem;
}

.blog-item-body .date {
  font-size: 1rem;
}

.blog-item-container:hover {
  background-color: #d8001a;
  transition: all 0.3s ease-out;
}



/*

.scroll-x-container,
.list-group-horizontal {
  overflow-x: scroll;
}

.scroll-x-container {
  scrollbar-color: #d8001a #555; 
  scrollbar-width: thin;
}

*/


.posts-grid {
  padding: 3rem;
}

.posts-grid h2 {
  font-size: 2rem;
  font-weight: 700;
}

.post-img {
  width: 90%;
}

h1 {
  color: white;
}

h3 {
  font-weight: 700;
}

.ventas-servicios {
  background-image: url("../img/unsplash.jpg");
  background-size: cover;         /* Hace que la imagen cubra todo el fondo */
  background-position: center;    /* Centra la imagen */
  background-repeat: no-repeat;   /* Evita que se repita */
}

/* Btn Wsp */

.whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 1.5rem;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}


/** Mobile */

@media screen and (max-width:780px) {

  .card-service {
    width: 20rem;
    height: 24rem;
  }

  .card-service-title {
    font-size: 1.4rem;
  }  

  .card-article {
    width: 8rem;
  }
 
  .trucks-avatar {
    width: 95%;
  }

  .container-md {
    max-width: 95%;  
  }
  
  /* Blog */

  .card-blog-container {
    width: 16rem;
  }
  
  .card-blog-header {
      width: 18rem;
  }

  .card-blog-description {
    min-height: 5rem;
    width: 18rem;
  }

  .card-blog .card-img-top {
    width: 130% !important;
  }

  .posts-grid {
    padding: 1rem;
  }  


}
