/* =================================================================== */
/* Variables de colores MECEDUPAZ - Paleta institucional             */
/* =================================================================== */
:root {
  /* Colores primarios */
  --color-primario: #1b1464;            /* Azul institucional MECEDUPAZ */
  --color-primario-oscuro: #12104d;      /* Azul oscuro para fondos */
  --color-primario-claro: #2d247a;      /* Azul claro para acentos */

  /* Colores de fondo */
  --color-fondo-claro: #f7f7f7;         /* Fondo claro para contenido */
  --color-fondo-translucido: #efede9ba; /* Fondo semitransparente */
  --color-fondo-oscuro: #1b1464;         /* Azul MECEDUPAZ para contraste */
  --color-fondo-blur: #0a0449a3;         /* Azul oscuro semitransparente */

  /* Colores de interfaz */
  --color-borde: #1b1464;               /* Borde principal azul MECEDUPAZ */
  --color-sombra-texto: rgba(27, 20, 100, 0.41); /* Sombra azul para texto */
  --color-sombra-clara: rgba(255, 255, 255, 0.3); /* Sombra clara */

  /* Colores para navegación */
  --color-nav-fondo: #0f255385;         /* Fondo de navegación azul */
  --color-nav-item: #100b48b0;          /* Fondo de items azul */
  --color-nav-dropdown: #db4e2dd1;      /* Fondo de menús naranja */

  /* Colores de interacción */
  --color-hover: #12104d;               /* Color hover azul oscuro */
  --color-interaccion: #db4e2d;         /* Color para interacciones naranja */

  /* Colores adicionales MECEDUPAZ */
  --color-accent: #db4e2d;              /* Naranja vibrante */
  --color-secondary: #b0242d;           /* Rojo profundo */

  /* Color específico para spans en homepage-issue */
  --color-issue-span-fondo: #1b14648f;  /* Fondo azul para spans en homepage-issue */
}


/* =================================================================== */
/* Fuentes                                                             */
/* =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;600&family=Kanit:ital,wght@0,700;1,700&display=swap');

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  src: url('https://fonts.gstatic.com/s/materialsymbolsoutlined/v160/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsI.woff2') format('woff2');
}


/* =================================================================== */
/* Estilos Generales y Reset                                           */
/* =================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
}

/* Tipografía de títulos */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.btn-default,
.navbar-logo-text,
.subTitle {
  /* NOTA: Esta regla con !important anula otras definiciones de fuentes para títulos. */
  font-family: 'Kanit', sans-serif !important;
  font-weight: 700;
}

/* Clase .title usa la fuente serif decorativa */
.title {
    font-family: 'Playfair Display', serif;
    word-break: break-word;
}

/* Texto estándar */
p, span, a, li {
  font-weight: 400;
}

/* Word-break para enlaces largos */
footer a,
#mainArticleContent a {
  word-break: break-word;
}

/* Iconos Material */
.material-symbols-outlined {
  display: inline-block;
  font-family: 'Material Symbols Outlined';
  font-feature-settings: 'liga';
  font-size: 24px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =================================================================== */
/* Cabecera (Header)                                                   */
/* =================================================================== */
.main-header {
  background: linear-gradient(to bottom, #4d3e3345, transparent);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 3px solid var(--color-primario);
}

/* Imagen de fondo personalizada - se aplica solo cuando está habilitada */
.main-header.custom-background {
  background: linear-gradient(to bottom, #4d3e3345, transparent), var(--custom-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
/*  background-attachment:fixed;*/
}

.main-header *:not(input),
.main-header a:active {
  color: #302f5e;
}

.dropdown-toggle,
.sr-only,
.main-header a {
  color: var(--color-fondo-claro) !important;
}

.article-details-block .dropdown-toggle,
.main-header a:hover,
.navbar-logo-text:hover {
  color: var(--color-primario-claro) !important;
}

header a:hover {
  text-decoration: none;
}

.container .page-header {
  padding: 50px;
}

/* Logo de la navbar */
.navbar-logo-text {
  display: block;
  font-size: 40px;
  font-style: italic;
  font-variant: small-caps;
  font-weight: bold;
  line-height: 1.2em;
  margin-left: -0.5em;
  padding: 0 0.5em;
  text-shadow: 2px 7px 5px var(--color-sombra-texto), 0 -4px 10px var(--color-sombra-clara);
  width: 100%;
  white-space: normal;
  border: 1px solid transparent;
}

/* Subtítulos decorativos */
.subTitle {
  font-size: 20px;
  font-style: italic;
  font-variant: small-caps;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-shadow: 2px 7px 5px var(--color-sombra-texto), 0 -4px 10px var(--color-sombra-clara);
}


/* =================================================================== */
/* Navegación Principal                                                */
/* =================================================================== */
.collapse.navbar-collapse.justify-content-md-center {
  background: var(--color-nav-fondo);
  backdrop-filter: blur(5px);
  box-shadow: rgb(6 28 6 / 63%) 0 6px 12px -2px, rgb(0 0 0 / 100%) 0 3px 7px -3px;
  border: 1px solid var(--color-primario);
  border-bottom: none;
}

/* Efecto en enlaces de navegación */
#primaryNav .nav-link {
  position: relative;
  backdrop-filter: blur(5px);
  background: var(--color-nav-item);
  font-size: 0.8em;
  font-weight: bold;
  padding: 10px 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  border-bottom: 3px solid transparent;
}

/* Efecto de brillo al pasar el ratón */
#primaryNav .nav-link::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%; /* Inicia fuera de la vista */
  width: 70%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(25deg);
  opacity: 0;
  transition: all 0.6s ease;
}

#primaryNav .nav-link:hover::after {
  left: 150%; /* Se mueve a través del elemento */
  opacity: 1;
}

/* Estados activo y hover */
#primaryNav a[aria-expanded="true"],
#primaryNav a:hover {
  backdrop-filter: blur(5px);
  background-color: var(--color-accent) !important;
  box-shadow: rgba(219 78 45 / 25%) 0 6px 12px -2px, rgba(0 0 0 / 30%) 0 3px 7px -3px;
  font-weight: bold;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  border-bottom-color: var(--color-accent);
}

#primaryNav a:active {
  transform: translateY(1px);
  transition: transform 0.1s;
}

.navbar-toggler {
  background-color: #1d2053;
  border: 1px solid #1d2053;
  padding: 8px 10px;
  border-radius: 4px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 32, 83, 0.25);
  outline: none;
}

.navbar-toggler:hover {
  background-color: #151a42;
}

.navbar-toggler-icon {
  filter: invert(100%);
  width: 20px;
  height: 20px;
}

/* Menús desplegables (Dropdowns) */
#primaryNav .dropdown-menu.show {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: center;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0.1rem;
  background-color: var(--color-nav-dropdown);
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(255 255 255 / 20%);
  backdrop-filter: blur(4px);
}

#primaryNav .dropdown-menu a {
  font-size: 0.8em;
}

/* Navegación de usuario e idioma */
#languageToggleMenulanguageLargeNav {
  background: var(--color-nav-item);
  padding: 5px 6px;
}

#languageLargeNav *:hover,
#userNav a:hover {
  color: #ffffff !important;
  background: var(--color-fondo-blur);
  transition: all 0.3s ease-in-out;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255 255 255 / 20%);
}

#userNav .dropdown-menu {
  background: var(--color-fondo-blur);
  backdrop-filter: blur(5px);
  border: 1px solid #ffffff63;
  box-shadow: rgba(0 0 0 / 25%) 0 25px 50px -12px;
}


/* =================================================================== */
/* Formulario de Búsqueda                                              */
/* =================================================================== */
.searchForm .form-group {
  margin-bottom: 0 !important;
}

.searchForm .form-group input {
  background: transparent;
  backdrop-filter: blur(10px);
  border: 1px solid #ffffff5c;
}

.searchForm button {
  background-color: var(--color-fondo-oscuro);
  color: white;
  margin-top: 1px;
  height: 38px !important;
  border: none !important; /* !important puede ser necesario para anular estilos de frameworks */
}

.searchForm .form-group img {
  margin-top: -3px;
  max-height: 20px;
  padding: 0;
}

.container.page-search em {
  font-weight: bold;
}


/* =================================================================== */
/* Página de Inicio (Homepage)                                         */
/* =================================================================== */
.homepage-background {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
}

.homepage-image {
  box-shadow:
    rgba(255 255 255 / 15%) 0 2px 4px inset,
    rgba(27 20 100 / 20%) 0 25px 50px -10px,
    rgba(219 78 45 / 15%) 0 15px 30px -5px,
    rgba(176 36 45 / 10%) 0 5px 15px -2px,
    rgba(0 0 0 / 25%) 0 35px 60px -15px;
}

.homepage-image-behind-issue::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, #0a121fba, transparent);
  -webkit-backdrop-filter: contrast(2.15) saturate(1.3) sepia(0.15) hue-rotate(10deg);
  /* backdrop-filter: contrast(2.15) saturate(1.3) sepia(0.15) hue-rotate(10deg); */
  pointer-events: none;
}

.homepage-issue-description-wrapper {
  border-top: 1px solid white;
  background-color: #ffffffb3;
  text-shadow: 0 1px 1px #ffffff57;
  backdrop-filter: blur(10px);
  box-shadow: rgba(0 0 0 / 10%) 0 10px 50px;
}

.homepage-announcements {
  background: var(--color-fondo-claro);
  box-shadow: rgba(255 255 255 / 10%) 0 1px 1px inset, rgb(26 33 71 / 15%) 0 20px 50px -20px, rgb(100 109 193 / 30%) 0 10px 31px -11px;
  padding: 5px 10px;
}


/* =================================================================== */
/* Números (Issues) y Envíos (Submissions)                           */
/* =================================================================== */


.page-issue-description .h2{
text-align: left;
}

.issue-toc-section-title {
    margin: 2rem;

}

.row.issue-wrapper {
  background-position: bottom;
  background-repeat: no-repeat;
  margin-top: 100px;
}

.see-all {
  margin-top: 20px;
}

.issue-summary-cover {
  max-width: 200px;
  height: auto;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* Icono de enviar submission */
.block_make_submission .block_make_submission_link {
  font-size: 20px;
  user-select: none;
}

.block_make_submission .block_make_submission_link::after {
  content: "send";
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  margin-left: 12px;
  margin-bottom: 12px;
}

/* ISSN Container */
.issn-container {
  position: absolute;
  right: 15px;
  top: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 10;
}

.issn {
  font-size: 0.7em;
  font-weight: bold;
  color: #1b1464;
  margin: 1px 0;
}

.badge-light {
  color: var(--color-nav-item) !important;
}

/* Página de envíos */
.page-submissions li,
.page-submissions p {
  text-align: justify;
}


/* =================================================================== */
/* Componentes Generales (Botones, Logos)                              */
/* =================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  color: var(--color-fondo-claro);
  border-color: var(--color-accent);
  text-decoration: none;
  box-shadow: 0 0 15px rgba(219 78 45 / 60%);
  transform: scale(1.05);
}

.btn.see-all {
  color: var(--color-primario);
}

/* Efecto de onda en botones */
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(219 78 45 / 20%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.5s ease-out;
  pointer-events: none;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

/* NOTA: Selector muy genérico. Puede afectar elementos no deseados. Considere usar clases más específicas. */
#customblock-indexada-en > * > * {
  background: white;
}

/* CORRECCIÓN: Se eliminó el espacio antes de :hover para aplicar el estilo al elemento correcto. */
.pdf-return-article:hover {
  background-color: #0000009c;
  padding-left: 0;
}

/* Sección de logos */
.additional-logos-row {
  margin-bottom: 1rem;
}

.additional-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0 0.5rem 0;
}

.additional-logo-link {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease;
}

.additional-logo-link:hover {
  transform: scale(1.05);
}

.additional-logo {
  max-height: 90px;
  width: auto;
  display: block;
  margin:0 10px;
}

.main-logo-row {
  margin-top: 1rem;
}

.main-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
}

.main-logo img {
  max-height: 230px;
  margin-top: -20px;
  width: auto;
}


/* =================================================================== */
/* Diseño Responsivo (Media Queries)                                   */
/* =================================================================== */
@media (max-width: 576px) {
  .additional-logo img {
    max-height: 60px;
  }
  .main-logo {
    height: 180px;
  }
  .main-logo img {
    max-height: 160px;
  }
  
  /* Navbar brand sin limitación de tamaño en móvil */
  .navbar-brand img {
    max-height: none !important;
    height: auto;
  }
  
  /* Additional logos con padding-top en móvil */
  .additional-logos {
    padding-top: 2rem;
  }
  
  /* ISSN en móvil - esquina superior derecha */
  .issn-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
  }
  
  .issn {
    font-size: 0.65em;
    margin: 0.5px 0;
  }
}

@media (max-width: 768px) {
  .main-logo {
    height: 120px;
  }
  .main-logo img {
    max-height: 180px;
    width: 80%;
  }
  
  /* Navbar brand sin limitación de tamaño en tablet */
  .navbar-brand img {
    max-height: none !important;
    height: auto;
  }
  
  /* Additional logos con padding-top en tablet */
  .additional-logos {
    padding-top: 2rem;
  }
  /* Ajuste para la sección de logos en vista móvil */
  .additional-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    gap: 16px;
  }
  .additional-logo {
    margin: 0;
  }
  .additional-logo img {
    max-height: 50px;
  }
  
  /* ISSN en tablet - esquina superior derecha */
  .issn-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
  }
  
  .issn {
    font-size: 0.7em;
    margin: 0.5px 0;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  /* Navbar brand sin limitación de tamaño en rango medio */
  .navbar-brand img {
    max-height: none !important;
    height: auto;
  }
}

@media (max-width: 992px) {
  .logos-section {
    padding-top: 120px;
  }
  .main-header {
    margin-top: -40px;
  }
  .searchForm {
    border-top: 1px solid white;
    padding-top: 30px;
  }
  .searchForm input {
    margin-left: 10px;
    width: 200px;
  }
  .searchForm button {
    height: 40px;
    position: relative;
    right: -200px;
    top: -40px;
  }
  .printIssn {
    /* margin-bottom: 20px; */
  }
}

@media (max-width: 1192px) {
  .homepage-image-behind-issue::after {
    display: none;
  }
}

@media (min-width: 992px) {
  /* ISSN en escritorio - posicionado en el header */
  .issn-container {
    position: absolute;
    right: 15px;
    top: 60px;
    z-index: 10;
  }
  
  .issn {
    font-size: 0.7em;
    margin: 1px 0;
  }
  
  .homepage-issue-published span,
  .homepage-issue-current span {
    padding: 10px;
    background: #3d4f2d03;
    backdrop-filter: blur(5px);
  }
  .searchForm button {
    background: var(--color-primario-oscuro);
    height: 40px;
    position: absolute;
    right: -40px;
    top: 19px;
    outline: 1px solid var(--color-primario) !important;
    border-end-end-radius: 20px;
  }
  #userNav .nav-link,
  .language-toggle .dropdown-toggle {
    background: var(--color-nav-item);
    padding: 10px 20px;
  }
  .printIssn {
    top: 70px;
  }
  .onlineIssn {
    top: 100px;
  }
}


/**EDIT**/

@media (min-width: 992px) {
    .navbar-logo img {
        max-height: 120px;
    }
}

/* =================================================================== */
/* Estilos Modernos para Article Summary                              */
/* =================================================================== */

.article-summary {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

/* Borde dinámico con gradiente */
.article-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(45deg, 
    var(--color-primario), 
    var(--color-accent), 
    var(--color-primario-claro),
    var(--color-accent)
  );
  background-size: 300% 300%;
  animation: borderGradient 6s ease infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Efecto hover */
.article-summary:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px -12px rgba(27, 20, 100, 0.15),
    0 10px 20px -5px rgba(219, 78, 45, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(27, 20, 100, 0.1);
}

.article-summary:hover::before {
  opacity: 1;
}

/* Efecto de brillo al hover */
.article-summary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.article-summary:hover::after {
  left: 100%;
  opacity: 1;
}

/* Animación del borde gradiente */
@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efecto de apariciÃ³n con scroll */
.article-summary {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.article-summary:nth-child(1) { animation-delay: 0.1s; }
.article-summary:nth-child(2) { animation-delay: 0.2s; }
.article-summary:nth-child(3) { animation-delay: 0.3s; }
.article-summary:nth-child(4) { animation-delay: 0.4s; }
.article-summary:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de hover en títulos dentro del article-summary */
.article-summary .title,
.article-summary h3,
.article-summary h2 {
  transition: all 0.3s ease;
  position: relative;
}

.article-summary:hover .title,
.article-summary:hover h3,
.article-summary:hover h2 {
  color: var(--color-primario);
  transform: translateX(5px);
}

/* Efecto sutil en los enlaces */
.article-summary a {
  transition: all 0.3s ease;
  position: relative;
}

.article-summary a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primario));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-summary:hover a::before {
  width: 100%;
}

/* Micro-interacciones */
.article-summary * {
  transition: all 0.3s ease;
}

/* Efecto de enfoque mejorado */
.article-summary:focus-within {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(27, 20, 100, 0.1),
    0 25px 50px -12px rgba(27, 20, 100, 0.15);
}

/* Espaciado interno adicional para elementos */
.article-summary .title,
.article-summary h1,
.article-summary h2,
.article-summary h3 {
  margin-bottom: 1rem;
}

.article-summary p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.article-summary .authors,
.article-summary .published {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Espaciado responsivo */
@media (max-width: 768px) {
  .article-summary {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 992px) {
  .article-summary {
    padding: 2rem;
  }
}

/* =================================================================== */
/* Estilos Modernos para Issue Summary Cards                          */
/* =================================================================== */

.issue-summary,
.card.issue-summary,
div.issue-summary {
  position: relative !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
  margin-bottom: 2rem !important;
  padding: 1.5rem !important;
}

/* Borde dinámico con gradiente para issue-summary */
.issue-summary::before,
.card.issue-summary::before,
div.issue-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(45deg, 
    var(--color-primario), 
    var(--color-accent), 
    var(--color-primario-claro),
    var(--color-accent)
  );
  background-size: 300% 300%;
  animation: borderGradient 6s ease infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none !important;
}

/* Efecto hover para issue-summary */
.issue-summary:hover,
.card.issue-summary:hover,
div.issue-summary:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px -12px rgba(27, 20, 100, 0.15),
    0 10px 20px -5px rgba(219, 78, 45, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(27, 20, 100, 0.1);
}

.card .issue-summary:hover::before {
  opacity: 1;
}

/* Efecto de brillo al hover para issue-summary */
.card .issue-summary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.card .issue-summary:hover::after {
  left: 100%;
  opacity: 1;
}

/* Efecto de aparición con scroll para issue-summary */
.card .issue-summary {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.card:nth-child(1) .issue-summary { animation-delay: 0.1s; }
.card:nth-child(2) .issue-summary { animation-delay: 0.2s; }
.card:nth-child(3) .issue-summary { animation-delay: 0.3s; }
.card:nth-child(4) .issue-summary { animation-delay: 0.4s; }
.card:nth-child(5) .issue-summary { animation-delay: 0.5s; }

/* Efecto de hover en títulos dentro del issue-summary */
.card .issue-summary .title,
.card .issue-summary h3,
.card .issue-summary h2 {
  transition: all 0.3s ease;
  position: relative;
}

.card .issue-summary:hover .title,
.card .issue-summary:hover h3,
.card .issue-summary:hover h2 {
  color: var(--color-primario);
  transform: translateX(5px);
}

/* Efecto sutil en los enlaces de issue-summary */
.card .issue-summary a {
  transition: all 0.3s ease;
  position: relative;
}

.card .issue-summary a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primario));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card .issue-summary:hover a::before {
  width: 100%;
}

/* Micro-interacciones para issue-summary */
.card .issue-summary * {
  transition: all 0.3s ease;
}

/* Efecto de enfoque mejorado para issue-summary */
.card .issue-summary:focus-within {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(27, 20, 100, 0.1),
    0 25px 50px -12px rgba(27, 20, 100, 0.15);
}

/* Espaciado interno adicional para elementos de issue-summary */
.card .issue-summary .title,
.card .issue-summary h1,
.card .issue-summary h2,
.card .issue-summary h3 {
  margin-bottom: 1rem;
}

.card .issue-summary p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.card .issue-summary .published,
.card .issue-summary .issue-date,
.card .issue-summary .issue-volume {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Espaciado especial para la imagen de portada */
.card .issue-summary .issue-summary-cover {
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card .issue-summary:hover .issue-summary-cover {
  transform: scale(1.05);
}

/* Espaciado responsivo para issue-summary */
@media (max-width: 768px) {
  .card .issue-summary {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 992px) {
  .issue-summary,
  .card.issue-summary,
  div.issue-summary {
    padding: 2rem !important;
  }
}

/* Versión simplificada adicional para mayor compatibilidad */
.issue-summary {
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  border: 1px solid transparent !important;
}

/* Borde dinámico animado para issue-summary */
.issue-summary::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 8px !important;
  padding: 2px !important;
  background: linear-gradient(45deg, 
    var(--color-primario), 
    var(--color-accent), 
    var(--color-primario-claro),
    var(--color-accent)
  ) !important;
  background-size: 300% 300% !important;
  animation: borderGradient 6s ease infinite !important;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  mask-composite: xor !important;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

.issue-summary:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Activar borde animado en hover */
.issue-summary:hover::before {
  opacity: 1 !important;
}

/* Efecto de brillo adicional para issue-summary */
.issue-summary::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  ) !important;
  transform: rotate(45deg) !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.issue-summary:hover::after {
  left: 100% !important;
  opacity: 1 !important;
}

.homepage-issue-description {
  overflow: hidden;
}


.homepage-issue-description:after{display:none}
