/* ==========================================================
   GUMMA — BLOG
   Listado y fichas editoriales.
   Estructura compartida; contenido desde window.GUMMA.blog.
   ========================================================== */

.gm-blog {
  background: #fff;
  color: #041e41;
}

/* ----------------------------------------------------------
   LISTADO / HERO
   ---------------------------------------------------------- */

.gm-blog-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #041e41;
}

.gm-blog-hero__image,
.gm-blog-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gm-blog-hero__image {
  object-fit: cover;
}

.gm-blog-hero__overlay {
  background: rgba(2, 18, 45, .52);
}

.gm-blog-hero__content {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.gm-blog__eyebrow {
  margin: 0 0 24px;
  font-family: "Sora", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 2.4px;
}

.gm-blog-hero h1 {
  width: min(900px, 100%);
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -1.4px;
}

/* ----------------------------------------------------------
   LISTADO
   ---------------------------------------------------------- */

.gm-blog-index {
  padding: 88px 0 110px;
}

.gm-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px 28px;
}

.gm-blog-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.gm-blog-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.04;
  margin-bottom: 22px;
  background: #eee;
}

.gm-blog-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.gm-blog-card:hover .gm-blog-card__image {
  transform: scale(1.025);
}

.gm-blog-card__industry {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  font-family: "Sora", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.2px;
}

.gm-blog-card__marker {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.gm-blog-card__tags {
  min-height: 48px;
  margin: 0 0 10px;
  font-family: "Sora", Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
}

.gm-blog-card__date {
  display: block;
  margin-bottom: 17px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.gm-blog-card__title {
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.5px;
}

.gm-blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 78px;
}

.gm-blog-filter {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 7px 0;
  background: transparent;
  color: #041e41;
  cursor: pointer;
  font-family: "Sora", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .5px;
}

.gm-blog-filter:hover,
.gm-blog-filter[aria-pressed="true"] {
  border-bottom-color: currentColor;
}

/* ----------------------------------------------------------
   RELACIONADAS / CABECERA DE FICHA
   ---------------------------------------------------------- */

.gm-blog-related {
  padding: 58px 0 76px;
  background: #fff;
}

.gm-blog-related__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.gm-blog-related-card {
  color: inherit;
  text-decoration: none;
}

.gm-blog-related-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 13px;
  background: #eee;
}

.gm-blog-related-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gm-blog-related-card__date {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.gm-blog-related-card__title {
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

/* ----------------------------------------------------------
   ARTICULO
   ---------------------------------------------------------- */

.gm-article {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 46px 0 120px;
}

.gm-article__header {
  width: min(860px, 100%);
  margin: 0 auto 56px;
}

.gm-article__date {
  display: block;
  margin-bottom: 15px;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.gm-article__tags {
  margin-bottom: 23px;
  font-family: "Sora", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.gm-article h1 {
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.gm-article__media {
  margin: 0 0 60px;
}

.gm-article__media img {
  display: block;
  width: 100%;
  height: auto;
}

.gm-article__content {
  width: min(780px, 100%);
  margin: 0 auto 64px;
}

.gm-article__content h2 {
  margin: 0 0 34px;
  font-family: "Sora", Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.5px;
}

.gm-article__body p {
  margin: 0 0 25px;
  font-family: "Avenir Next", Avenir, Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.2px;
}

/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

  .gm-blog-hero,
  .gm-blog-hero__content {
    min-height: 440px;
  }

  .gm-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gm-blog-related__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {

  .gm-blog-hero,
  .gm-blog-hero__content {
    min-height: 430px;
  }

  .gm-blog-hero__content {
    width: calc(100% - 38px);
  }

  .gm-blog__eyebrow {
    margin-bottom: 20px;
  }

  .gm-blog-hero h1 {
    font-size: 30px;
    line-height: 1.18;
    letter-spacing: -.7px;
  }

  .gm-blog-index {
    padding: 54px 0 72px;
  }

  .gm-blog-index > .gm-container {
    width: calc(100% - 36px);
  }

  .gm-blog-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .gm-blog-card__media {
    aspect-ratio: 1.18 / 1;
  }

  .gm-blog-card__tags {
    min-height: 0;
    font-size: 18px;
  }

  .gm-blog-card__title {
    font-size: 23px;
  }

  .gm-blog-filters {
    justify-content: flex-start;
    gap: 10px 22px;
    margin-top: 58px;
  }

  .gm-blog-related {
    padding: 38px 0 48px;
    overflow: hidden;
  }

  .gm-blog-related > .gm-container {
    width: calc(100% - 36px);
  }

  .gm-blog-related__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gm-blog-related__track::-webkit-scrollbar {
    display: none;
  }

  .gm-blog-related-card {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .gm-article {
    width: calc(100% - 36px);
    padding: 28px 0 76px;
  }

  .gm-article__header {
    margin-bottom: 38px;
  }

  .gm-article h1 {
    font-size: 34px;
    line-height: 1.16;
    letter-spacing: -.8px;
  }

  .gm-article__media {
    margin-bottom: 42px;
  }

  .gm-article__content {
    margin-bottom: 46px;
  }

  .gm-article__content h2 {
    margin-bottom: 26px;
    font-size: 22px;
    line-height: 1.4;
  }

  .gm-article__body p {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.5;
  }
}
/* ==========================================================
   PARIDAD WIX BLOG - 2026-09-07
   ========================================================== */

@media (min-width: 901px) {

  /* LISTADO: HERO */

  .gm-blog-hero,
  .gm-blog-hero__content {
    min-height: 620px;
  }

  .gm-blog-hero__overlay {
    background: rgba(25, 28, 28, .38);
  }

  .gm-blog-hero__image {
    object-position: center center;
  }

  .gm-blog__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0 0 30px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 4px;
    background: rgba(255,255,255,.16);
    line-height: 1;
  }

  .gm-blog-hero h1 {
    width: min(930px, calc(100% - 60px));
    font-size: 48px;
    line-height: 1.18;
    letter-spacing: -1px;
  }


  /* LISTADO: FILTROS ARRIBA */

  .gm-blog-index {
    padding: 52px 0 110px;
  }

  .gm-blog-filters {
    justify-content: center;
    gap: 18px;
    margin: 0 0 72px;
  }

  .gm-blog-filter {
    border: 0;
    border-radius: 4px;
    padding: 14px 16px;
    background: #f5f5f5;
    color: #111;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
  }

  .gm-blog-filter:hover,
  .gm-blog-filter[aria-pressed="true"] {
    border: 0;
    background: #ececec;
  }


  /* ========================================================
     DETALLE: SIDEBAR + ARTICULO
     ======================================================== */

  .gm-blog--detail {
    display: grid;
    grid-template-columns:
      minmax(360px, 31%)
      minmax(0, 1fr);
    column-gap: 5.5%;
    align-items: start;
    padding: 52px 34px 0 46px;
    background: #f4f4f4;
  }

  .gm-blog--detail > .gm-blog-related {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    background: transparent;
  }

  .gm-blog--detail > .gm-article {
    grid-column: 2;
    grid-row: 1;
  }

  .gm-blog--detail > .gm-newsletter {
    grid-column: 1 / -1;
    margin-right: -34px;
    margin-left: -46px;
  }

  .gm-blog-related > .gm-container {
    width: 100%;
    max-width: none;
  }

  .gm-blog-related__track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gm-blog-related-card {
    display: block;
    min-height: 150px;
    padding: 24px 24px 22px;
    border-radius: 8px;
    background: #fff;
    color: #111;
  }

  .gm-blog-related-card__media {
    display: none;
  }

  .gm-blog-related-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin-bottom: 18px;
    padding: 0 14px;
    border-radius: 3px;
    background: var(--gm-related-color, #737e85);
    color: #fff;
    font-family: "Sora", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  .gm-blog-related-card__badge-marker {
    width: 7px;
    height: 7px;
    background: #fff;
  }

  .gm-blog-related-card__date {
    margin-bottom: 18px;
    color: #333;
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .gm-blog-related-card__title {
    margin: 0;
    color: #111;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
  }


  /* ARTICULO */

  .gm-article {
    width: 100%;
    margin: 0;
    padding: 0 0 120px;
  }

  .gm-article__header {
    width: 100%;
    margin: 0 0 36px;
  }

  .gm-article__date {
    margin-bottom: 28px;
    color: #333;
    font-size: 11px;
    text-transform: uppercase;
  }

  .gm-article__tags {
    display: inline-flex;
    margin: 0 0 28px;
    padding: 11px 13px;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
  }

  .gm-article h1 {
    color: #111;
    font-size: 40px;
    font-weight: 300;
    line-height: 1.16;
    letter-spacing: -.8px;
  }

  .gm-article__media {
    margin: 0 0 60px;
  }

  .gm-article__content {
    width: min(780px, 100%);
  }
}