/* =========================================================
   BLOG LISTADO - BASE
========================================================= */

.vall-blog-listado-page {
  background-color: #ffffff;
  color: var(--color-text, #212529);
  font-family: var(--font-primary, "Roboto", sans-serif);

  --blog-yellow: var(--color-yellow, #fdc82f);
  --blog-yellow-alt: #edbf3c;
  --blog-muted: rgba(0, 0, 0, 0.58);
  --blog-soft: #eceeee;
  --blog-soft-light: #f7f8f8;
  --blog-border: rgba(0, 0, 0, 0.12);
  --blog-ease: 0.3s ease-in-out;
}

.vall-blog-listado-page a {
  color: inherit;
  text-decoration: none;
}

.vall-blog-listado-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   HERO / INTRO - EDITORIAL
========================================================= */

.vall-blog-listado-hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  background-color: #eceeee;
  overflow: hidden;
}

.vall-blog-listado-hero::before {
  content: "PUBLICATIONS";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: clamp(4.8rem, 7vw, 9rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vall-blog-listado-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 104rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
  gap: 3rem;
  align-items: end;
}

.vall-blog-listado-hero__kicker {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  background-color: var(--blog-yellow);
  color: #000000;
  font-size: 1.1rem;
}

.vall-blog-listado-hero__title {
  margin: 0;
  color: #000000;
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.vall-blog-listado-hero__text {
  position: relative;
  margin: 0;
  padding: 1.6rem 0 0 2rem;
  color: #000000;
  font-size: 1.5rem;
  line-height: 2.5rem;
  font-weight: 400;
}

.vall-blog-listado-hero__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.35rem;
  height: calc(100% - 0.5rem);
  background-color: var(--blog-yellow);
}

/* =========================================================
   LISTADO
========================================================= */

.vall-blog-listado {
  padding: 6rem 0 7rem;
  background-color: #ffffff;
}

.vall-blog-listado__grid {
  width: min(100%, 112rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* =========================================================
   CARD BASE
========================================================= */

.vall-blog-listado-card {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.vall-blog-listado-card__link {
  color: #000000;
}

.vall-blog-listado-card__media {
  margin: 0;
  overflow: hidden;
  background-color: #ffffff;
}

.vall-blog-listado-card__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transition: transform var(--blog-ease);
}

.vall-blog-listado-card__content {
  background-color: #ffffff;
}

.vall-blog-listado-card__meta {
  margin: 0 0 1.2rem;
  color: var(--blog-muted);
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.vall-blog-listado-card__meta span {
  margin: 0 0.6rem;
}

.vall-blog-listado-card__title {
  margin: 0;
  color: #000000;
  font-size: 2.4rem;
  line-height: 1.16;
  font-weight: 600;
}

.vall-blog-listado-card__excerpt {
  margin: 1.6rem 0 0;
  color: var(--color-text, #212529);
  font-size: 1.6rem;
  line-height: 2.6rem;
}

/* =========================================================
   FIRST CARD - FEATURED STYLE
   Se mantiene como bloque destacado
========================================================= */

.vall-blog-listado-card:first-child {
  margin-bottom: 5rem;
  background-color: var(--blog-yellow);
}

.vall-blog-listado-card:first-child .vall-blog-listado-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 36rem;
}

.vall-blog-listado-card:first-child .vall-blog-listado-card__media {
  background-color: #ffffff;
}

.vall-blog-listado-card:first-child .vall-blog-listado-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.vall-blog-listado-card:first-child .vall-blog-listado-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  background-color: var(--blog-yellow);
}

.vall-blog-listado-card:first-child .vall-blog-listado-card__meta {
  color: #000000;
}

.vall-blog-listado-card:first-child .vall-blog-listado-card__title {
  font-size: 3.4rem;
  line-height: 1.12;
  font-weight: 700;
}

.vall-blog-listado-card:first-child .vall-blog-listado-card__excerpt {
  color: #000000;
  font-size: 1.8rem;
  line-height: 2.8rem;
}

/* =========================================================
   REST OF POSTS - EDITORIAL INDEX
========================================================= */

.vall-blog-listado-card:not(:first-child) {
  border-top: 1px solid var(--blog-border);
}

.vall-blog-listado-card:not(:first-child):last-of-type {
  border-bottom: 1px solid var(--blog-border);
}

.vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__link {
  position: relative;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 25rem;
  gap: 3rem;
  align-items: center;
  min-height: 22rem;
  padding: 2.8rem 0;
}

.vall-blog-listado-card__side-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: rgba(0, 0, 0, 0.22);
  line-height: 1;
}

.vall-blog-listado-card__side-date-day {
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 0.9;
}

.vall-blog-listado-card__side-date-month {
  margin-top: 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vall-blog-listado-card__side-date-year {
  margin-top: 0.35rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__media {
  order: 3;
  width: 100%;
  background-color: #ffffff;
}

.vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__content {
  order: 2;
  padding: 0;
  background-color: transparent;
}

.vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__meta {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__title {
  max-width: 68rem;
  font-size: 2.65rem;
  line-height: 1.12;
  font-weight: 700;
  transition: color var(--blog-ease);
}

.vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__excerpt {
  max-width: 64rem;
  margin-top: 1.2rem;
  font-size: 1.55rem;
  line-height: 2.5rem;
}

.vall-blog-listado-card:not(:first-child)
  .vall-blog-listado-card__content::after {
  content: "Lire l’article";
  display: inline-flex;
  margin-top: 1.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 0.3rem solid var(--blog-yellow);
  color: #000000;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.vall-blog-listado-card:not(:first-child):hover .vall-blog-listado-card__title {
  color: rgba(0, 0, 0, 0.58);
}

.vall-blog-listado-card:not(:first-child):hover .vall-blog-listado-card__image {
  transform: scale(1.03);
}

/* =========================================================
   PAGINATION
========================================================= */

.vall-blog-listado-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 5rem;
}

.vall-blog-listado-pagination .page-numbers {
  min-width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border: 1px solid var(--blog-border);
  background-color: #ffffff;
  color: #000000;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  transition:
    background-color var(--blog-ease),
    border-color var(--blog-ease),
    color var(--blog-ease);
}

.vall-blog-listado-pagination .page-numbers.current,
.vall-blog-listado-pagination .page-numbers:hover {
  border-color: var(--blog-yellow);
  background-color: var(--blog-yellow);
  color: #000000;
}

/* =========================================================
   EMPTY
========================================================= */

.vall-blog-listado-empty {
  padding: 4rem;
  background-color: #ffffff;
  text-align: center;
}

.vall-blog-listado-empty p {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.5;
}

/* =========================================================
   AUTHOR ARCHIVE
========================================================= */

.vall-author-page .vall-blog-listado-hero::before {
  content: "AUTEUR";
}

.vall-author-hero__inner {
  grid-template-columns: minmax(24rem, 30rem) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.vall-author-hero__media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.vall-author-hero__content {
  display: grid;
  justify-items: start;
}

.vall-author-hero__banner {
  width: min(30rem, 100%);
  margin: 0;
  padding: 0.9rem 1.1rem;
  background-color: #ffffff;
  border-left: 0.35rem solid var(--blog-yellow);
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.08);
}

.vall-author-hero__badge {
  width: fit-content;
  margin: 0;
  padding: 1.1rem 1.8rem;
  background-color: #ffffff;
  border-left: 0.35rem solid var(--blog-yellow);
  color: #000000;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.vall-author-hero .vall-blog-listado-hero__text {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 0;
}

.vall-author-hero .vall-blog-listado-hero__text p {
  margin: 0;
}

.vall-author-hero .vall-blog-listado-hero__text::before {
  display: none;
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 978px) {
  .vall-blog-listado-hero {
    padding: 6rem 0 4rem;
  }

  .vall-blog-listado-hero__inner {
    width: 100%;
    padding: 0 3rem;
    grid-template-columns: 1fr;
    gap: 2.4rem;
    text-align: center;
  }

  .vall-blog-listado-hero__kicker {
    margin-left: auto;
    margin-right: auto;
    font-size: 2rem;
  }

  .vall-author-hero__banner,
  .vall-author-hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .vall-author-hero__media {
    justify-content: center;
  }

  .vall-author-hero__content {
    justify-items: center;
  }

  .vall-author-hero__banner {
    width: min(30rem, 70vw);
  }

  .vall-author-hero .vall-blog-listado-hero__text {
    padding: 2rem 3rem 0;
    text-align: center;
  }

  .vall-author-hero .vall-blog-listado-hero__text::before {
    display: block;
  }

  .vall-blog-listado-hero__title {
    font-size: 4.4rem;
  }

  .vall-blog-listado-hero__text {
    padding: 2rem 3rem 0;
    font-size: 2rem;
    line-height: 3.4rem;
  }

  .vall-blog-listado-hero__text::before {
    left: 50%;
    width: 7rem;
    height: 0.4rem;
    transform: translateX(-50%);
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__link {
    grid-template-columns: 1fr;
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__image {
    height: auto;
    object-fit: contain;
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__content {
    padding: 3rem;
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__title {
    font-size: 3.4rem;
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__excerpt {
    font-size: 2rem;
    line-height: 3.2rem;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__link {
    grid-template-columns: 8rem minmax(0, 1fr) 20rem;
    gap: 2.2rem;
    min-height: 20rem;
  }

  .vall-blog-listado-card__side-date-day {
    font-size: 4.4rem;
  }

  .vall-blog-listado-card__side-date-month,
  .vall-blog-listado-card__side-date-year {
    font-size: 1.25rem;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__meta {
    font-size: 1.45rem;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__title {
    font-size: 2.6rem;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__excerpt {
    font-size: 1.9rem;
    line-height: 3rem;
  }

  .vall-blog-listado-pagination .page-numbers {
    min-width: 4.8rem;
    height: 4.8rem;
    font-size: 1.7rem;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {
  .vall-blog-listado-hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
  }

  .vall-blog-listado-hero::before {
    font-size: 5.8rem;
    top: 42%;
  }

  .vall-blog-listado-hero__inner {
    width: 100%;
    padding: 0 1.8rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vall-blog-listado-hero__kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .vall-author-hero__banner,
  .vall-author-hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .vall-author-hero__media {
    justify-content: center;
  }

  .vall-author-hero__content {
    justify-items: center;
  }

  .vall-author-hero__banner {
    width: min(24rem, 70vw);
  }

  .vall-author-hero .vall-blog-listado-hero__text {
    padding: 1.8rem 0 0;
    text-align: center;
  }

  .vall-author-hero .vall-blog-listado-hero__text::before {
    display: block;
  }

  .vall-blog-listado-hero__title {
    font-size: 3.3rem;
    line-height: 1.05;
  }

  .vall-blog-listado-hero__text {
    padding: 1.8rem 0 0;
    font-size: 1.85rem;
    line-height: 3rem;
  }

  .vall-blog-listado-hero__text::before {
    left: 50%;
    width: 6rem;
    height: 0.35rem;
    transform: translateX(-50%);
  }

  .vall-blog-listado {
    padding: 4rem 0 5rem;
    background-color: #ffffff;
  }

  .vall-blog-listado-card:first-child {
    margin-bottom: 3rem;
    text-align: center;
    background-color: #ffffff;
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__link {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__content {
    padding: 2rem;
    background-color: #ffffff;
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__meta {
    color: var(--blog-muted);
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__title {
    font-size: 2.5rem;
    text-align: center;
  }

  .vall-blog-listado-card:first-child .vall-blog-listado-card__excerpt {
    color: var(--color-text, #212529);
    font-size: 1.75rem;
    line-height: 2.8rem;
    text-align: center;
  }

  .vall-blog-listado-card:not(:first-child) {
    border-top: 1px solid var(--blog-border);
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__link {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 2.6rem 0;
    text-align: center;
  }

  .vall-blog-listado-card__side-date {
    align-items: center;
    margin-bottom: 1.6rem;
  }

  .vall-blog-listado-card__side-date-day {
    font-size: 4rem;
  }

  .vall-blog-listado-card__side-date-month,
  .vall-blog-listado-card__side-date-year {
    font-size: 1.25rem;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__media {
    order: 1;
    width: 100%;
    margin-bottom: 2rem;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__content {
    order: 2;
    padding: 0 1.8rem;
    text-align: center;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__meta {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.35rem;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__title {
    max-width: 100%;
    font-size: 2.35rem;
    text-align: center;
  }

  .vall-blog-listado-card:not(:first-child) .vall-blog-listado-card__excerpt {
    max-width: 100%;
    font-size: 1.75rem;
    line-height: 2.8rem;
    text-align: center;
  }

  .vall-blog-listado-card:not(:first-child)
    .vall-blog-listado-card__content::after {
    margin-left: auto;
    margin-right: auto;
  }

  .vall-blog-listado-card:hover,
  .vall-blog-listado-card:hover .vall-blog-listado-card__image {
    transform: none;
    box-shadow: none;
  }

  .vall-blog-listado-pagination {
    margin-top: 4rem;
  }

  .vall-blog-listado-pagination .page-numbers {
    min-width: 4.4rem;
    height: 4.4rem;
    font-size: 1.55rem;
  }
}
