
/* ==========================================
   VICE HUB 3.5.1
   Portada digital responsive
   Corrección de imágenes y tarjetas
========================================== */

#v3Portal {
  width: 100%;
  min-width: 0;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

#v3Portal * {
  box-sizing: border-box;
}

#v3Portal > h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin: 14px 0;
  color: #ffffff;
}

#v3Portal > h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 30px 0 18px;
}

#v3Portal > .muted {
  color: #aeb5c7;
  line-height: 1.6;
}

/* FILTROS */

.v3-cats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.v3-cats button {
  min-height: 36px;
  border: 1px solid #353a55;
  border-radius: 22px;
  padding: 9px 15px;
  background: #1b2135;
  color: #e0e4ee;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
}

.v3-cats button:hover {
  border-color: #e63f88;
  background: #35213c;
}

.v3-cats button.active {
  background: #e63f88;
  border-color: #e63f88;
  color: #ffffff;
}

#v3Portal .v3-cats[aria-label="Categorías de portada"] {
  padding-top: 14px;
  border-top: 1px solid #292e43;
}

/* NOTICIAS PRINCIPALES */

.v3-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin: 20px 0 28px;
}

.v3-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
}

/* TARJETAS */

#v3Portal .v3-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #353a55;
  border-radius: 18px;
  background: #141a30;
  box-shadow: 0 5px 18px #00000020;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

#v3Portal .v3-feature:hover {
  border-color: #a34d82;
  box-shadow: 0 8px 24px #00000040;
}

/* IMÁGENES
   Proporciones adaptables sin superposición
*/

#v3Portal .v3-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 75% 20%,
      #d83f8d99,
      transparent 50%
    ),
    linear-gradient(
      135deg,
      #322043,
      #122e43
    );
  font-size: 72px;
  font-weight: 900;
  color: #ffffff55;
}

#v3Portal .v3-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform .35s ease;
}

#v3Portal .v3-feature:hover .v3-cover img {
  transform: scale(1.025);
}

#v3Portal .v3-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    transparent 80%,
    #10132325
  );
}

/* CONTENIDO
   Siempre situado debajo de la imagen
*/

#v3Portal .v3-copy {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding: 22px;
  margin: 0;
  transform: none;
  background: #141a30;
  z-index: 1;
}

#v3Portal .v3-copy h2 {
  position: static;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  color: #ffffff;
  margin: 12px 0;
  overflow-wrap: anywhere;
}

#v3Portal .v3-copy h3 {
  position: static;
  font-size: 19px;
  line-height: 1.35;
  color: #ffffff;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

#v3Portal .v3-copy p {
  position: static;
  margin: 8px 0 12px;
  color: #bdc4d6;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* ETIQUETAS */

#v3Portal .v3-label {
  position: static;
  display: block;
  color: #ff83b7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

#v3Portal .v3-copy p.v3-label {
  color: #ff83b7;
  font-size: 11px;
}

/* NOTICIAS LATERALES */

#v3Portal .v3-side .v3-cover {
  aspect-ratio: 16 / 7;
  height: auto;
  font-size: 48px;
}

#v3Portal .v3-side .v3-copy {
  padding: 17px;
}

#v3Portal .v3-side h3 {
  font-size: 18px;
  margin: 8px 0;
}

#v3Portal .v3-side .v3-copy p {
  font-size: 13px;
}

/* RESTO DE PUBLICACIONES */

.v3-list {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

#v3Portal .v3-list .v3-cover {
  aspect-ratio: 16 / 9;
  height: auto;
  font-size: 48px;
}

#v3Portal .v3-list .v3-copy {
  padding: 18px;
}

/* FUENTES */

#v3Portal .v3-copy .v3-source {
  color: #9da8c0;
  font-size: 11px;
  line-height: 1.5;
  padding-top: 12px;
  margin: 8px 0 12px;
  border-top: 1px solid #30364b;
}

/* BOTÓN LEER ARTÍCULO */

#v3Portal .v3-read {
  position: static;
  align-self: flex-start;
  width: auto;
  min-height: 40px;
  padding: 10px 16px;
  margin-top: 5px;
  background: #e63f88;
  color: #ffffff;
  border: 1px solid #e63f88;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

#v3Portal .v3-read:hover {
  background: #c72b73;
  border-color: #c72b73;
}

/* CARGAR MÁS */

#v3Portal button[data-v3-more] {
  display: block;
  width: min(100%, 360px);
  min-height: 46px;
  margin: 10px auto;
  background: #242a40;
  border: 1px solid #454b64;
  border-radius: 10px;
}

#v3Portal button[data-v3-more]:hover {
  border-color: #e63f88;
}

/* ESTADOS VACÍOS */

.v3-empty {
  padding: 28px;
  color: #bec6da;
  text-align: center;
  border: 1px dashed #353a55;
  border-radius: 12px;
  background: #141a30;
}

/* ACCESIBILIDAD */

#v3Portal button:focus-visible {
  outline: 2px solid #ff83b7;
  outline-offset: 3px;
}

/* TABLETS */

@media (max-width: 900px) {

  .v3-hero {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .v3-side {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .v3-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  #v3Portal .v3-side .v3-cover {
    aspect-ratio: 16 / 9;
  }

}

/* MÓVILES */

@media (max-width: 560px) {

  #v3Portal > h1 {
    font-size: 30px;
  }

  .v3-hero,
  .v3-side,
  .v3-list {
    grid-template-columns:
      minmax(0, 1fr);
    gap: 15px;
  }

  #v3Portal .v3-feature {
    border-radius: 14px;
  }

  #v3Portal .v3-cover,
  #v3Portal .v3-side .v3-cover,
  #v3Portal .v3-list .v3-cover {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  #v3Portal .v3-copy,
  #v3Portal .v3-side .v3-copy,
  #v3Portal .v3-list .v3-copy {
    padding: 17px;
  }

  #v3Portal .v3-copy h2 {
    font-size: 25px;
  }

  #v3Portal .v3-copy h3 {
    font-size: 20px;
  }

  #v3Portal .v3-copy p {
    font-size: 14px;
  }

  .v3-cats {
    gap: 7px;
    margin: 12px 0 16px;
  }

  .v3-cats button {
    padding: 9px 12px;
    font-size: 12px;
  }

  #v3Portal .v3-read {
    min-height: 44px;
  }

}

/* REDUCIR ANIMACIONES */

@media (prefers-reduced-motion: reduce) {

  #v3Portal *,
  #v3Portal *::before,
  #v3Portal *::after {
    transition: none !important;
    animation: none !important;
  }

}
