@font-face {
  font-family: "Poppins";
  src: url("poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

main.magazine {
  --story-gutter: 8px;
  --edition-orange: #f7ac1a;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 40px auto 0;
  padding: 0;
  border: 4px solid var(--edition-orange);
  border-bottom: 0;
  background: #fff;
}

.edition-masthead {
  position: relative;
  height: 57px;
  margin-bottom: 4px;
}

.edition-wordmark {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 125px;
  color: #000;
  transform: translateX(-50%);
}

/* 2026-12-01: el mes hereda el azul de main.magazine a; en el masthead va en negro. */
main.magazine .edition-wordmark,
main.magazine .edition-wordmark span {
  color: #000;
}

.edition-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.edition-wordmark span {
  position: absolute;
  top: -3px;
  left: 60px;
  font: 700 8px / 1.4 "Poppins", "Open Sans", sans-serif;
  white-space: nowrap;
}

.edition-cover {
  position: relative;
}

.edition-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #151411;
}

.edition-visual > video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edition-visual::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 35%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, rgb(0 0 0 / 69%), transparent);
}

.edition-credit {
  height: 33px;
  margin: 0;
  padding-block-start: 5px;
  padding-inline: var(--story-gutter);
  color: #212121;
  font: 400 13px / 14px "Open Sans", Arial, sans-serif;
  text-align: right;
}

.edition-metadata {
  padding: 0 var(--story-gutter);
  color: #212121;
}

.edition-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding-block: 1px;
  font: 400 11px / 1.5 "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
}

.edition-format,
.edition-topic {
  padding: 1px 2px;
}

.edition-format {
  color: #000;
  background: #feb42e;
}

.edition-topic {
  color: #594018;
  background: #ffd69f;
}

.edition-metadata h1 {
  margin: 0 0 8px;
  padding: 0;
  color: inherit;
  font: 400 26px / 1.2 "Merriweather", Georgia, serif;
  letter-spacing: -.5px;
  text-wrap: initial;
}

.edition-metadata time,
.edition-signature {
  display: block;
  margin: 0;
  color: #505050;
  font: 400 16px / 1.35 "Open Sans", Arial, sans-serif;
}

.edition-metadata time {
  padding-top: 4px;
}

.edition-signature {
  color: #000;
}

.edition-share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 50px;
  padding-inline: var(--story-gutter);
}

.edition-share a {
  display: grid;
  flex: 0 0 50px;
  height: 50px;
  margin-right: -12px;
  border-radius: 50%;
  place-items: center;
}

.edition-share a:hover {
  background: #f0f0f0;
}

.edition-share img {
  width: 27px;
  height: 27px;
  border-radius: 50%;
}

.edition-share-whatsapp img { background: #00cc00; }
.edition-share-facebook img { background: #1877f2; }
.edition-share-twitter img { background: #1da1f2; }

.edition-support {
  display: grid;
  width: calc(100% - 2 * var(--story-gutter));
  margin: 24px auto 0;
  border: 1px solid #d0d0d0;
  background: var(--edition-orange);
  color: #000;
  font-family: "Open Sans", Arial, sans-serif;
}

.edition-support-copy {
  min-width: 0;
  padding: 8px 16px;
}

.edition-support h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  line-height: 20px;
}

.edition-support p {
  margin: 0;
  color: #303030;
  font-size: 16px;
  line-height: 20px;
}

.edition-support strong {
  font-style: italic;
}

.edition-support-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
}

.edition-support a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 99px;
  padding: 12px 20px;
  background: #ea580c;
  color: #fff;
  font-size: 14.336px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.edition-support a span {
  width: 20px;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.edition-support a:hover {
  background: #c2410c;
}

@media (min-width: 576px) {
  .edition-masthead {
    height: 73px;
    margin-bottom: 16px;
  }

  .edition-wordmark {
    width: 180px;
  }

  .edition-wordmark span {
    top: -5px;
    left: 88px;
    font-size: 11px;
  }
}

@media (min-width: 767px) {
  .edition-support a {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  main.magazine {
    --story-gutter: 16px;
    max-width: 768px;
    border-width: 8px;
    border-bottom: 0;
  }

  .edition-masthead {
    height: 109px;
  }

  .edition-wordmark {
    top: 20px;
    width: 300px;
  }

  .edition-wordmark span {
    top: -8px;
    left: 136px;
    font-size: 18px;
  }

  .edition-visual::after {
    display: none;
  }

  .edition-credit {
    position: absolute;
    inset: 100% 0 auto;
  }

  .edition-metadata {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    padding: 20px var(--story-gutter) 13px;
    background: linear-gradient(to top, rgb(0 0 0 / 69%) 0 70%, transparent 85%);
    color: #e7e7e7;
    pointer-events: none;
  }

  .edition-labels {
    font-size: 14px;
  }

  .edition-metadata time {
    padding-top: 0;
    color: #dcdcdc;
  }

  .edition-signature {
    color: #e7e7e7;
  }

  .edition-share {
    margin-top: 34px;
  }

  .edition-share a {
    margin-right: -10px;
  }

  .edition-share .edition-share-whatsapp {
    display: none;
  }

  .edition-share img {
    width: 30px;
    height: 30px;
  }

  .edition-support {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 992px) {
  main.magazine {
    max-width: 992px;
  }

  .edition-masthead {
    height: 132px;
  }

  .edition-wordmark {
    width: 380px;
  }

  .edition-wordmark span {
    top: -10px;
    left: 176px;
    font-size: 24px;
  }

  .edition-metadata h1 {
    font-size: 34px;
  }

}

@media (min-width: 1200px) {
  main.magazine {
    max-width: 1200px;
  }

  .edition-wordmark span {
    top: -12px;
  }
}
