/* Rediseño de la página general de ediciones */
.ediciones-hero {
  min-height: 560px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(105deg, rgba(5, 44, 53, .92), rgba(5, 44, 53, .58) 55%, rgba(111, 24, 29, .58)),
    url("../img/ediciones/2024.jpg") center 38% / cover;
}

.ediciones-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(to top, rgba(0, 0, 0, .36), transparent);
  pointer-events: none;
}

.ediciones-hero .page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.ediciones-hero .page-hero-content > span {
  color: #122126;
  background: #ffd51e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.ediciones-hero .page-hero-content h1 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -2px;
}

.ediciones-hero .page-hero-content p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(17px, 2vw, 20px);
}

.editions-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.editions-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 800 13px/1.2 "Montserrat", sans-serif;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.editions-hero-actions a:hover { transform: translateY(-2px); }

.editions-hero-primary {
  color: #fff;
  background: #9f2629;
  box-shadow: 0 10px 26px rgba(73, 9, 13, .3);
}

.editions-hero-primary:hover { background: #7d1f24; }

.editions-hero-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.editions-stats {
  margin-top: -64px;
  margin-bottom: 72px;
  gap: 16px;
}

.edition-stat {
  position: relative;
  min-height: 176px;
  padding: 30px 18px 25px;
  overflow: hidden;
  border: 1px solid rgba(11, 102, 119, .09);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(18, 35, 41, .13);
  transition: transform .25s ease, box-shadow .25s ease;
}

.edition-stat::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 213, 30, .14);
}

.edition-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(18, 35, 41, .17);
}

.edition-stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 9px;
  border-radius: 50%;
  color: #0b6677;
  background: #e8f4f6;
  font-size: 15px;
}

.edition-stat h3 {
  margin-bottom: 5px;
  color: #9f2629;
  font-size: clamp(34px, 4vw, 43px);
}

.edition-stat p {
  max-width: 190px;
  margin: 0 auto;
  line-height: 1.4;
}

.current-edition-section {
  padding: 10px 20px 96px;
}

.current-edition-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background: #073f4a;
  box-shadow: 0 28px 65px rgba(7, 63, 74, .22);
}

.current-edition-image {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.current-edition-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(7, 63, 74, .76));
  pointer-events: none;
}

.current-edition-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}

.current-edition-card:hover .current-edition-image img { transform: scale(1.035); }

.current-edition-status {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(159, 38, 41, .94);
  font: 800 12px/1 "Montserrat", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.current-edition-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd51e;
  box-shadow: 0 0 0 5px rgba(255, 213, 30, .16);
}

.current-edition-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 52px 48px 50px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 213, 30, .13), transparent 31%),
    #073f4a;
}

.current-edition-kicker {
  margin-bottom: 19px;
  color: #ffd51e;
  font: 800 12px/1.2 "Montserrat", sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.current-edition-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 22px;
}

.current-edition-date {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, .25);
}

.current-edition-date strong {
  color: #ffd51e;
  font: 800 50px/.9 "Montserrat", sans-serif;
}

.current-edition-date span {
  color: rgba(255, 255, 255, .74);
  font: 800 12px/1.25 "Montserrat", sans-serif;
}

.current-edition-heading h2 {
  margin: -4px 0 12px;
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.14;
}

.current-edition-heading p {
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.65;
}

.current-edition-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.current-edition-categories span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  font-weight: 700;
}

.current-edition-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 11px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ffd51e;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.current-edition-link span { transition: transform .2s ease; }
.current-edition-link:hover span { transform: translateX(4px); }

.editions-section {
  max-width: none;
  padding: 94px 20px 110px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 213, 30, .09), transparent 23%),
    linear-gradient(180deg, #f7f4ee, #fff 35%, #f7f4ee);
}

.editions-section > .section-heading,
.editions-section > .edition-row {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.editions-section > .section-heading { margin-bottom: 55px; }

.edition-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 34px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid rgba(9, 63, 73, .08);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(26, 38, 44, .09);
  transition: transform .25s ease, box-shadow .25s ease;
}

.edition-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(26, 38, 44, .14);
}

.edition-row .edition-image {
  position: relative;
  min-height: 350px;
  border-radius: 0;
  box-shadow: none;
}

.edition-row .edition-image::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(0, 0, 0, .08));
  pointer-events: none;
}

.edition-row .edition-image img {
  height: 100%;
  min-height: 350px;
}

.edition-row .edition-text {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 48px 52px;
}

.edition-row.reverse .edition-image { order: 1; }
.edition-row.reverse .edition-text { order: 2; }

.edition-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.edition-text .edition-meta span,
.edition-text .edition-year,
.edition-text .edition-badge {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font: 800 12px/1 "Montserrat", sans-serif;
}

.edition-text .edition-year {
  color: #0b6677;
  background: #e8f4f6;
  letter-spacing: .5px;
}

.edition-text .edition-badge.special {
  color: #fff;
  background: #9f2629;
  box-shadow: none;
}

.edition-row-special .edition-text .edition-badge.special {
  background: #6b347c;
}

.edition-row .edition-text h3 {
  margin-bottom: 14px;
  color: #0b6677;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.18;
}

.edition-row .edition-text p {
  margin-bottom: 24px;
  color: #65737a;
  font-size: 16px;
  line-height: 1.72;
}

.edition-row .edition-text > a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 12px 19px;
  background: #0b6677;
  font-size: 13px;
}

.edition-row .edition-text > a:hover { background: #084e5b; }

.edition-row .edition-text > a span {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  transition: transform .2s ease;
}

.edition-row .edition-text > a:hover span { transform: translateX(3px); }

@media (max-width: 900px) {
  .ediciones-hero { min-height: 520px; }

  .editions-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -42px;
    margin-bottom: 60px;
  }

  .current-edition-card { grid-template-columns: 1fr; }
  .current-edition-image { min-height: 390px; }
  .current-edition-image::after { background: linear-gradient(0deg, rgba(7, 63, 74, .7), transparent 45%); }

  .edition-row,
  .edition-row.reverse {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .edition-row .edition-image,
  .edition-row.reverse .edition-image { order: 1; }

  .edition-row .edition-text,
  .edition-row.reverse .edition-text { order: 2; }
}

@media (max-width: 600px) {
  .ediciones-hero {
    min-height: 535px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .ediciones-hero .page-hero-content h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .editions-hero-actions { align-items: stretch; flex-direction: column; }
  .editions-hero-actions a { width: 100%; }

  .editions-stats {
    margin-top: -30px;
    padding: 0 14px;
    gap: 10px;
  }

  .edition-stat {
    min-height: 148px;
    padding: 21px 10px 18px;
    border-radius: 20px;
  }

  .edition-stat-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
  }

  .edition-stat h3 { font-size: 31px; }
  .edition-stat p { font-size: 13px; }

  .current-edition-section { padding: 0 14px 68px; }
  .current-edition-card { border-radius: 25px; }
  .current-edition-image { min-height: 310px; }

  .current-edition-status {
    top: 16px;
    left: 16px;
  }

  .current-edition-content { padding: 32px 22px 34px; }

  .current-edition-heading {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .current-edition-date {
    width: fit-content;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
  }

  .current-edition-date strong { font-size: 43px; }
  .current-edition-heading h2 { font-size: 28px; }

  .editions-section { padding: 68px 14px 78px; }
  .editions-section > .section-heading { margin-bottom: 38px; }

  .edition-row {
    margin-top: 22px;
    margin-bottom: 22px;
    border-radius: 23px;
  }

  .edition-row .edition-image,
  .edition-row .edition-image img {
    min-height: 235px;
    height: 235px;
  }

  .edition-row .edition-text { padding: 29px 23px 31px; }
  .edition-row .edition-text h3 { font-size: 25px; }
  .edition-row .edition-text p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .edition-stat,
  .edition-row,
  .edition-image img,
  .current-edition-image img { transition: none; }
}
