/*==================================================
  RENGE - BLOG
  CSS específico de la página del blog
==================================================*/


/*==================================================
  1. JUMBOTRON / HERO
==================================================*/

/*--------------------------------------------------
  Navegación integrada sobre el HERO
--------------------------------------------------*/

body:has(.jumbotron) .page-header {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 1000;

  background: transparent;
}

.jumbotron {
  position: relative;

  width: 100%;
  height: 620px;

  overflow: hidden;

  background-color: #f7f1eb;
}


/*--------------------------------------------------
  Imagen
--------------------------------------------------*/

.jumbotron__image-container {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
}


.jumbotron__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: left 80%;

  /*
    Sin transición ni efecto hover.
  */
}


/*--------------------------------------------------
  Fade superior
--------------------------------------------------*/

.jumbotron__overlay {
  position: absolute;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(247, 241, 235, 0.92) 0%,
      rgba(247, 241, 235, 0.72) 12%,
      rgba(247, 241, 235, 0.38) 24%,
      rgba(247, 241, 235, 0.10) 36%,
      rgba(247, 241, 235, 0.00) 46%
    );
}


/*--------------------------------------------------
  Título
--------------------------------------------------*/

.jumbotron__title {
  position: absolute;

  top: 54%;
  left: 50%;

  transform: translate(-50%, -50%);

  z-index: 2;

  width: 90%;
  max-width: 1200px;

  margin: 0;

  font-family: var(--font-title);
  font-size: clamp(4rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 1;

  letter-spacing: 0.015em;

  color: var(--color-gold);

  text-align: center;

  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.18);
}


/*==================================================
  2. CONTENIDO GENERAL DEL BLOG
==================================================*/

.blog-content {
  position: relative;

  background-color: #f7f1eb;

  padding: 7rem 2rem 8rem;

  color: #302b27;
}


/* Contenedor */

.blog-content__container {
  display: flex;
  align-items: flex-start;

  gap: 4.5rem;

  width: 100%;
  max-width: 1320px;

  margin: 0 auto;
}


/* Columna principal */

.blog-main {
  flex: 1 1 auto;
  min-width: 0;
}


/* Grid de artículos */

.blog-articles {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 3.5rem 2.5rem;

  width: 100%;
}



/*==================================================
  3. TARJETAS DE ARTÍCULOS
==================================================*/

.blog-card {
  position: relative;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background-color: #fbf8f4;

  border: 1px solid rgba(177, 128, 70, 0.10);

  box-shadow:
    0 12px 35px rgba(63, 48, 36, 0.06);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.blog-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 42px rgba(63, 48, 36, 0.09);
}


/* Imagen */

.blog-card__image-wrapper {
  position: relative;

  width: 100%;
  height: 300px;

  overflow: hidden;
}

.blog-card__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 1.6s ease;
}

.blog-card__image-wrapper:hover .blog-card__image {
  transform: scale(1.035);
}


/* Overlay de imagen */

.blog-card__image-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgba(71, 55, 41, 0.46);

  color: #fffaf5;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  opacity: 0;

  transition: opacity 0.45s ease;

  cursor: pointer;
}

.blog-card__image-wrapper:hover .blog-card__image-overlay {
  opacity: 1;
}


/* Contenido */

.blog-card__content {
  display: flex;
  flex-direction: column;

  flex: 1;

  padding: 2.1rem 2rem 2rem;
}


/* Título */

.blog-card__title {
  margin: 0.2rem 0 0.8rem;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.12;

  color: #292522;

  text-align: center;
}


/* Metadatos */

.blog-card__meta {
  margin: 0.5rem 0 1.5rem;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;

  line-height: 1.5;

  letter-spacing: 0.07em;
  text-transform: uppercase;

  color: #8a7d72;

  text-align: center;
}


/* Extracto */

.blog-card__excerpt {
  margin-bottom: 1rem;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 300;

  line-height: 1.8;

  color: #514a44;

  text-align: left;
}


/* Leer más */

.blog-card__read-more {
  display: inline-block;

  margin-top: auto;
  padding-top: 1.3rem;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;

  letter-spacing: 0.10em;
  text-transform: uppercase;

  color: #a46f32;

  text-decoration: none;

  transition:
    color 0.3s ease,
    letter-spacing 0.3s ease;
}

.blog-card__read-more:hover {
  color: #754b21;
  letter-spacing: 0.13em;

  text-decoration: none;
}



/*==================================================
  4. ACCIONES / ME GUSTA
==================================================*/

.blog-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 1.3rem;
  padding-top: 1rem;

  border-top: 1px solid rgba(75, 61, 50, 0.08);
}

.blog-card__like-button {
  display: flex;
  align-items: center;

  gap: 0.45rem;

  padding: 0;

  background: none;
  border: none;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.76rem;

  color: #91857a;

  cursor: pointer;

  transition: color 0.3s ease;
}

.blog-card__like-button:hover {
  color: #ad783a;
}

.blog-card__like-button .fa-heart {
  font-size: 1rem;
}

.blog-card__like-button .fa-heart.liked {
  color: #ad783a;
}


/* Compatibilidad con corazón antiguo */

.blog-card__meta .fa-heart {
  margin-left: 0.5rem;

  color: #bdb4ac;

  cursor: pointer;

  transition: color 0.3s ease;
}

.blog-card__meta .fa-heart.liked {
  color: #ad783a;
}



/*==================================================
  5. SIDEBAR
==================================================*/

.blog-sidebar {
  flex: 0 0 300px;

  min-width: 0;

  padding: 2.2rem 2rem;

  background-color: #f2e8df;

  border: 1px solid rgba(177, 128, 70, 0.10);

  box-shadow:
    0 10px 30px rgba(63, 48, 36, 0.045);

  height: fit-content;
}



/*==================================================
  6. BUSCADOR
==================================================*/

.search-bar {
  display: flex;

  width: 100%;

  margin-bottom: 3rem;

  border-bottom: 1px solid rgba(70, 58, 48, 0.30);
}

.search-bar input {
  flex: 1;
  min-width: 0;

  padding: 0.85rem 0.4rem;

  background: transparent;

  border: none;
  outline: none;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 300;

  color: #3f3934;
}

.search-bar input::placeholder {
  color: #94877c;
  opacity: 1;
}

.search-bar button {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0.75rem 0.65rem;

  background: transparent;

  border: none;

  color: #9f6d34;

  font-size: 0.95rem;

  cursor: pointer;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.search-bar button:hover {
  background: transparent;

  color: #65451f;

  transform: translateY(-1px);
}



/*==================================================
  7. SECCIONES DE LA SIDEBAR
==================================================*/

.sidebar-section {
  margin-bottom: 3rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}


/* Títulos */

.sidebar-section h3 {
  position: relative;

  margin: 0 0 1.6rem;

  padding-bottom: 0.8rem;

  border-bottom: none;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;

  color: #302b27;
}

.sidebar-section h3::after {
  content: "";

  display: block;

  width: 32px;
  height: 1px;

  margin-top: 0.8rem;

  background-color: #b17d3d;
}


/* Listas */

.categories-list,
.recent-posts-list {
  list-style: none;

  margin: 0;
  padding: 0;
}

.categories-list li,
.recent-posts-list li {
  margin: 0;

  padding: 0.72rem 0;

  border-bottom: 1px solid rgba(78, 64, 53, 0.08);
}

.categories-list li:last-child,
.recent-posts-list li:last-child {
  border-bottom: none;
}

.categories-list a,
.recent-posts-list a {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 300;

  line-height: 1.55;

  color: #544c45;

  text-decoration: none;

  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
}

.categories-list a:hover,
.recent-posts-list a:hover {
  padding-left: 4px;

  color: #9c692f;

  text-decoration: none;
}



/*==================================================
  8. RESULTADOS DE BÚSQUEDA
==================================================*/

.search-results {
  width: 100%;
}

.search-results h2 {
  margin: 0 0 2.5rem;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 500;

  color: #2d2925;

  text-align: left;
}

.search-results__item {
  margin-bottom: 1.5rem;

  padding: 1.8rem 2rem;

  background-color: #fbf8f4;

  border-left: 2px solid #b17d3d;

  box-shadow:
    0 8px 25px rgba(63, 48, 36, 0.05);
}

.search-results__item h4 {
  margin: 0 0 0.7rem;
}

.search-results__item h4 a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;

  color: #302b27;

  text-decoration: none;

  transition: color 0.3s ease;
}

.search-results__item h4 a:hover {
  color: #a46f32;

  text-decoration: none;
}

.search-results__item p {
  margin: 0.5rem 0 0;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;

  line-height: 1.75;

  color: #5b534c;
}


/* Botón volver */

.back-to-articles-button {
  display: block;

  margin: 3rem auto 0;

  min-width: 210px;

  padding: 1rem 2rem;

  background-color: #b17d3d;

  border: none;
  border-radius: 2px;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;

  letter-spacing: 0.08em;

  color: #ffffff;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.back-to-articles-button:hover {
  background-color: #95652f;

  transform: translateY(-2px);
}



/*==================================================
  9. ARTÍCULOS INDIVIDUALES
==================================================*/

.article__image {
  display: block;

  max-width: 100%;
  height: auto;

  margin: 0 auto 2rem;
}


/* Imagen flotante izquierda */

.article__float-left {
  float: left;

  width: min(42%, 350px);
  height: auto;

  margin: 0.4rem 2rem 1.3rem 0;

  box-shadow:
    0 8px 25px rgba(63, 48, 36, 0.07);
}


/* Imagen centrada */

.article__float-center {
  display: block;

  width: 100%;
  max-width: 750px;
  height: auto;

  margin: 2rem auto;

  box-shadow:
    0 8px 25px rgba(63, 48, 36, 0.07);
}


/* Limpieza de floats */

.blog-card__excerpt::after {
  content: "";

  display: table;

  clear: both;
}


/* Párrafos de artículo */

.blog-card__excerpt p {
  margin: 0 0 1.3rem;

  font-family: "Inter", Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 300;

  line-height: 1.85;

  color: #4e4741;

  text-align: left;
}


/* Subtítulos */

.blog-card__excerpt h2,
.blog-card__excerpt h3 {
  margin: 2.5rem 0 1rem;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;

  color: #302b27;
}

.blog-card__excerpt h2 {
  font-size: 2.2rem;
}

.blog-card__excerpt h3 {
  font-size: 1.75rem;
}

.blog-card__excerpt strong {
  font-weight: 500;

  color: #39332e;
}

/*==================================================
  10. PANTALLAS MUY GRANDES - 4K
==================================================*/

@media screen and (min-width: 2200px) {

  /*==================================================
    HERO
  ==================================================*/

  .jumbotron {
    height: 1250px;
  }

  .jumbotron__image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: left 80%;
  }

  .jumbotron__title {
    top: 55%;

    width: 90%;
    max-width: 2200px;

    font-size: 15rem;
    line-height: 1;
  }


  /*==================================================
    CONTENIDO GENERAL
  ==================================================*/

  .blog-content {
    padding: 10rem 4rem 12rem;
  }

  .blog-content__container {
    width: 92%;
    max-width: 3400px;

    margin: 0 auto;

    gap: 6rem;
  }

  .blog-main {
    flex: 1 1 auto;
    min-width: 0;
  }


  /*==================================================
    GRID DE ARTÍCULOS
  ==================================================*/

  .blog-articles {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 5rem 3.5rem;
  }

  /*==================================================
    TARJETAS
  ==================================================*/

  .blog-card__image-wrapper {
    height: 530px;
  }

  .blog-card__content {
    padding: 3rem 3rem 3.2rem;
  }

  .blog-card__title {
    margin: 0.3rem 0 1.3rem;

    font-size: 4.2rem;
    line-height: 1.08;
  }

  .blog-card__meta {
    margin: 0.8rem 0 2rem;

    font-size: 1.8rem;
    line-height: 1.5;
  }

  .blog-card__excerpt {
    margin-bottom: 1.5rem;

    font-size: 2.55rem;
    line-height: 1.75;
  }

  .blog-card__read-more {
    padding-top: 1.8rem;

    font-size: 2.25rem;
  }

  .blog-card__actions {
    margin-top: 1.8rem;
    padding-top: 1.4rem;
  }

  .blog-card__like-button {
    gap: 0.7rem;

    font-size: 2.2rem;
  }

  .blog-card__like-button .fa-heart {
    font-size: 2.45rem;
  }

  /*==================================================
    imágenes
  ==================================================*/
.blog-article-single .article__image {
  height: auto;
}

.blog-article-single .article__float-center {
  width: 100%;
  max-width: 1800px;
}

.blog-article-single .article__float-left {
  width: min(50%, 900px);
  max-width: 900px;
}

  /*==================================================
    SIDEBAR
  ==================================================*/

  .blog-sidebar {
    flex: 0 0 800px;

    padding: 4rem 3.5rem;
  }


  /*==================================================
    BUSCADOR
  ==================================================*/

  .search-bar {
    margin-bottom: 4.5rem;
  }

  .search-bar input {
    padding: 1.4rem 0.6rem;

    font-size: 3.2rem;
  }

  .search-bar button {
    padding: 1.2rem 1rem;

    font-size: 3.2rem;
  }


  /*==================================================
    SECCIONES SIDEBAR
  ==================================================*/

  .sidebar-section {
    margin-bottom: 4.5rem;
  }

  .sidebar-section h3 {
    margin-bottom: 2.3rem;
    padding-bottom: 1rem;

    font-size: 4.8rem;
    line-height: 1.1;
  }

  .sidebar-section h3::after {
    width: 55px;
    height: 2px;

    margin-top: 1rem;
  }

  .categories-list li,
  .recent-posts-list li {
    padding: 1.25rem 0;
  }

  .categories-list a,
  .recent-posts-list a {
    font-size: 2.6rem;
    line-height: 1.6;
  }

  /*==================================================
    RESULTADOS DE BÚSQUEDA
  ==================================================*/

  .search-results h2 {
    margin-bottom: 3.5rem;

    font-size: 4rem;
  }

  .search-results__item {
    margin-bottom: 2rem;

    padding: 2.8rem 3rem;
  }

  .search-results__item h4 a {
    font-size: 2.6rem;
  }

  .search-results__item p {
    font-size: 1.5rem;
    line-height: 1.75;
  }

  .back-to-articles-button {
    min-width: 330px;

    margin-top: 4rem;
    padding: 1.5rem 2.8rem;

    font-size: 1.25rem;
  }

  /*==================================================
    ARTÍCULOS INDIVIDUALES
  ==================================================*/

  .blog-card__excerpt p {
    margin-bottom: 2rem;

    font-size: 3rem;
    line-height: 1.85;
  }

  .blog-card__excerpt h2 {
    margin-top: 3.5rem;

    font-size: 4.5rem;
  }

  .blog-card__excerpt h3 {
    margin-top: 3rem;

    font-size: 4.5rem;
  }

  .article__float-left {
    width: min(42%, 600px);

    margin: 0.6rem 3rem 2rem 0;
  }

  .article__float-center {
    max-width: 1200px;

    margin: 3rem auto;
  }
}
/*==================================================
  10. TABLET — HASTA 900px
==================================================*/

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

  /*==================================================
    HERO
  ==================================================*/

  .jumbotron {
    height: 420px;
  }

  .jumbotron__title {
    width: 92%;

    font-size: clamp(3.5rem, 7vw, 5rem);
  }


  /*==================================================
    CONTENIDO GENERAL
  ==================================================*/

  .blog-content {
    padding:
      5.5rem
      clamp(1.5rem, 4vw, 3rem)
      6rem;
  }

  .blog-content__container {
    flex-direction: column;

    gap: 4rem;
  }


  /*==================================================
    COLUMNA PRINCIPAL
  ==================================================*/

  .blog-main {
    width: 100%;
  }


  /*==================================================
    GRID DE ARTÍCULOS
  ==================================================*/

  .blog-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 2.5rem 2rem;
  }


  /*==================================================
    TARJETAS
  ==================================================*/

  .blog-card__image-wrapper {
    height: 260px;
  }

  .blog-card__content {
    padding: 1.8rem;
  }

  .blog-card__title {
    font-size: 1.9rem;
  }


  /*==================================================
    SIDEBAR
  ==================================================*/

  .blog-sidebar {
    width: 100%;

    flex: none;

    padding: 2.5rem;
  }


  /*==================================================
    ARTÍCULOS INDIVIDUALES
  ==================================================*/

  .article__float-left {
    float: none;

    display: block;

    width: 100%;
    max-width: 100%;

    margin: 1.5rem auto 2rem;
  }

  .article__float-center {
    max-width: 100%;
  }

}


/*==================================================
  11. MÓVIL PEQUEÑO — HASTA 520px
==================================================*/

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

/*==================================================
  HERO — MÓVIL
==================================================*/

.jumbotron {
  height: 450px;
  background-color: #f7f1eb;
}

.jumbotron__image-container {
  top: 0;
  bottom: auto;

  width: 100%;
  height: 100%;

  overflow: hidden;
}

.jumbotron__image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 75% bottom;
}

/* Sin fade */
.jumbotron__overlay {
  display: none;
}

.jumbotron__title {
  top: 38%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 92%;

  margin-top: 50px;

  font-size: 3rem;
  line-height: 1;
  text-align: center;
}


  /*==================================================
    CONTENIDO GENERAL
  ==================================================*/

  .blog-content {
    padding: 3.5rem 1rem 4rem;
  }

  .blog-content__container {
    gap: 3rem;
  }


  /*==================================================
    GRID DE ARTÍCULOS
  ==================================================*/

  .blog-articles {
    grid-template-columns: 1fr;

    gap: 2rem;
  }


  /*==================================================
    TARJETAS
  ==================================================*/

  .blog-card {
    width: 100%;
    max-width: 620px;

    margin: 0 auto;
  }

  .blog-card__image-wrapper {
    height: 220px;
  }

  .blog-card__content {
    padding: 1.6rem 1.4rem;
  }

  .blog-card__title {
    font-size: 1.75rem;
  }

  .blog-card__meta {
    font-size: 0.66rem;
  }

  .blog-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .blog-card__read-more {
    font-size: 0.72rem;
  }


  /*==================================================
    SIDEBAR
  ==================================================*/

  .blog-sidebar {
    padding: 1.7rem 1.4rem;
  }

  .sidebar-section h3 {
    font-size: 1.6rem;
  }


  /*==================================================
    BUSCADOR
  ==================================================*/

  .search-bar input {
    font-size: 0.8rem;
  }


  /*==================================================
    RESULTADOS DE BÚSQUEDA
  ==================================================*/

  .search-results h2 {
    font-size: 2.2rem;
  }

  .search-results__item {
    padding: 1.4rem;
  }

  .search-results__item h4 a {
    font-size: 1.5rem;
  }


  /*==================================================
    ARTÍCULOS INDIVIDUALES
  ==================================================*/

  .article__float-left {
    float: none;

    display: block;

    width: 100%;
    max-width: 100%;

    margin: 1.5rem auto 2rem;
  }

  .article__float-center {
    width: 100%;
    max-width: 100%;

    margin: 2rem auto;
  }

  .blog-card__excerpt h2 {
    font-size: 1.9rem;
  }

  .blog-card__excerpt h3 {
    font-size: 1.55rem;
  }

}