/* Blog Block */
.blog-block-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-block: 2rem;
  height: 30rem;
  border-radius: 1rem;
  box-shadow: 0px 0px 30px rgb(0, 0, 0, 0.25);
}

.blog-block-item img {
  border-radius: 1rem 1rem 0 0;
}

.blog-block-desc {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  padding: 2rem;
}

.blog-block-desc-date {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.blog-block-desc-date span {
  color: var(--terciario);
  font-size: 0.875rem;
}

.blog-block-cta {
  padding: 2rem;
}

.blog-block-item a {
  padding: 0.75rem 1.25rem;
  width: 150px;
  text-align: center;
  background-color: var(--primario);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
}

@media (max-width: 992px) {
  .blog-block-item {
    margin: 3rem;
    height: inherit;
  }
}

/*** Blog ***/
/*** Hero Contact ***/
#blog-hero .carousel-item {
  position: relative;
  height: 450px;
}

#blog-hero .carousel-item::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgb(60, 74, 117, 0.7), rgb(3, 11, 48, 0.7));
}

#blog-hero .carousel-item img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

#blog-hero .carousel-item::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#blog-hero .carousel-caption {
  height: 100%;
  display: flex;
  justify-content: start;
  align-items: end;
  margin-bottom: 3rem;
  z-index: 1;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  max-width: 600px;
  text-align: start;
}

.hero-contact h1,
.hero-contact span {
  font-size: 1rem;
}

.hero-contact h2 {
  font-size: 2.5rem;
}

.hero-contact p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.hero-contact-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.hero-contact-cta a {
  display: block;
  padding: 1rem 2rem;
  max-width: 300px;
  text-align: center;
  background-color: var(--primario);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
}

.hero-contact-cta a:nth-child(2) {
  background-color: var(--cuarto);
}

.hero-contact-cta a:hover {
  background-color: var(--white);
  color: var(--dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  #blog-hero .carousel-item {
    min-height: 35vh;
  }

  #blog-hero .carousel-item img {
    min-height: 35vh;
    object-fit: cover;
  }

  .hero-contact {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-contact h1,
  .hero-contact span {
    font-size: 0.875rem;
  }

  .hero-contact h2 {
    font-size: 1.5rem;
  }

  .hero-contact p {
    font-size: 0.875rem;
  }

  .hero-contact-cta a {
    width: 100% !important;
    font-size: 0.875rem;
  }
}

/* BLOG */
/* Estilos para el artículo */
.blog-article {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Imagen del artículo */
.post-img {
  width: 100%;
  overflow: hidden;
}

.img-custom {
  width: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9;
}

/* Cuerpo del artículo */
.article-body {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0;
  height: 100%;
}

.title {
  font-size: 1.25rem;
}

.article-link {
  text-decoration: none;
  color: var(--primario);
}

.article-link:hover {
  text-decoration: underline;
}

/* Metadatos */
.meta-top ul {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.625rem;
  padding: 0;
  gap: 0.5rem;
  list-style: none;
}

.meta-top li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.meta-top li i {
  margin-right: 0.25rem;
}

/* Contenido del artículo */
.article-content {
  flex: 1;
  font-size: 0.875rem;
  color: var(--dark);
}

/* Botón personalizado */
.btn-custom {
  display: inline-block;
  padding: 10px 15px;
  background-color: var(--primario);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.btn-custom:hover {
  background-color: var(--cuarto);
  text-decoration: underline;
}

/* Recientes */
.search {
  display: flex;
  align-items: center;
  justify-content: start;
  text-align: center;
}

.search__input {
  font-family: inherit;
  font-size: inherit;
  background-color: #f4f2f2;
  border: none;
  color: #646464;
  padding: 0.7rem 1rem;
  border-radius: 30px;
  width: 12em;
  transition: all ease-in-out 0.5s;
  margin-right: -2rem;
}

.search__input:hover,
.search__input:focus {
  box-shadow: 0 0 1em #00000013;
}

.search__input:focus {
  outline: none;
  background-color: #f0eeee;
}

.search__input::-webkit-input-placeholder {
  font-weight: 100;
  color: #ccc;
}

.search__input:focus + .search__button {
  background-color: #f0eeee;
}

.search__button {
  border: none;
  background-color: #f4f2f2;
  margin-top: 0.1em;
}

.search__button:hover {
  cursor: pointer;
}

.search__icon {
  height: 1.3em;
  width: 1.3em;
  fill: #b4b4b4;
}

/* Detalle Blog */
.post-img {
  position: relative;
  width: 100%;
  z-index: 1;
}

.post-img img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.post-img::after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  z-index: 10;
}

.text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  color: var(--white);
  z-index: 11;
}

#blog-content p,
a {
  color: var(--dark);
}
