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

p {
  color: white;
}

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 {

  /* Overlay */

  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;
}


/* 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; /* Thumb, Track */
  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;
}



/** Mobile */

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

  .card-service {
    width: 18rem;
    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-description {
    min-height: 5rem;
  }

  .card-img {
    width: 95%;
  }

  .posts-grid {
    padding: 1rem;
  }  


}
