@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* === ENLACES: sin subrayado en ningún estado (Cassiopeia + seguridad) === */
:root {
  --link-decoration: none;
  --link-hover-decoration: none;
  --link-active-decoration: none;
  --link-visited-decoration: none;
  --link-focus-decoration: none;
}
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
}
/* Centrar caption en las fotos */
.figure {
  display: flex;
  flex-direction: column;
  align-items: center; /* opcional: centra imagen y texto */
}

.figure img {
  display: block;
}
.figure-caption {
  display: inline-block;
  background-color: #000;
  color: #fff;
  font-style: italic;
  padding: 0.3em 0.6em;
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 0.5rem;
}
.bg-bottom-b-black {
  background-color: #000;
}
/* Galería de fotos SP Easy Image Gallery */

.speasyimagegallery-gallery .speasyimagegallery-gallery-item-title {
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.speasyimagegallery-image-title {
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: block;
}
.speasyimagegallery-gallery-stat {
  font-weight: 700;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  float: right;
}
/* Quitar icono de calendario en fecha de publicación */
.article-info .icon-calendar,
.article-info .fa-calendar,
.article-info svg {
    display: none !important;
}
/* Solo títulos de artículos, no módulos (H2) */
.page-header h1,
h2.item-title {
  font-family: 'Special Elite', 'Courier New', monospace;
  color: #c40000;
  border-top: 2px dotted currentColor;
  border-bottom: 2px dotted currentColor;
  padding: .3em 0;
  margin: 1.5em 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
}
/* Texto en general */
p,
li {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.25;
}
/* Componente video en menu */
body.pagina-video h2[itemprop="headline"] {
  font-size: 2rem;
  color: #474747;
}
body.pagina-video h2.avs-title[itemprop="headline"] {
  font-size: 1.4rem;
  color: #383838;
}
body.pagina-video h4.mt-0.mb-3 {
  font-size: 1rem;
  color: #F702E8;
}
/* Cabeceras modulos derecha */
.sidebar-right .card-header {
  font-size: 0.85rem; 
  color: #ffffff;
  background-color: #c40000; /* fondo de la cabecera */
}
/* Botones de paginado */
.pagination .page-item.active .page-link:hover {
  color: #ffffff;
  background-color: var(--pagination-active-bg);
}
/* Links dentro de texto */
p a,
li a {
  color: #c40000;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

/* Hover */
p a:hover,
li a:hover {
  color: #ffffff;
  background-color: #c40000;
}
/* Iconos redes y enlaces EFECTO SOBRE IMAGENES*/
/* Botón icono */
a.icon-link {
  display: inline-block;
  text-decoration: none !important;
  background: none !important;
  padding-right: 0 !important; /* por si el tema deja hueco para el icono */
}

/* Mata cualquier pseudoicono que añada el template */
a.icon-link::after,
a.icon-link::before,
a.icon-link[target]::after,
a.icon-link[target]::before,
a.icon-link[target="_blank"]::after,
a.icon-link[target="_blank"]::before {
  content: none !important;
  display: none !important;
  background: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

/* Si el icono es un elemento real (span/svg) dentro del enlace, lo ocultamos */
a.icon-link > span,
a.icon-link > svg,
a.icon-link .icon-out,
a.icon-link .icon-external,
a.icon-link .fa-external-link-alt,
a.icon-link .fa-up-right-from-square {
  display: none !important;
}

/* La imagen del icono */
a.icon-link img {
  display: block;
  border: 0;
  transition: transform .2s ease;
}

/* Tu punch */
a.icon-link:hover img {
  transform: scale(0.8);
}
/* Listados en tabla: fuerza el estilo en todos los estados */
table th.list-title a,
table th.list-title a:link,
table th.list-title a:visited {
  display: block;
  color: red !important;
  text-decoration: none !important;
  padding: 0.4em 0.6em;
}

/* Hover + focus: fondo rojo y texto blanco estable */
table th.list-title a:hover,
table th.list-title a:focus,
table th.list-title a:focus-visible {
  background-color: red !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Por si el template mete spans u otros elementos internos */
table th.list-title a:hover *,
table th.list-title a:focus *,
table th.list-title a:focus-visible * {
  color: #fff !important;
}

/* Neutraliza pseudo-elementos del template */
table th.list-title a::before,
table th.list-title a::after {
  content: none !important;
  display: none !important;
}
/* Creado el */
dd.create,
dd.create time {
    font-family: 'Special Elite', monospace;
    color: #c40000;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: none;
    opacity: 0.85;
}
/* Junta el título y la línea de "Creado el..." */
.blog-featured .item-content h2.item-title {
  margin-bottom: .15rem !important;   /* baja el espacio bajo el título */
  padding-bottom: 0 !important;
}

.blog-featured .item-content dl.article-info {
  margin-top: 0 !important;           /* sube el bloque de info */
  margin-bottom: .75rem !important;   /* ajusta el aire antes del texto/imagen */
}

.blog-featured .item-content dl.article-info dd.create {
  margin-top: 0 !important;           /* por si el dd añade margen propio */
}

/* Juntar main-top con el primer articulo*/
.main-top + #system-message-container + main {
    margin-top: -0.5rem;
}
/* Artículo individual: junta H1 (título) y la fecha "Creado el..." */
.com-content-article.item-page .page-header h1 {
  margin-bottom: .15rem !important;
  padding-bottom: 0 !important;
}

.com-content-article.item-page dl.article-info {
  margin-top: 0 !important;
  margin-bottom: .75rem !important; /* aire antes del contenido */
}

.com-content-article.item-page dl.article-info dd.create {
  margin-top: 0 !important;
}


