/* ===== Ediciones anteriores ===== */
.section-editions {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0;
  background: var(
    --bg-section,
    radial-gradient(
      1200px 600px at 0% 0%,
      #232345 0%,
      #070813 60%,
      #040615 100%
    )
  );
  overflow: hidden;
}
/* imagen translúcida encima del degradado */
.section-editions .editions-bg {
  position: absolute;
  inset: 0;
  background: url("../../images/misc/fondo\ degradado.webp") center/cover
    no-repeat;
  opacity: 0.4; /* ajusta intensidad */
  filter: saturate(1.1);
  pointer-events: none;
}

/* Grid 2 col + gap amplio */
.editions-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ----- izquierda ----- */
.editions-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  font-size: clamp(50px, 5.8vw, 100px);
  line-height: 0.98;
}
.editions-inline-logo {
  height: clamp(28px, 4.2vw, 42px);
  width: auto;
}
.editions-copy {
  margin: 0 0 18px;
  opacity: 1;
  max-width: 52ch;
  font-size: 22px;
}

.editions-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
}
.editions-logos img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.25));
}

/* ----- derecha: carrusel ----- */
.editions-carousel {
  margin: 0;
  position: relative;
}
.editions-viewport {
    position: relative;
    width: min(620px, 44vw);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px;
}

/* diapositivas con fade */
.editions-viewport .slide{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;          /* << completa, sin recortes */
  background: transparent;
  opacity: 0; transition: opacity .5s ease;
}
.editions-viewport .slide.is-active {
  opacity: 1;
}

/* Controles */
.editions-controls {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ed-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.ed-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.ed-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.editions-viewport .ed-btn.next{
  position: absolute;
  right: 0;
  bottom: 0px;
  width: 56px;           /* ajusta a gusto */
  height: 56px;
  border: 0;
  border-radius: 999px;  /* por si tu ícono es cuadrado */
  background: transparent;     /* sin glass */
  box-shadow: none;
  backdrop-filter: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform .15s ease, opacity .15s ease;
}
.editions-viewport .ed-btn.next:hover{ transform: scale(1.06); }
.editions-viewport .ed-btn.next img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Dots por defecto gris, activo morado */
.dots{ display:flex; justify-content:center; gap:10px; }
.dot{
  width:12px; height:12px; border-radius:999px;
  background:#8c90a3; border:0; padding:0; cursor:pointer;
  opacity:.95; transition:transform .2s, background .2s;
}
.dot.is-active{ background:#8f4cff; transform:scale(1.12); }

.dot img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ----- fila inferior de stats ----- */
.editions-stats {
  list-style: none;
  margin: clamp(26px, 3.6vw, 42px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 24px);
}
.stat-card {
    display: grid;
    grid-template-columns: 70px 0.9fr;
    gap: 0px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 45px;
    background: linear-gradient(103.53deg, rgba(27, 148, 214, 0.2) 1.86%, rgba(88, 73, 144, 0.2) 50%, rgba(206, 97, 116, 0.2) 98.14%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 26px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px) saturate(1.02);
}
.stat-ico {
  width: 64px;
  height: 64px;
}
.stat-num {
  font-size: clamp(28px, 3.2vw, 34px);
  line-height: 100%;
  display: block;
  color: #00d1ff;
  text-align: right;
}
.stat-label {
  opacity: 1;
  font-size: 24px;
  color: #00d1ff;
  text-align: right;
}
.stat-meta{ text-align: right; }

/* responsive */
@media (min-width: 681px) and (max-width: 1200px) {
  .editions-grid {
    grid-template-columns: 1fr;
  }
  .editions-viewport {
    width: 85vw;
  }
  .editions-logos {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }

  .editions-stats {
    list-style: none;
    margin: clamp(26px, 3.6vw, 42px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.6vw, 24px);
  }
  .section-editions .container {
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    display: grid;
  }
  .stat-card {
    display: grid;
    grid-template-columns: 70px 0.9fr;
    gap: 0px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 45px;
    background: linear-gradient(103.53deg, rgba(27, 148, 214, 0.2) 1.86%, rgba(88, 73, 144, 0.2) 50%, rgba(206, 97, 116, 0.2) 98.14%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 26px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px) saturate(1.02);
    height: 130px;
  }
}
@media (max-width: 680px) {
  .editions-grid {
    grid-template-columns: 1fr;
  }
  .editions-viewport {
    width: min(620px, 90vw);
  }
  .editions-copy {
    margin: 0 0 18px;
    opacity: 1;
    max-width: 52ch;
    font-size: 20px;
  }
  .editions-stats {
    grid-template-columns: 1fr;
  }

  .stat-label{
    font-size: 22px;
    line-height: 100%;
  }

  .stat-card {
    height: 110px;
  }

  .editions-viewport .ed-btn.next {
    position: absolute;
    right: 0;
    bottom: 0px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    transition: transform .15s 
      ease, opacity .15s 
      ease;
    margin-right: -0.5%;
    margin-bottom: -0.5%;
  }
}

.section-editions .editions-bg{ z-index:0; }
.section-editions .container{ position:relative; z-index:1; }
.editions-title, .editions-inline-logo, .editions-copy{ opacity:1 !important; }