/* ========================================
   ALAMARTE - CSS COMPLETO OPTIMIZADO
   Helix Ultimate Custom CSS
   Versión: 4.6.0 | Fecha: 2026-10-04

   Cambios v4.6.0 | 2026-10-04:
   - Se añaden estilos reutilizables para los badges del Registro de cambios público en ES y EN.
   - Se definen los tipos AÑADIDO/ADDED, CAMBIO/CHANGED, CORRECCIÓN/FIXED, SEGURIDAD/SECURITY e IDIOMA/LANGUAGE.
   - Se añaden badges independientes para las ediciones CORE, PRO y CORE + PRO.
   - Los nuevos estilos quedan aislados bajo las clases .almt-changelog-badge y .almt-changelog-badges.
   - Se conserva sin cambios el resto del CSS de la versión 4.5.9.

   Cambios v4.5.9 | 2026-09-24:
   - Nuevo encabezado reutilizable para la página Extensiones mediante .almt-extensions-intro.
   - Se integra el encabezado con el lenguaje visual Alamarte: borde, sombra y franja superior degradada.
   - El HTML del encabezado queda libre de estilos embebidos; la presentación se centraliza en custom.css.
   - En móvil, el texto normal usa 18 px y el título 20 px.
   - Se conserva sin cambios el resto del CSS de la versión 4.5.8.

   Cambios v4.5.8 | 2026-09-20:
   - Nuevo índice responsive para el módulo nativo Menú de Joomla con la clase existente .almt-doc-menu.
   - En tablet y móvil se muestra un único botón Índice / Contents que abre el árbol real de documentación sin navegar al elemento raíz.
   - El enlace raíz Documentación / Documentation queda oculto únicamente en la presentación móvil para evitar duplicidad y recargas.
   - Se conserva sin cambios el menú lateral y el acordeón interno ya validado en escritorio.
   - Corrección del cierre del Índice móvil: el estado cerrado prevalece sobre la regla que mantiene visible la ruta activa.
   - Colores del control Índice: normal #252671; hover y abierto/activo #0099ff.

   Cambios v4.5.7 | 2026-09-16:
   - Se añade tratamiento específico de Documentación para tablet en orientación vertical entre 769px y 991.98px.
   - Se ajustan tipografía y espaciados del índice, menú lateral y contenido de documentación sin convertir la cuadrícula de tablet al diseño de una sola columna de móvil.
   - Se conservan intactos los breakpoints y reglas existentes para teléfonos, escritorio y los demás componentes del sitio.

   Cambios v4.5.6 | 2026-09-16:
   - Se recupera el ajuste específico del header y logo para tablet en orientación vertical entre 769px y 991.98px.
   - El header usa 140px de altura y el logo se centra verticalmente con altura automática y máximo de 130px.
   - Se conserva sin cambios el comportamiento actual de teléfonos (≤768px), escritorio y el resto del CSS.

   Cambios v4.5.5 | 2026-09-15:
   - Ajuste del alias clicable Documentación / Documentation en el megamenú para conservar el tamaño y espaciado visual del encabezado anterior.
   - Reconstrucción de los estilos del menú Offcanvas según el HTML real generado por Joomla / Helix Ultimate.
   - Los encabezados internos Módulos / Plugins quedan sin viñeta; los enlaces normales usan una flecha de navegación dibujada con CSS.
   - Las flechas de apertura/cierre de .menu-toggler se dibujan con CSS para evitar glifos rotos en ES y EN.
   - Se conservan los ajustes del acordeón lateral de documentación ya validados.

   Cambios v4.5.4 | 2026-09-15:
   - Corrección del selector del icono book-open según el HTML real generado por Joomla: el H1 es hijo directo de .com-content-category-blog.almt-doc-index.
   - No se modifica ninguna otra regla de presentación.

   Cambios v4.5.3 | 2026-09-15:
   - Se añade el icono Font Awesome book-open al título principal Documentación / Documentation mediante CSS, sin modificar el texto de la categoría.
   - El selector queda limitado al H1 del blog de documentación mediante .com-content-category-blog.almt-doc-index.

   Cambios v4.5.2 | 2026-09-15:
   - Se añade una separación inferior de 30 px al listado de documentación para evitar que la última tarjeta quede pegada al módulo siguiente.

   Cambios v4.5.1 | 2026-09-15:
   - Corrección de los selectores del índice de documentación según el HTML real generado por Joomla.
   - Las tarjetas se aplican a .com-content-category-blog__child dentro de .almt-doc-index.
   - Se mantienen intactas las demás reglas de la versión 4.5.0.

   Cambios v4.5.0 | 2026-09-15:
   - Verificación integral del CSS sobre la base original 4.4.2 y limpieza de residuos experimentales.
   - Nuevo diseño de cajas para el índice de documentación mediante la clase de página .almt-doc-index.
   - Las nuevas reglas quedan limitadas al blog de Documentación y no afectan otros listados de artículos.

   Cambios v4.4.2 | 2026-09-14:
   - El menú lateral de documentación deja de depender de JavaScript para plegar las ramas inactivas.
   - Las ramas se detectan directamente con :has(> ul) y la ruta del artículo actual permanece abierta.
   - JavaScript queda como mejora interactiva para abrir otras ramas, sin ser requisito para el estado inicial.

   Cambios v4.4.1 | 2026-09-14:
   - Preparación del menú lateral de documentación .almt-doc-menu para funcionamiento tipo acordeón en ES y EN.
   - Eliminación de la regla que forzaba todos los submenús abiertos permanentemente en escritorio.
   - Nuevos estados .almt-doc-accordion-ready, .almt-doc-has-children y .almt-doc-open para controlar ramas sin afectar el menú si JavaScript no está disponible.
   - Nuevo control .almt-doc-toggle con flecha, estados hover/focus y foco accesible.
   - Conservación de jerarquía, sangrías, colores activo/hover y comportamiento responsive existentes.

   Cambios v4.4.0 | 2026-09-13:
   - Nueva sección de documentación Alamarte con estilos reutilizables .almt-doc-* para artículos.
   - Integración del menú lateral .almt-doc-menu con ancho de 300 px, jerarquía visual, estados activo/hover y bordes redondeados.
   - Ajuste de la distribución de columnas de documentación: 320 px para la columna izquierda y contenido principal flexible.
   - Navegación Anterior/Siguiente de documentación con fondo #0099ff y hover #252671.
   - Texto normal mínimo de 18 px en móvil para la documentación y su menú lateral.

   Cambios v4.3.8 | 2026-08-29:
   - Corrección de la ventana de confirmación de Phoca Cart al añadir productos con el header sticky de Helix Ultimate.
   - La modal #phAddToCartPopup y su fondo pasan por encima del header fijo, evitando que la cabecera de la ventana quede oculta.
   - La corrección se limita a la modal de añadir al carrito y no altera otras ventanas Bootstrap del sitio.

   Cambios v4.3.7 | 2026-08-29:
   - Se retiran las reglas externas .almt-mini-cart y el centrado específico del Mini Cart en Offcanvas.
   - Desde Alamarte Phoca Cart Mini Cart 1.0.5, la alineación y el diseño de Encabezado/Offcanvas se gestionan desde el propio módulo.
   - Se mantienen intactos los demás estilos de Phoca Cart y el icono opcional de título de módulo.

   Cambios v4.3.6 | 2026-08-29:
   - El ancho fijo de 140 px se limita exclusivamente al Selector de idioma en Offcanvas.
   - El Selector de idioma del encabezado recupera su ancho automático original.
   - Se conservan el centrado del Offcanvas y los estados activo/hover definidos en v4.3.5.

   Cambios v4.3.5 | 2026-08-29:
   - El idioma activo del desplegable usa fondo #0099ff.
   - El estado hover/focus de cualquier idioma usa fondo #252671.
   - Se mantiene el ancho fijo y el centrado del Selector de idioma.

   Cambios v4.3.4 | 2026-08-29:
   - Se unifica el ancho del botón y del desplegable del Selector de idioma en 140 px.
   - El selector mantiene el mismo ancho al cambiar entre Español e English.
   - Se evita el salto de línea de los nombres de idioma dentro del desplegable.

   Cambios v4.3.3 | 2026-08-29:
   - Corrección del centrado real del módulo Selector de idioma en Offcanvas.
   - El contenedor .sp-module del selector ocupa ahora todo el ancho útil, igual que Búsqueda y Mini Cart.
   - Se eliminan únicamente los márgenes horizontales heredados de Helix para evitar el desplazamiento lateral.

   Cambios v4.3.2 | 2026-08-29:
   - Organización del bloque del Selector de idioma como SECCIÓN 19.
   - Centrado horizontal del selector únicamente dentro del Offcanvas de Helix, sin alterar la fila Usuario/Búsqueda gestionada por Alamarte Helix Custom Login.
   - Limpieza del bloque Offcanvas del selector para evitar reglas redundantes.

   Cambios v4.3.1 | 2026-08-28:
   - Nueva sección para redes sociales publicadas en Offcanvas.
   - Corrección del color forzado por Helix sobre iconos Font Awesome dentro del Offcanvas.
   - Los iconos de SP Page Builder vuelven a heredar los colores individuales definidos en cada enlace del addon.

   Cambios v4.3 | 2026-08-28:
   - Reorganización de los estilos de Phoca Cart y carrito de compras en una nueva SECCIÓN 17.
   - Integración de la clase de módulo .almt-mini-cart para controlar el Mini Cart de forma independiente.
   - Centrado horizontal del Alamarte Mini Cart únicamente dentro del Offcanvas de Helix.
   - Traslado del icono de cesta del título de módulo desde Utilidades a la nueva sección del carrito.

   Cambios v4.2.2 | 2026-08-18:
   - Adición de separación visible entre los iconos y las etiquetas de la ficha Summary.

   Cambios v4.2.1 | 2026-08-18:
   - Corrección de etiquetas bilingües en Summary: se elimina HTML embebido de las cadenas de idioma.
   - Restauración de iconos Font Awesome en Título, Nombre de archivo, Licencia y Tamaño.

   Cambios v4.2 | 2026-08-18:
   - Internacionalización de las etiquetas responsive de la ficha Summary de jDownloads.
   - Eliminación de Título/Archivo/Licencia/Tamaño escritos directamente en CSS.
   - Las etiquetas se obtienen ahora desde data-label generado con las claves nativas de jDownloads.

   Cambios v4.1 | 2026-08-13:
   - Nuevo acordeón nativo <details>/<summary> para «Estado y características de la traducción».
   - El bloque carga cerrado y puede abrirse/cerrarse sin JavaScript ni checkbox oculto.
   - Se reutilizan los estilos existentes de contenido del paquete y barras de progreso.
   - Ancho de 900 px en escritorio y ajuste responsive en móvil.

   Cambios v3.9 | 2026-08-04:
   - Nuevo formato semántico y responsive para el Registro de cambios mediante h4, h5, h6, listas y code.
   - Eliminación del desplazamiento horizontal y ajuste seguro de cadenas técnicas al ancho disponible.
   - Corrección del reinicio de estilos de campos para que no afecte títulos, listas, bordes ni separadores internos.
   - Corrección del formulario Smart Search: rellenos válidos y alcance limitado al módulo de búsqueda.
   - Mejora de accesibilidad de los acordeones con control enfocable, foco visible y desplazamiento vertical seguro.
   - Sustitución de la ocultación global de iconos Joomla por una clase opcional y controlada.
   - Limpieza de reglas duplicadas y estilos sin efecto, sin modificar la lógica visual existente.
   - Revisión triple: sintaxis y estructura, cascada y responsive, seguridad y accesibilidad.

   Cambios v3.8 | 2026-07-26:
   - Adición de desplazamiento vertical al contenido del acordeón Registro de cambios.
   - Altura máxima de 420 px para evitar que los registros extensos sean truncados.
   - Estilos de barra de desplazamiento integrados para Firefox y navegadores WebKit.
   - Integración definitiva de la flecha de los acordeones alineada al extremo derecho.
   - Conservación del título centrado y del ancho ampliado de 900 px.

   Cambios v3.7 | 2026-07-26:
   - Ampliación de los acordeones Registro de cambios e Información del archivo en Detalles de la descarga.
   - Nuevo ancho máximo de 900 px en escritorio, conservando el ajuste responsive al 100 % en dispositivos móviles.
   - El botón Descargar conserva su ancho independiente de 450 px.

   Cambios v3.6 | 2026-07-26:
   - Adición del título «Estado de la traducción» mediante .almt-translation-status-title.
   - Integración completa del espaciado del título dentro del CSS principal.
   - Conservación de las correcciones de las barras de progreso de la versión 3.5.

   Cambios v3.5 | 2026-07-26:
   - Corrección de las barras de progreso de las características del paquete.
   - Compatibilidad con el nuevo relleno .almt-progress-fill y con el span anterior.
   - Degradado confirmado desde #0099ff al 0% hasta #252671 al 100%.

   Cambios v3.4 | 2026-07-19:
   - Reorganización estructural de bloques CSS sin modificar sus declaraciones.
   - Agrupación de megamenú, accesibilidad, utilidades, Weblinks, página de error y campos SHA-256 en sus secciones correspondientes.
   - Revisión y corrección de comentarios de ayuda y encabezados internos.

   Cambios v3.3 | 2026-06-28:
   - Ocultación controlada del bloque de contadores "Descargas: 0" en categorías contenedoras de jDownloads.
   - Nueva clase de página .almt-jd-parent-category para menús padre como Extensiones y Traducciones.
   - La ocultación no se aplica globalmente para no afectar categorías con descargas reales.

   Cambios v3.2 | 2026-06-28:
   - Adición de cards hub para categorías contenedoras mediante .almt-hub-card.
   - Separación de imagen y texto con .almt-hub-media y .almt-hub-body.
   - Corrección de altura de la caja para que no dependa de la longitud del texto ni de floats.
   - Diseño responsive para categorías padre como Extensiones y Traducciones.

   Cambios v3.1 | 2026-06-28:
   - Adición de layout Grid para cards de desarrolladores en categorías jDownloads mediante .almt-dev-card.
   - Separación visual de logo/botón URL y descripción con .almt-cat-media y .almt-cat-body.
   - El botón "Ver URL del Desarrollador" queda siempre bajo el logo y deja de depender de la longitud del texto descriptivo.

   Cambios v3.0 | 2026-06-28:
   - Corrección definitiva de la línea inferior en cards de descargas jDownloads eliminando el border-bottom heredado de .jd_content_wrapper.
   - Restauración del espacio inferior del botón Descargar dentro de .almt-download-card.
   - Ocultación segura de .jd_preview únicamente cuando esté vacío, sin afectar futuros previews con contenido.

   Cambios v2.6 | 2026-06-27:
   - Integración de cards individuales para descargas de jDownloads mediante .almt-download-card.
   - Ajuste de presentación para listas de descargas en una sola categoría.
   - Corrección menor de formato en reglas del acordeón Información.
   - Revisión de espaciado entre icono, título y flecha del acordeón Información.

   Cambios v2.5 | 2026-06-27:
   - Corrección de acordeón Información en jDownloads para evitar que quede dentro de la descripción.
   - Limpieza de floats en bloques de descarga, campos, licencia, changelog y botón Volver.
   - Organización de ajustes jDownloads en secciones 15.8, 15.13 y 15.14.
   ======================================== */

/* ==========================================
   SECCIÓN 1: NAVEGACIÓN Y MENÚ
   ========================================== */

/* ------------------------------------------
   Menú principal (megamenú desktop)
   ------------------------------------------ */
.sp-megamenu-parent > li > a {
  padding: 0px 10px !important;
}

.sp-megamenu-parent {
  color: #252671;
  padding: 5px 0 0 10px !important;
}

/* Items activos primer nivel */
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active > span {
  font-weight: 700;
  padding-left: 0px;
  padding-right: 0px;
  color: #0099ff !important;
}

/* Hover primer nivel */
.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a {
  color: #0099ff !important;
}

/* ------------------------------------------
   Menú desplegable (dropdown)
   ------------------------------------------ */
.sp-mega-group > li > a {
  color: #252671;
  padding-top: 10px !important;
  padding-bottom: 0px !important;
}

.sp-megamenu-parent .sp-mega-group > li > a {
  color: #0e1958 !important;
  text-transform: none;
}

.sp-megamenu-parent .sp-mega-group > li > a:hover,
.sp-megamenu-parent .sp-mega-group > li > a:active,
.sp-megamenu-parent .sp-mega-group > li.active > a {
  color: #0099ff !important;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  color: #333;
  padding-left: 20px !important;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:active,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
  color: #0099ff !important;
}

/* Items con submenú tienen indicador › */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li.sp-has-child > a,
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li.parent > a,
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li.deeper > a,
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li:has(> ul) > a {
  position: relative;
  padding-right: 1.25em;
  text-transform: none;
}

/* ------------------------------------------
   Submenú lateral (flyout) con viñetas
   ------------------------------------------ */
:root {
  --submenu-attach: 120px !important;
  --submenu-width: 300px !important;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li {
  position: relative;
}

/* Submenú lateral derecho */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li > ul {
  position: absolute !important;
  top: 0;
  left: calc(100% - var(--submenu-attach)) !important;
  width: var(--submenu-width) !important;
  min-width: var(--submenu-width) !important;
  display: none !important;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  z-index: 9999;
  padding: 8px 0;
  box-sizing: border-box;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li:hover > ul {
  display: block !important;
}

/* Submenú lateral izquierdo (columnas finales) */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner .sp-column:last-child li > ul,
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner .sp-column:nth-last-child(2) li > ul {
  left: auto !important;
  right: calc(100% - var(--submenu-attach)) !important;
  width: var(--submenu-width) !important;
  min-width: var(--submenu-width) !important;
}

/* Indicador › en items con submenú */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li.sp-has-child > a::after,
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li.parent > a::after,
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li.deeper > a::after,
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li:has(> ul) > a::after {
  content: "›";
  position: absolute;
  right: .25em;
  top: 50%;
  transform: translateY(-50%);
  opacity: .75;
  transition: transform .15s ease, opacity .15s ease;
  pointer-events: none;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li:hover > a::after {
  transform: translateY(-50%) translateX(2px);
  opacity: 1;
}

/* Viñetas → en items de submenú lateral */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li > ul li.sp-menu-item > a {
  position: relative;
  padding: 8px 16px 8px 28px !important;
  white-space: normal !important;
  display: block;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li > ul li.sp-menu-item > a::before {
  content: "\f061";
  font-family: "Font Awesome 6 Free","Font Awesome 5 Free","FontAwesome";
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .85em;
  line-height: 1;
  color: currentColor;
  opacity: .9;
  pointer-events: none;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li > ul li.sp-menu-item > a:hover::before {
  transform: translateY(-50%) translateX(2px);
  opacity: 1;
}

/* ------------------------------------------
   Menú móvil (offcanvas)
   Ajustado al HTML real generado por Joomla / Helix
   ------------------------------------------ */
.offcanvas-menu {
  background-color: #ffffff !important;
  color: #252671 !important;
}

.offcanvas-menu .offcanvas-inner {
  padding-right: 0;
  background-color: #ffffff !important;
}

/* Texto general del menú */
.offcanvas-menu .offcanvas-inner ul.menu a,
.offcanvas-menu .offcanvas-inner ul.menu .mod-menu__heading.nav-header {
  color: #252671 !important;
  font-size: 22px !important;
  font-weight: normal !important;
  line-height: 1.35;
  transition: color 0.3s ease;
}

/* Primer nivel */
.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > .mod-menu__heading.nav-header {
  display: block;
  position: relative;
  padding: 10px 48px 10px 10px !important;
}

/* Enlaces de primer nivel sin submenú */
.offcanvas-menu .offcanvas-inner ul.menu > li:not(.menu-parent) > a {
  padding-right: 10px !important;
}

/* Hover */
.offcanvas-menu .offcanvas-inner ul.menu li > a:hover {
  color: #0099ff !important;
}

/* Elemento actual / activo */
.offcanvas-menu .offcanvas-inner ul.menu li.active > a,
.offcanvas-menu .offcanvas-inner ul.menu li.current > a {
  color: #0099ff !important;
}

.offcanvas-menu .offcanvas-inner ul.menu li.active > a:hover,
.offcanvas-menu .offcanvas-inner ul.menu li.current > a:hover {
  color: #252671 !important;
}

/* Padre activo en offcanvas */
.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent.active > a,
.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent.current > a,
.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent.active > .mod-menu__heading.nav-header,
.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent.current > .mod-menu__heading.nav-header {
  color: #0099ff !important;
}

/* ------------------------------------------
   Flechas de apertura / cierre del acordeón
   Dibujadas con CSS para no depender de glifos
   de Font Awesome en ES / EN
   ------------------------------------------ */
.offcanvas-menu .offcanvas-inner ul.menu li.menu-parent > a,
.offcanvas-menu .offcanvas-inner ul.menu li.menu-parent > .mod-menu__heading.nav-header {
  position: relative;
  padding-right: 48px !important;
}

.offcanvas-menu .offcanvas-inner ul.menu .menu-toggler {
  position: absolute !important;
  top: 50% !important;
  right: 4px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(-50%) !important;
  color: #252671 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Anular los glifos originales de Helix */
.offcanvas-menu .offcanvas-inner ul.menu .menu-toggler::before {
  content: none !important;
  display: none !important;
}

/* Flecha propia: cerrada = derecha */
.offcanvas-menu .offcanvas-inner ul.menu .menu-toggler::after {
  content: "" !important;
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  border-right: 3px solid currentColor !important;
  border-bottom: 3px solid currentColor !important;
  transform: rotate(-45deg) !important;
  transform-origin: center !important;
  transition: transform 0.2s ease !important;
}

/* Rama abierta = abajo */
.offcanvas-menu .offcanvas-inner ul.menu li.menu-parent[aria-expanded="true"] > a > .menu-toggler::after,
.offcanvas-menu .offcanvas-inner ul.menu li.menu-parent[aria-expanded="true"] > .mod-menu__heading.nav-header > .menu-toggler::after,
.offcanvas-menu .offcanvas-inner ul.menu li.menu-parent.menu-parent-open > a > .menu-toggler::after,
.offcanvas-menu .offcanvas-inner ul.menu li.menu-parent.menu-parent-open > .mod-menu__heading.nav-header > .menu-toggler::after {
  transform: rotate(45deg) !important;
}

/* ------------------------------------------
   Submenús
   ------------------------------------------ */
.offcanvas-menu .offcanvas-inner ul.menu > li > ul {
  padding-left: 20px;
}

.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 0;
}

/* Eliminar viñetas heredadas de los li */
.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li::before {
  content: none !important;
  display: none !important;
}

/* Encabezados internos: Módulos, Plugins, etc. — sin icono */
.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li > .mod-menu__heading.nav-header {
  display: block;
  color: #252671 !important;
  font-size: 22px !important;
  font-weight: normal !important;
  padding: 10px 10px !important;
}

/* Enlaces hoja del submenú: icono de navegación */
.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li:not(.menu-parent) > a:not(.almt-all-docs) {
  display: block;
  position: relative;
  color: #252671 !important;
  font-size: 22px !important;
  font-weight: normal !important;
  padding: 10px 10px 10px 35px !important;
}

.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li:not(.menu-parent) > a:not(.almt-all-docs)::before {
  content: "" !important;
  position: absolute;
  left: 11px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
}

.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li:not(.menu-parent) > a:not(.almt-all-docs):hover::before {
  color: #0099ff;
}

/* Documentación: enlace clicable que funciona como encabezado — sin icono */
.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li > a.almt-all-docs {
  display: block;
  color: #252671 !important;
  font-size: 22px !important;
  font-weight: normal !important;
  padding: 10px 10px !important;
}

.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li > a.almt-all-docs::before,
.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li > a.almt-all-docs::after {
  content: none !important;
  display: none !important;
}

/* Padres dentro de submenús: Precios, JCE Editor, etc. */
.offcanvas-menu .offcanvas-inner ul.menu ul.menu-child li.menu-parent > a {
  display: block;
  position: relative;
  color: #252671 !important;
  font-size: 22px !important;
  font-weight: normal !important;
  padding: 10px 48px 10px 10px !important;
}

/* Ícono burger */
.offcanvas-active .burger-icon > span,
#modal-menu-toggler.active .burger-icon > span {
  background-color: #252671 !important;
}

.burger-icon > span {
  display: block;
  height: 2px;
  background-color: #252671 !important;
  margin: 5px 0;
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Color activo padres menú (nav-pills) */
ul.menu.nav-pills > li.menu-parent.active > a,
ul.menu.nav-pills > li.menu-parent.current > a,
ul.menu.nav-pills > li.menu-parent.active > span,
ul.menu.nav-pills > li.menu-parent.current > span {
  color: #0099ff !important;
}

/* Responsive: submenú en bloque en móvil */
@media (max-width: 991.98px) {
  .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li > ul {
    position: static !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: unset !important;
    display: block !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ------------------------------------------
   Menú offcanvas: desplazamiento vertical
   ------------------------------------------ */
#sp-offcanvas .sp-offcanvas-inner {
    overflow-y: auto;
    max-height: 100vh;
}

/* =========================================================
   HELIX MEGAMENU – CENTRADO EN VIEWPORT
   Mantener estos ajustes juntos y en este orden.
   ========================================================= */

.sp-dropdown.sp-dropdown-main.sp-dropdown-mega.sp-menu-center{
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  margin-left: 0 !important;
  max-width: calc(100vw - 40px);
}

/* Responsive inicial; el centrado fijo se refuerza más adelante. */
@media (max-width: 1199px){
  .sp-dropdown.sp-dropdown-main.sp-dropdown-mega.sp-menu-center{
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ------------------- */

/* =========================================================
   HELIX MEGAMENU – Base (evitar recortes y asegurar flyouts)
   ========================================================= */

/* 1) Evitar recortes por overflow (clave para que no "desaparezcan") */
.sp-dropdown.sp-dropdown-mega,
.sp-dropdown.sp-dropdown-mega .sp-dropdown-inner,
.sp-dropdown.sp-dropdown-mega .row,
.sp-dropdown.sp-dropdown-mega [class*="col-"]{
  overflow: visible !important;
}

/* 2) Reglas base del flyout (por si no existen o para reforzar) */
.sp-dropdown.sp-dropdown-mega .sp-mega-group > li{
  position: relative;
}

/* Submenú interno (flyout) */
.sp-dropdown.sp-dropdown-mega .sp-mega-group > li > ul.sp-mega-group-child{
  position: absolute;
  top: 0;
  left: calc(100% - 120px) !important;      /* ← MÁS ESPACIO HACIA LA DERECHA */
  min-width: var(--submenu-width, 320px);
  max-width: calc(100vw - 24px);
  z-index: 9999;
}


/* =========================================================
   HELIX MEGAMENU – Centrado real en pantalla (viewport)
   ========================================================= */

/* Ajuste fácil: altura del header */
:root{
  --almt-mega-top: 90px; /* cambie SOLO este valor si ajusta el header */
}

#sp-header .sp-dropdown.sp-dropdown-main.sp-dropdown-mega.sp-menu-center{
  position: fixed !important;
  left: 50vw !important;
  right: auto !important;
  transform: translateX(-50%) !important;

  top: var(--almt-mega-top) !important;

  max-width: calc(100vw - 40px) !important;
  width: min(1000px, calc(100vw - 40px)) !important;

  z-index: 99999 !important;
}

/* NOTA:
   El mega menú se centra en viewport usando position: fixed.
   No se fuerza la dirección de apertura por columna.
*/

/* ==========================================
   SECCIÓN 2: HEADER Y LOGO
   ========================================== */

#sp-header {
  height: 100px;
  padding-top: 10px;
}

.logo-image {
  padding-left: 0px !important;
}

/* Header móvil */
@media (max-width: 768px) {
  #sp-header {
    height: 140px !important;
    /* padding-top: 0px !important; */
  }
}

.logo-image-phone {
  height: 180px !important;
  padding-top: 50px !important;
}

@media (max-width: 576px) {
    .logo-image {
        height: 180px;
        padding-top: 50px !important;
    }
}

/* Tablet en orientación vertical */
@media (min-width: 769px) and (max-width: 991.98px) and (orientation: portrait) {

  #sp-header {
    height: 140px !important;
    padding-top: 10px !important;
  }

  #sp-header .logo,
  #sp-header .logo a {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .logo-image,
  .logo-image-phone {
    height: auto !important;
    max-height: 130px !important;
    padding-top: 0 !important;
    object-fit: contain;
  }
}

#sp-top-bar {
  background: #333333;
  color: #AAAAAA;
  display: none !important;
}

/* ==========================================
   SECCIÓN 3: FOOTER
   ========================================== */

#sp-footer,
#sp-bottom {
  background: #252671 !important;
  color: #FFF;
}

#sp-footer .container-inner {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px !important;
  text-align: center;
}

/* ==========================================
   SECCIÓN 4: BOTÓN SUBIR Y ACCESIBILIDAD
   ========================================== */

/* Botón scroll to top */
.sp-scroll-up {
  position: fixed !important;
  bottom: 80px !important;
  right: 30px !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  text-align: center !important;
  font-size: 16px !important;
  color: #fff !important;
  background: rgba(37, 38, 113, 0.6) !important;
  border-radius: 100% !important;
  z-index: 1000 !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

.sp-scroll-up:hover,
.sp-scroll-up:focus-visible {
  background-color: #252671 !important;
}


/* Ajustes del panel e ícono de accesibilidad */

._access-menu ._text-center {
    text-align: center !important;
    padding-top: 20px !important;
}

._access-icon._access{
  width: 50px !important;
  height: 50px !important;
  font-size: 40px !important;
  line-height: 45px !important;
  text-indent: 5px !important;
  background-color: #0099ff !important;
  color: #fff !important;
  left: 0 !important;
  bottom: 80px !important;
  z-index: 9999 !important;
  opacity: 1 !important;
  border-radius: 0 50px 50px 0 !important;

}

/* ==========================================
   SECCIÓN 5: ARTÍCULOS Y CONTENIDO
   ========================================== */

#sp-main-body {
  padding: 0px;
}

/* Ocultar imagen destacada y mantener visibles las valoraciones */
.article-details .article-full-image img {
  display: none !important;
}

.article-details .article-ratings-social-share {
  padding: 1rem 0;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  margin-bottom: 1rem;
  display: flex !important;
}

/* Títulos de artículos en listado */
.article-list .article .article-header h1 a,
.article-list .article .article-header h2 a {
  color: #0e1958 !important;
}

.article-list .article .article-header h1 a:hover,
.article-list .article .article-header h2 a:hover {
  color: #0099FF !important;
}

/* Íconos sociales */
.social-icons {
  font-size: 26px !important;
}

/* ------------------------------------------
   5.1 - Índice de documentación
   Página de categoría en formato blog
   Clase de página: almt-doc-index
   Estructura real Joomla:
   .com-content-category-blog__children >
   .com-content-category-blog__child
   ------------------------------------------ */

/* Icono del título principal Documentación / Documentation */
.com-content-category-blog.almt-doc-index > h1::before {
  content: "\f518";
  display: inline-block;
  margin-right: 12px;

  font-family:
    "Font Awesome 6 Free",
    "Font Awesome 5 Free",
    "FontAwesome";
  font-style: normal;
  font-variant: normal;
  font-weight: 900;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;

  color: #0099ff;
  font-size: 0.78em;
  vertical-align: 0.04em;
}

/* Caja de cada categoría de extensión */
.almt-doc-index .com-content-category-blog__child {
  position: relative;
  overflow: hidden;

  margin: 0 0 26px;
  padding: 30px 32px 28px;

  background: #ffffff;

  border: 1px solid rgba(37, 38, 113, 0.14);
  border-radius: 18px;

  box-shadow: 0 8px 28px rgba(37, 38, 113, 0.10);

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

/* Franja superior Alamarte */
.almt-doc-index .com-content-category-blog__child::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 6px;

  background: linear-gradient(
    90deg,
    #252671 0%,
    #4c4fb2 55%,
    #8de7eb 100%
  );
}

/* Hover discreto, sin mover la caja */
.almt-doc-index .com-content-category-blog__child:hover {
  border-color: rgba(37, 38, 113, 0.24);
  box-shadow: 0 12px 34px rgba(37, 38, 113, 0.14);
}

/* Título real del bloque */
.almt-doc-index .com-content-category-blog__child > h3.page-header.item-title {
  margin: 0 0 14px;
}

.almt-doc-index .com-content-category-blog__child > h3.page-header.item-title a {
  color: #252671 !important;
  text-decoration: none !important;
}

.almt-doc-index .com-content-category-blog__child > h3.page-header.item-title a:hover,
.almt-doc-index .com-content-category-blog__child > h3.page-header.item-title a:focus-visible {
  color: #0099ff !important;
}

/* Descripción de la categoría */
.almt-doc-index .com-content-category-blog__child p {
  margin-bottom: 0;
  color: #333333;
  line-height: 1.7;
}

/* La última caja no añade separación interna extra */
.almt-doc-index .com-content-category-blog__child:last-child {
  margin-bottom: 0;
}

/* Separación entre el listado de documentación y el módulo siguiente */
.almt-doc-index .com-content-category-blog__children {
  margin-bottom: 30px;
}

/* Tablet y móvil */
@media (max-width: 700px) {
  .almt-doc-index .com-content-category-blog__child {
    padding: 26px 22px 24px;
    border-radius: 16px;
  }

  .almt-doc-index .com-content-category-blog__child p {
    font-size: 18px;
    line-height: 1.7;
  }
}


/* ------------------------------------------
   5.2 - Encabezado de Extensiones Alamarte / ARS
   Clase reutilizable: .almt-extensions-intro
   ------------------------------------------ */

.almt-extensions-intro,
.almt-extensions-intro * {
  box-sizing: border-box;
}

.almt-extensions-intro {
  position: relative;
  overflow: hidden;

  width: 100%;
  max-width: 900px;

  margin: 18px auto 32px;
  padding: 30px 32px 28px;

  background: #ffffff;

  border: 1px solid rgba(37, 38, 113, 0.14);
  border-radius: 18px;

  box-shadow: 0 8px 28px rgba(37, 38, 113, 0.10);

  text-align: center;
}

.almt-extensions-intro::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 6px;

  background: linear-gradient(
    90deg,
    #252671 0%,
    #4c4fb2 55%,
    #8de7eb 100%
  );
}

.almt-extensions-intro h2 {
  margin: 0 0 16px;

  color: #252671;

  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.almt-extensions-intro p {
  margin: 0 0 12px;

  color: #4d4d5c;

  font-size: 1rem;
  line-height: 1.7;
}

.almt-extensions-intro p:last-child {
  margin-bottom: 0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .almt-extensions-intro {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }

  .almt-extensions-intro h2 {
    color: #ffffff;
  }

  .almt-extensions-intro p {
    color: #f1f3f5;
  }
}

/* Tablet y móvil */
@media (max-width: 700px) {
  .almt-extensions-intro {
    margin: 18px 0 28px;
    padding: 26px 22px 24px;
    border-radius: 16px;
  }

  .almt-extensions-intro h2 {
    font-size: 20px;
  }

  .almt-extensions-intro p {
    font-size: 18px;
    line-height: 1.7;
  }
}

/* Móviles estrechos */
@media (max-width: 480px) {
  .almt-extensions-intro {
    padding: 24px 16px;
    border-radius: 14px;
  }
}

/* ==========================================
   SECCIÓN 6: BOTONES GLOBALES
   ========================================== */

.btn-group-sm > .btn,
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.2rem;
  background-color: #252671 !important;
  border-color: #252671 !important;
}

body .sppb-btn,
body .btn {
  text-transform: none !important;
}

/* ==========================================
   SECCIÓN 7: SP PAGE BUILDER
   ========================================== */

/* Addon título específico */
#sppb-addon-2d6ef7d8-d70e-42b9-a97d-0dbaf78da4a4 .sppb-addon-title {
  font-family: Verdana;
  font-weight: 600;
  font-size: 16px;
  float: right;
}

/* Ocultar sección específica */
.sp-page-builder .page-content #section-id-7a5b85ca-8364-4790-ada6-ccc0634cf394 {
  padding-top: 75px;
  padding-right: 0px;
  padding-bottom: 75px;
  padding-left: 0px;
  margin: 0;
  display: none !important;
}

/* Íconos con animación rotación */
.sppb-icons-group-list li a {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 5px !important;
  font-size: 28px !important;
  line-height: 1 !important;
  display: inline-block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.sppb-icons-group-list li a:hover {
  transform: rotate(360deg);
  opacity: 0.3;
}

/* Carrusel: ocultar títulos y limitar altura */
#sppb-addon-df61f420-34c3-4717-91c8-51f63e2feb87 h2 {
  display: none !important;
}

#sppb-addon-df61f420-34c3-4717-91c8-51f63e2feb87 {
  max-height: 120px;
  overflow: hidden;
}

#sppb-addon-df61f420-34c3-4717-91c8-51f63e2feb87 img {
  max-height: 120px;
  object-fit: contain;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================
   SECCIÓN 8: BÚSQUEDA INTELIGENTE (SMART SEARCH)
   ========================================== */

/* Ocultar labels y filtros innecesarios */
.mod-finder label.finder[for^="mod-finder-searchword"],
.mod-finder label[for="tax-type"],
.mod-finder label[for="tax-language"],
.mod-finder label[for="tax-author"],
.mod-finder label[for="tax-category"] {
  display: none !important;
}

.mod-finder select#tax-type,
.mod-finder select#tax-language,
.mod-finder select#tax-author,
.mod-finder select#tax-category {
  display: none !important;
}

.mod-finder .control-group:has(#tax-type),
.mod-finder .control-group:has(#tax-language),
.mod-finder .control-group:has(#tax-author),
.mod-finder .control-group:has(#tax-category) {
  display: none !important;
}

/* Layout búsqueda */
.mod-finder {
  text-align: right !important;
}

.mod-finder form.form-search,
.mod-finder form.js-finder-searchform {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mod-finder input[type="search"],
.mod-finder input[name="q"],
.mod-finder input[id^="mod-finder-searchword"] {
  width: min(100%, 520px);
  box-sizing: border-box;
  padding: 10px 16px !important;
  border-radius: 10px;
}

.mod-finder button[type="submit"],
.mod-finder .btn[type="submit"],
.mod-finder input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px !important;
  border-radius: 10px;
  white-space: nowrap;
}

.mod-finder .input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  padding: 20px !important;
}

/* Responsive búsqueda */
@media (max-width: 640px) {
  .mod-finder form.form-search,
  .mod-finder form.js-finder-searchform {
    width: 100%;
    flex-wrap: wrap;
  }

  .mod-finder input[type="search"],
  .mod-finder input[name="q"],
  .mod-finder input[id^="mod-finder-searchword"] {
    width: 100%;
  }
}

/* ==========================================
   SECCIÓN 9: BREADCRUMBS
   ========================================== */

.mod-breadcrumbs__wrapper {
  background: #f9f9fb;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 10px 16px;
  margin: 15px 0 25px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.mod-breadcrumbs.breadcrumb {
  padding: 0;
  margin: 0;
  background: transparent;
}

.mod-breadcrumbs__item a,
.mod-breadcrumbs__item span {
  font-size: 0.95rem;
  color: #006dcc !important;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.mod-breadcrumbs__item.active span {
  color: #333 !important;
  font-weight: 600 !important;
}

.mod-breadcrumbs__divider span {
  font-size: 1.1rem;
  color: #0099ff !important;
  margin-right: 6px;
}

.mod-breadcrumbs__item a:hover {
  color: #252671 !important;
  text-decoration: underline;
}

/* ==========================================
   SECCIÓN 10: TABLAS GLOBALES
   ========================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}

table th {
  background-color: #f8f8f8;
  font-weight: bold;
  color: #333;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

table img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

/* ==========================================
   SECCIÓN 11: IMÁGENES STICKY
   ========================================== */

.img-float-sticky-left {
  float: left;
  position: sticky;
  top: 100px;
  margin-right: 20px;
  margin-bottom: 20px;
  z-index: 9;
}

.img-float-sticky-right {
  float: right;
  position: sticky;
  top: 100px;
  margin-left: 20px;
  margin-bottom: 20px;
  z-index: 9;
}

.img-sticky-alone {
  position: sticky;
  top: 80px;
  display: block;
  margin: 0 auto;
  z-index: 10;
}

/* ==========================================
   SECCIÓN 12: LIGHTBOX Y OVERLAYS
   ========================================== */

.mfp-bg {
  opacity: .25 !important;
  transition: opacity .2s ease;
}

.slbOverlay {
  background-color: #000 !important;
  opacity: .35 !important;
  transition: opacity .2s ease;
}

.mfp-bg,
.mfp-wrap,
.slbOverlay,
.slbWrap {
  z-index: 12000 !important;
}

.mfp-wrap,
.slbWrap {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ==========================================
   SECCIÓN 13: TOGGLE SIMPLE
   ========================================== */

.toggle-label {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0099FF;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  position: relative;
}

.toggle-block input[type="checkbox"] ~ .toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.toggle-block input[type="checkbox"]:checked ~ .toggle-content {
  max-height: 100px;
  padding: 5px 0;
}

/* ==========================================
   SECCIÓN 14: UTILIDADES Y ELEMENTOS VARIOS
   ========================================== */

/* ------------------------------------------
   14.1 - Ocultación controlada de iconos heredados
   Requiere aplicar .almt-hide-legacy-icons al contenedor.
   No se ocultan globalmente los iconos nativos de Joomla.
   ------------------------------------------ */
.almt-hide-legacy-icons [class^="icon-"],
.almt-hide-legacy-icons [class*=" icon-"] {
  speak: none;
  display: none !important;
}

select.rp_select {
  font-size: 25px !important;
}

/* ------------------------------------------
   14.2 - Badge PRO
   ------------------------------------------ */

   .pro-badge {
    box-sizing: border-box;
    min-width: 20px;
    height: 20px;
    padding: 0px 5px 0px 7px;
    border-radius: 500px;
    vertical-align: middle;
    background: #252671;
    color: #fff !important;
    font-size: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
    line-height: 0;
    letter-spacing: 1px !important;
    background-image: linear-gradient(320deg, #115897, #113797);
}

/* ------------------------------------------
   14.3 - Weblinks
   ------------------------------------------ */

/* Imagen en ficha individual */
.com-weblinks figure.item-image img {
    width: auto !important;
    max-width: 230px !important;
    height: auto !important;
}


/* ==========================================
   Listado de categorías Weblinks
   ========================================== */

/* Cuadrícula de categorías */
.com-weblinks-categories .com-content-categories__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

/* Tarjeta completa */
.com-weblinks-categories .com-content-categories__item {
    margin: 0 !important;
    padding: 20px 22px !important;
    background: #ffffff;
    border: 1px solid rgba(37, 38, 113, 0.14) !important;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

/* Hover tarjeta */
.com-weblinks-categories .com-content-categories__item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 153, 255, 0.35) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

/* Fila título + contador */
.com-weblinks-categories .com-content-categories__item > .w-100 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

/* Título */
.com-weblinks-categories .com-content-categories__item > .w-100 > a {
    color: #252671 !important;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
}

.com-weblinks-categories .com-content-categories__item > .w-100 > a:hover {
    color: #0099ff !important;
}


/* ------------------------------------------
   Iconos categorías
   ------------------------------------------ */

.com-weblinks-categories .com-content-categories__item > .w-100 > a::before {
    display: inline-block;
    margin-right: 9px;
    color: #0099ff;
    font-family:
        "Font Awesome 6 Free",
        "Font Awesome 5 Free",
        "FontAwesome";
    font-weight: 900;
    font-size: 0.95em;
    line-height: 1;
    vertical-align: baseline;
}

/* Joomla! y su ecosistema */
.com-weblinks-categories .com-content-categories__item:nth-child(1) > .w-100 > a::before {
    content: "\f12e";
}

/* SEO y herramientas para webmasters */
.com-weblinks-categories .com-content-categories__item:nth-child(2) > .w-100 > a::before {
    content: "\f201";
}

/* Hosting, dominios y seguridad web */
.com-weblinks-categories .com-content-categories__item:nth-child(3) > .w-100 > a::before {
    content: "\f3ed";
}

/* Desarrollo y herramientas web */
.com-weblinks-categories .com-content-categories__item:nth-child(4) > .w-100 > a::before {
    content: "\f121";
}


/* ------------------------------------------
   Contador
   ------------------------------------------ */

.com-weblinks-categories .com-content-categories__item .badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    background-color: #252671 !important;
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}


/* ------------------------------------------
   Descripción
   ------------------------------------------ */

.com-weblinks-categories .category-desc {
    margin: 0 !important;
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Neutraliza cajas HTML antiguas en descripciones */
.com-weblinks-categories .category-desc > div {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.com-weblinks-categories .category-desc p {
    margin: 0 !important;
}

/* Espacio antes del contenido inferior */
.com-weblinks-categories {
    margin-bottom: 50px;
}


/* ==========================================
   Cabezote Weblinks
   ========================================== */

.almt-weblinks-header {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-top: 35px;
    margin-bottom: 12px;

    padding: 26px 30px;

    background: rgba(37, 150, 190, 0.06);

    border: 1px solid rgba(37, 38, 113, 0.10);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Icono principal */
.almt-weblinks-header-icon {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #252671;
    color: #ffffff;

    border-radius: 50%;
    font-size: 30px;
}

/* Contenido */
.almt-weblinks-header-content {
    flex: 1;
    min-width: 0;
}

/* Título */
.almt-weblinks-header h2 {
    margin: 0 0 8px 0;

    color: #252671;
    font-size: 1.65rem;
    font-weight: 600;
}

/* Texto */
.almt-weblinks-header p {
    margin: 0;

    color: #333333;
    line-height: 1.65;
}

.almt-weblinks-header strong {
    color: #252671;
}


/* ==========================================
   Responsive Weblinks
   ========================================== */

@media (max-width: 767.98px) {

    /* Categorías en una sola columna */
    .com-weblinks-categories .com-content-categories__items {
        grid-template-columns: 1fr;
        margin-top: 6px;
    }

    .com-weblinks-categories .com-content-categories__item > .w-100 {
        flex-wrap: wrap;
    }

    /* Cabezote */
    .almt-weblinks-header {
        flex-direction: column;
        align-items: flex-start;

        padding: 22px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .almt-weblinks-header-icon {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}

@media (max-width: 767.98px) {
  .com-weblinks .item-title,
  .com-weblinks .item-title a {
    font-size: 1.25rem !important;
    line-height: 1.35;
  }
}

/* Texto de descripción Weblinks - móvil */
@media (max-width: 767.98px) {
  .com-weblinks .item-content p {
    font-size: 1.1rem !important;
    line-height: 1.6;
  }
}

/* ------------------------------------------
   14.4 - Página de error
   ------------------------------------------ */

html.error-page .error-code {
  margin: 0 0 1rem;
  font-size: 6rem;
  line-break: auto;
  text-align: center !important;
}


/* ------------------------------------------
   Menú lateral Alamarte
   Clase del módulo: almt-side-menu

   El módulo comienza en el segundo nivel del
   menú Joomla (hijos de Store / Tienda).
   ------------------------------------------ */

/* Lista principal del módulo */
.almt-side-menu .sp-module-content > ul.mod-menu {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Elementos mostrados: hijos de Store / Tienda */
.almt-side-menu .sp-module-content > ul.mod-menu > li > a {
  display: block !important;
  position: relative !important;
  padding: 10px 12px 10px 16px !important;
  color: #0099ff !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition:
    color .2s ease,
    background-color .2s ease !important;
}

/* Font Awesome: fa-chevron-right */
.almt-side-menu .sp-module-content > ul.mod-menu > li > a::before {
  content: "\f054" !important;
  font-family:
    "Font Awesome 6 Free",
    "Font Awesome 5 Free",
    "FontAwesome" !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-weight: 900 !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;

  display: inline-block !important;
  width: 1em !important;
  margin-right: 8px !important;

  color: #0099ff !important;
  font-size: 0.75em !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Hover */
.almt-side-menu .sp-module-content > ul.mod-menu > li > a:hover {
  color: #ffffff !important;
  background-color: #252671 !important;
}

.almt-side-menu .sp-module-content > ul.mod-menu > li > a:hover::before {
  color: #ffffff !important;
}

/* Elemento activo */
.almt-side-menu .sp-module-content > ul.mod-menu > li.current > a,
.almt-side-menu .sp-module-content > ul.mod-menu > li.active > a,
.almt-side-menu .sp-module-content > ul.mod-menu > li > a[aria-current="page"] {
  color: #ffffff !important;
  background-color: #0099ff !important;
}

.almt-side-menu .sp-module-content > ul.mod-menu > li.current > a::before,
.almt-side-menu .sp-module-content > ul.mod-menu > li.active > a::before,
.almt-side-menu .sp-module-content > ul.mod-menu > li > a[aria-current="page"]::before {
  color: #ffffff !important;
}


/* ========================================
   SECCIÓN 15: jDOWNLOADS - TODOS LOS ESTILOS
   Categorías, descargas, fichas, layouts
   ======================================== */

/* ------------------------------------------
   15.1 - Footer y elementos generales jD
   ------------------------------------------ */
.jd_footer {
  display: none !important;
}

.jd_featured_star {
  display: none !important;
}

.jwajaxvote-star-rating,
.jwajaxvote-box {
  display: none !important;
}

/* ------------------------------------------
   15.2 - Títulos categorías
   ------------------------------------------ */

/* Título principal categoría (v46) */
.jd_categories_title_v46,
.jd_categories_title_v46 a {
  padding-left: 10px !important;
  font-size: 28px !important;
  font-weight: bold !important;
  color: #0099ff !important;
}

/* Ícono carpeta antes del título */
.jd_categories_title_v46 a::before {
  content: "\f07c";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  display: inline-block;
  margin-right: 8px;
  font-size: 1.2em;
  color: #252671;
  vertical-align: middle;
}

.jd_categories_title_v46:not(:has(a))::before {
  content: "\f07c";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  display: inline-block;
  margin-right: 8px;
  font-size: 1.2em;
  color: #252671;
  vertical-align: middle;
}

/* Título subcategoría (39) */
.jd_categories_title39,
.jd_categories_title39 a {
  text-decoration: underline !important;
  font-size: 22px !important;
  padding-left: 10px !important;
  padding-top: 50px !important;
  font-weight: bolder !important;
  color: #0099ff !important;
}

.jd_categories_title39 a::before {
  content: "\f12e";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  display: inline-block;
  margin-right: 8px;
  font-size: 1.2em;
  color: #252671;
  vertical-align: middle;
}

.jd_cats_sum_subcats {
  display: none !important;
}

/* ------------------------------------------
   15.3 - Títulos descargas y enlaces
   ------------------------------------------ */
.jd_files_title39 {
  font-weight: bold !important;
  font-size: 18px !important;
}

.jd_download_url {
  padding-top: 75px;
  text-decoration: underline !important;
  font-weight: bold !important;
  font-size: 18px !important;
  display: inline-block;
  color: #252671;
}

.d-flex.align-items-center.p-3.pt-4 {
  background-color: #ffffff !important;
}

/* ------------------------------------------
   15.4 - Botón descargar moderno
   ------------------------------------------ */
.jd_download_url_position {
  clear: both !important;
  float: none !important;
  text-align: center !important;
  display: block !important;
  margin: 30px auto 10px auto !important;
  padding-top: 0 !important;
  margin-bottom: 30px;
}

.jd_download_url_position a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  background: #0099ff;
  background-image: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
  color: #fff !important;
  padding: 12px 28px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  width: 450px !important;
  max-width: 100% !important;
}

.jd_download_url_position a:hover {
  background-color: #252671 !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}

/* Ícono download antes del botón */
.jd_download_url_position a::before {
  content: "\f019";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.1rem;
  display: inline-block;
}

/* ------------------------------------------
   15.5 - Ficha principal descarga (divTable)
   ------------------------------------------ */
.jd_div_table {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
}

.jd_div_table .divTableHeading {
  display: none !important;
}

.jd_div_table .divTableRow {
  display: block !important;
  padding: 25px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  max-width: 650px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .3s ease;
}

.jd_div_table .divTableRow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.jd_div_table .divTableCell {
  display: block !important;
  padding: 16px 10px;
  font-size: 1rem;
  text-align: left !important;
  word-break: break-word;
  border: none !important;
  box-shadow: none !important;
}

/* Etiquetas responsive de la ficha Summary.
   El texto y los iconos los genera summary/default.php.
   Las etiquetas se traducen con las claves nativas de jDownloads. */
.jd_div_table .almt-summary-responsive-label {
  display: flex !important;
  align-items: center;
  margin-bottom: 6px;
  color: #252671;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.jd_div_table .almt-summary-label-icon {
  flex: 0 0 18px;
  width: 18px;
  margin-right: 10px !important;
  color: #20a5f9;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.jd_div_table .divTableCell span,
.jd_div_table .divTableCell {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
}

/* ==========================================
   ALAMARTE - CLASE GLOBAL ICONOS FONT AWESOME
   ========================================== */
.alamarte-fa {
  margin-right: 6px;
  opacity: 0.85;
  font-size: 1.5em;
  vertical-align: middle;
  color: #0099ff !important;
}


/* Estilos campos individuales */
.jd_div_table .divTableRow .divTableCell:first-child {
  color: #0099ff !important;
  font-size: 110% !important;
  font-weight: 600 !important;
}

.jd_div_table .divTableRow .divTableCell:nth-child(2) {
  font-weight: 600 !important;
  color: #0099ff !important;
  font-size: 105% !important;
}

.jd_div_table .divTableRow .divTableCell:nth-child(3) {
  font-weight: 600 !important;
  color: #0099ff !important;
  font-size: 95% !important;
}

.jd_div_table .divTableRow .divTableCell:nth-child(3) a::after {
  content: "\f35d";
  font-family: "Font Awesome 5 Free";
  font-weight: 600 !important;
  padding-left: 6px;
  color: #0099ff;
  font-size: 95%;
}

.jd_div_table .divTableRow .divTableCell:nth-child(4) {
  font-weight: bold !important;
  color: #0099ff !important;
  font-size: 100% !important;
}

/* ------------------------------------------
   15.6 - Texto licencia con scroll
   ------------------------------------------ */
.jd-license-text {
  max-width: 650px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .3s ease;
  text-align: left !important;
  overflow: visible !important;
  max-height: none !important;
}

.jd-license-text:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

#jd_license_text {
  max-height: 220px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #bfbfbf #f0f0f0;
}

#jd_license_text::-webkit-scrollbar {
  width: 8px;
}

#jd_license_text::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

#jd_license_text::-webkit-scrollbar-thumb {
  background: #bfbfbf;
  border-radius: 10px;
}

#jd_license_text::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.jd-license-text * {
  text-align: left !important;
}

/* ------------------------------------------
   15.7 - Checkbox licencia + botón submit
   ------------------------------------------ */
.jd-license-checkbox {
  max-width: 650px;
  margin: 60px auto;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .3s ease;
}

.jd-license-checkbox:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.jd-license-checkbox form {
  display: block;
  text-align: left !important;
}

.jd-license-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  vertical-align: middle;
}

.jd-license-checkbox b {
  font-size: 1rem;
  color: #252671;
  font-weight: 600;
  vertical-align: middle;
}

#jd_license_submit {
  margin-top: 15px;
  padding: 12px 28px;
  background: #006dcc !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 1rem;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: background .2s ease, transform .2s ease, box-shadow .3s ease;
}

#jd_license_submit:hover:enabled {
  background: #005bb5 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}

#jd_license_submit:disabled {
  background: #9cbdd8 !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* ------------------------------------------
   15.8 - Layout campos descargas (wrapper)
   ------------------------------------------ */

/* Remover estilos antiguos únicamente de las filas de campos.
   No afectar títulos, listas, code, hr ni otros contenidos de acordeones. */
.jd_fields > .jd_field_row,
.jd_fields > .jd_field_row > .jd_field_title,
.jd_fields > .jd_field_row > .jd_field_value,
.jd_fields > .jd_field_row > span {
  border: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

.jd_fields > .jd_field_row > span,
.jd_fields > .jd_field_row > * {
  border-right: none !important;
  border-left: none !important;
  background: none !important;
}

.jd_fields {
  border: none !important;
  background: none !important;
}

.jd_field_row {
  border-style: none !important;
  background: none !important;
}

/* Wrapper moderno campos */
.jd_fields_wrapper {
  clear: both !important;
  float: none !important;
  position: relative !important;
  z-index: 2 !important;
  background: #ffffff !important;
  border: 1px solid #dcdcdc !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
  padding: 0 !important;
  max-width: 450px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 50px !important;
  margin-bottom: 30px !important;
  overflow: hidden !important;
  display: block !important;
  width: 100% !important;
}

.jd_fields_wrapper:not(:only-child) {
  margin-left: auto !important;
  margin-right: auto !important;
}

.jd_fields_wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12) !important;
  transition: transform .2s ease, box-shadow .3s ease;
}

.jd_fields_caption {
  background: rgba(0, 153, 255, 0.1) !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #252671 !important;
  border-radius: 14px 14px 0 0 !important;
  border: none !important;
  width: 100% !important;
}

.jd_fields {
  padding: 15px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  background: transparent !important;
}

.jd_field_row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed #e3e3e3 !important;
}

.jd_field_row:last-child {
  border-bottom: none !important;
}

.jd_field_title {
  color: #252671 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

.jd_field_value {
  color: #0099ff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-align: right !important;
}

/* Campo tamaño en rojo */
.jd_field_row:nth-child(3) .jd_field_value {
  font-weight: 700 !important;
  color: #c1121f !important;
  font-style: italic !important;
}

/* Campo Precio - Font Awesome */
.jd_field_row:last-child .jd_field_title::before {
  content: "\f571";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  display: inline-block;
  font-size: 1.5em;
  vertical-align: middle;
  color: #0099ff !important;
  opacity: 0.85;
  margin-right: 10px;
}

.jd_field_row:last-child .jd_field_value {
  font-weight: 700 !important;
  color: #28a745 !important;
  font-size: 1.05rem !important;
}

/* Responsive campos */
@media (max-width: 480px) {
  .jd_field_row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .jd_field_value {
    text-align: left !important;
  }
}

/* Campos Precio y SHA-256.
   Mantener después de las reglas genéricas basadas en :last-child. */
.jd_fields .almt-sha256-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
    width: 100%;
}

.almt-sha256-title {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    white-space: nowrap;
}

.almt-sha256-title .fa-fingerprint {
    flex: 0 0 20px;
    min-width: 20px;
    color: #20a5f9;
    font-size: 1.25rem;
    text-align: center;
}

.almt-sha256-value {
    display: block !important;
    width: 100%;
    max-width: 100%;
    padding-left: 30px;
    box-sizing: border-box;
    text-align: left !important;
}

.almt-sha256-value code {
    display: block;
    width: 100%;
    max-width: 100%;
    color: #e91e63;
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-height: 1.5;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    user-select: all;
}
/* Evitar que el icono de precio basado en :last-child pase a SHA-256 */
.jd_fields .almt-price-row::before,
.jd_fields .almt-price-row .jd_field_title::before,
.jd_fields .almt-sha256-row::before,
.jd_fields .almt-sha256-row .jd_field_title::before {
    content: none !important;
    display: none !important;
}

/* Icono explícito del precio */
.almt-price-title {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.almt-price-title .fa-file-invoice-dollar {
    flex: 0 0 20px;
    min-width: 20px;
    color: #20a5f9;
    font-size: 1.25rem;
    text-align: center;
}

/* ------------------------------------------
   15.9 - Encabezados ocultos de jDownloads
   Se conserva únicamente la regla efectiva.
   ------------------------------------------ */
.jd_files_title39,
.jd_cats_subheader,
.jd_subcats_title_text {
  display: none !important;
}

/* ------------------------------------------
   15.10 - Subcategorías
   ------------------------------------------ */
.jd_subcat_pagination_inner_wrapper {
  padding: 5px 0;
  display: inline-block;
  text-align: left;
  width: 100%;
  border-bottom: 0px solid #cccccc !important;
}

.jd_subcats_main {
  width: 100%;
  word-wrap: break-word;
  box-sizing: border-box;
  border-bottom: 0;
}

.jd_subcat_pagination_inner_wrapper,
.jd_subcats_main,
.jd_subcats_main *,
.jd_subcat_pagination_inner_wrapper * {
  border-bottom: none !important;
  border-top: none !important;
}

/* ------------------------------------------
   15.11 - Caja changelog
   ------------------------------------------ */
.jd_changelog_box {
  border: 1px solid #d9d9d9;
  background: #fafbff;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 12px 0 20px;
  box-sizing: border-box;
}

.jd_changelog_title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #2a2a2a;
}

.jd_changelog_value {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  line-height: 1.55;
  color: #1f2a44;
  padding-left: 10px !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ------------------------------------------
   15.12 - Acordeón Información jDownloads
   ------------------------------------------ */
.almt-accordion-chk {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.jd_fields_wrapper .jd_fields_caption {
    cursor: pointer;
}

.jd_fields_wrapper .jd_fields_caption i:first-child,
.jd_fields_wrapper .jd_fields_caption .fa-info-circle,
.jd_fields_wrapper .jd_fields_caption .fa-circle-info {
    margin-right: 10px !important;
}

.almt-arrow {
    transition: transform 0.25s ease;
    transform: rotate(-90deg);
    margin-left: 30px;
}

.jd_fields_wrapper .jd_fields.almt-accordion-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 !important;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.jd_fields_wrapper .almt-accordion-chk:checked + label + .jd_fields.almt-accordion-body {
    max-height: 600px;
    opacity: 1;
    padding: 15px 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.jd_fields_wrapper .almt-accordion-chk:focus-visible + label.jd_fields_caption {
    outline: 3px solid rgba(0, 153, 255, 0.42) !important;
    outline-offset: 2px;
}

/* Caption azul cuando abierto */
.jd_fields_wrapper .almt-accordion-chk:checked + label.jd_fields_caption {
    background: #252671 !important;
    color: #ffffff !important;
}

/* Flecha de los acordeones alineada al extremo derecho */
.jd_fields_wrapper .jd_fields_caption {
    position: relative !important;
    padding: 12px 56px !important;
    box-sizing: border-box !important;
}

.jd_fields_wrapper .jd_fields_caption .almt-arrow {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    margin: 0 !important;
    transform: translateY(-50%) rotate(-90deg) !important;
}

.jd_fields_wrapper .almt-accordion-chk:checked
+ label.jd_fields_caption
.almt-arrow {
    transform: translateY(-50%) rotate(0deg) !important;
}

/* Registro de cambios con desplazamiento vertical */
.jd_download_details_wrapper.almt-download-card
> .jd_content_wrapper
> .jd_fields_wrapper.almt-changelog-wrapper
> .almt-accordion-chk:checked
+ label.jd_fields_caption
+ .jd_fields.almt-accordion-body.almt-changelog-body {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 420px !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #252671 rgba(37, 38, 113, 0.10);
}

/* Barra de desplazamiento del registro de cambios: Chrome, Edge y Safari */
.jd_download_details_wrapper.almt-download-card
> .jd_content_wrapper
> .jd_fields_wrapper.almt-changelog-wrapper
> .jd_fields.almt-changelog-body::-webkit-scrollbar {
    width: 9px;
}

.jd_download_details_wrapper.almt-download-card
> .jd_content_wrapper
> .jd_fields_wrapper.almt-changelog-wrapper
> .jd_fields.almt-changelog-body::-webkit-scrollbar-track {
    background: rgba(37, 38, 113, 0.08);
    border-radius: 999px;
}

.jd_download_details_wrapper.almt-download-card
> .jd_content_wrapper
> .jd_fields_wrapper.almt-changelog-wrapper
> .jd_fields.almt-changelog-body::-webkit-scrollbar-thumb {
    background: #252671;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
}

.jd_download_details_wrapper.almt-download-card
> .jd_content_wrapper
> .jd_fields_wrapper.almt-changelog-wrapper
> .jd_fields.almt-changelog-body::-webkit-scrollbar-thumb:hover {
    background: #0099ff;
}

@media (max-width: 575.98px) {
    .jd_download_details_wrapper.almt-download-card
    > .jd_content_wrapper
    > .jd_fields_wrapper.almt-changelog-wrapper
    > .almt-accordion-chk:checked
    + label.jd_fields_caption
    + .jd_fields.almt-accordion-body.almt-changelog-body {
        max-height: 360px !important;
    }
}

/* ------------------------------------------
   Registro de cambios: formato interno
   Debe permanecer al final de la sección 15.12
   ------------------------------------------ */

/* Contenedores y ajuste al ancho disponible */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body,
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_box,
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Contenido general */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value {
    padding: 16px 20px !important;
    color: #1f2a44;
    font-size: 1.06rem !important;
    line-height: 1.72;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Título principal */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value > h4 {
    margin: 0 0 24px !important;
    padding: 14px 18px;
    color: #252671;
    background: rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 153, 255, 0.20);
    border-radius: 10px;
    font-size: 1.22rem !important;
    font-weight: 700;
    line-height: 1.4;
}

/* Título de cada versión */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value > h5 {
    margin: 30px 0 18px !important;
    padding: 10px 14px;
    color: #ffffff;
    background: #252671;
    border-radius: 8px;
    font-size: 1.1rem !important;
    font-weight: 700;
    line-height: 1.45;
}

/* Primera versión: sin espacio superior excesivo */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value > h4 + h5 {
    margin-top: 0 !important;
}

/* Fecha de la versión */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value > h5 small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem !important;
    font-weight: 400;
}

/* Títulos de secciones */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value > h6 {
    margin: 24px 0 12px !important;
    color: #0099ff;
    font-size: 1.02rem !important;
    font-weight: 700;
    line-height: 1.45;
}

/* Listas */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value ul {
    margin: 0 0 22px !important;
    padding-left: 26px !important;
}

/* Texto normal del registro */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value li {
    margin-bottom: 11px;
    padding-left: 4px;
    font-size: 1.06rem !important;
    line-height: 1.72;
}

.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value li:last-child {
    margin-bottom: 0;
}

/* Fragmentos técnicos */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value code {
    max-width: 100%;
    padding: 2px 5px;
    color: #b42367;
    background: rgba(233, 30, 99, 0.08);
    border-radius: 4px;
    font-size: 0.92em;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Separación entre versiones */
.jd_download_details_wrapper.almt-download-card
.almt-changelog-body .jd_changelog_value hr {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid rgba(37, 38, 113, 0.16);
}

/* Ajustes móviles */
@media (max-width: 575.98px) {
    .jd_download_details_wrapper.almt-download-card
    .almt-changelog-body .jd_changelog_value {
        padding: 14px 15px !important;
        font-size: 1rem !important;
    }

    .jd_download_details_wrapper.almt-download-card
    .almt-changelog-body .jd_changelog_value > h4 {
        padding: 12px 14px;
        font-size: 1.14rem !important;
    }

    .jd_download_details_wrapper.almt-download-card
    .almt-changelog-body .jd_changelog_value > h5 {
        font-size: 1.05rem !important;
    }

    .jd_download_details_wrapper.almt-download-card
    .almt-changelog-body .jd_changelog_value > h6 {
        font-size: 1rem !important;
    }

    .jd_download_details_wrapper.almt-download-card
    .almt-changelog-body .jd_changelog_value li {
        font-size: 1rem !important;
    }
}


/* ------------------------------------------
   15.13 - Limpieza de floats jDownloads
   Evita que el acordeón Información, botones y cajas posteriores
   queden absorbidos por descripciones con imágenes flotantes.
   ------------------------------------------ */
.jd_download_url_position,
.jd_back_button,
.jd_changelog_box,
.jd-license-text,
.jd-license-checkbox {
  clear: both !important;
  float: none !important;
}

.jd_description,
.jd_description39,
.jd_file_description,
.jd_download_description,
.jd_cat_description,
.jd_body,
.jd_body39,
.jd_download_wrapper,
.jd_file_wrapper {
  display: flow-root !important;
}

/* ------------------------------------------
   15.14 - Botón Volver jDownloads
   ------------------------------------------ */
.jd_back_button {
  width: 100% !important;
  text-align: center !important;
  margin: 12px 0 0 0 !important;
  padding: 0 5px !important;
  line-height: 18px !important;
  height: auto !important;
}

.jd_back_button a {
  display: inline-block !important;
  float: none !important;
}

/* ========================================
   SECCIÓN 16: jDOWNLOADS CATEGORÍAS Y DESCARGAS
   Estilos cards, imágenes, toggles
   ======================================== */

/* ------------------------------------------
   16.1 - Card contenedora categorías
   ------------------------------------------ */
.almt-cat-card {
  position: relative;
  padding: 20px;
  margin-bottom: 30px !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}

/* ------------------------------------------
   16.2 - Enlaces de imagen (wrapper clickeable)
   ------------------------------------------ */
.almt-cat-link,
.almt-link {
  display: inline-block;
  outline: 0;
  border-radius: 14px;
  text-decoration: none;
  float: left;
  padding-right: 20px;
  padding-bottom: 20px;
}

/* ------------------------------------------
   16.3 - Imágenes categorías con protección anticopy
   ------------------------------------------ */
.almt-cat-img,
.almt-img {
  display: block;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  
  /* PROTECCIÓN ANTICOPY */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Efectos hover y focus */
.almt-cat-link:hover .almt-cat-img,
.almt-cat-link:focus-visible .almt-cat-img,
.almt-link:hover .almt-img,
.almt-link:focus-visible .almt-img {
  transform: scale(1.02);
  filter: saturate(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.almt-cat-link:focus-visible,
.almt-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(25,115,230,.35);
}

/* ------------------------------------------
   16.4 - Toggle desplegable genérico
   ------------------------------------------ */
.almt-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0099FF;
  color: #fff;
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease;
  user-select: none;
}

.almt-toggle-label:hover {
  background: #0087e6;
}

.almt-toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .25s ease;
  opacity: 0;
  margin-top: 8px;
}

/* Selector genérico: funciona con cualquier ID que empiece con "toggle-text-" */
[id^="toggle-text-"]:checked ~ .almt-toggle-content {
  max-height: 80px;
  opacity: 1;
}

/* ------------------------------------------
   16.5 - Imágenes descargas (sin protección anticopy)
   ------------------------------------------ */
.descarga-imagen {
  display: inline-block !important;
  float: left !important;
  margin-right: 20px !important;
  position: relative !important;
  z-index: 1 !important;
  
  width: 190px !important;
  height: 100px !important;
  
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  
  /* PERMITE INTERACCIÓN */
  pointer-events: auto !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
}

.descarga-imagen:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 12px 24px rgba(0, 153, 255, 0.35) !important;
  border-radius: 16px !important;
  z-index: 10 !important;
}

.descarga-imagen img {
  pointer-events: auto !important;
  user-select: auto !important;
}

.descarga-imagen-joomill {
  display: inline-block !important;
  float: left !important;
  margin-right: 20px !important;
  position: relative !important;
  z-index: 1 !important;
  
  width: 106px !important;
  height: 100px !important;
  
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  
  /* PERMITE INTERACCIÓN */
  pointer-events: auto !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
}

.descarga-imagen-joomill:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 12px 24px rgba(0, 153, 255, 0.35) !important;
  border-radius: 16px !important;
  z-index: 10 !important;
}

.descarga-imagen-joomill img {
  pointer-events: auto !important;
  user-select: auto !important;
}

/* ------------------------------------------
   16.6 - Cards individuales para descargas

   Requiere envolver cada descarga del listado con:
   <div class="almt-download-card"> ... </div>

   En Detalles de la descarga se utiliza:
   <div class="jd_download_details_wrapper almt-download-card">
   ------------------------------------------ */

.almt-download-card {
  display: flow-root !important;
  clear: both !important;
  position: relative !important;

  width: 100% !important;
  max-width: 1160px !important;
  box-sizing: border-box !important;

  background: #ffffff !important;
  border: 1px solid rgba(37, 38, 113, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;

  padding: 26px 30px !important;
  margin: 0 auto 44px auto !important;
  overflow: visible !important;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.almt-download-card:hover {
  border-color: rgba(0, 153, 255, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.almt-download-card::after {
  content: "";
  display: block;
  clear: both;
}


/* Contenido principal de la tarjeta */
.almt-download-card .jd_content_wrapper {
  display: flow-root !important;
  clear: both !important;

  width: 100% !important;
  box-sizing: border-box !important;

  margin-top: 15px !important;

  /* Elimina las líneas heredadas de jDownloads. */
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}


/* Título principal */
.almt-download-card .jd_left {
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
}


/* Limpieza de elementos flotantes */
.almt-download-card .jd_rating,
.almt-download-card .jd_featured_pic,
.almt-download-card .jd_tags39,
.almt-download-card .jd_associations {
  clear: both !important;
}


/* Separación vertical del bloque Información */
.almt-download-card .jd_fields_wrapper {
  margin-top: 38px !important;
  margin-bottom: 26px !important;
}


/* Acordeones en Detalles de la descarga:
   ancho ampliado y centrado para Registro de cambios e Información del archivo. */
.jd_download_details_wrapper.almt-download-card
> .jd_content_wrapper
> .jd_fields_wrapper {
  width: 900px !important;
  max-width: calc(100% - 40px) !important;

  margin-left: auto !important;
  margin-right: auto !important;

  box-sizing: border-box !important;
}


/* Encabezado y cuerpo del acordeón:
   ocupan todo el ancho del bloque Información. */
.jd_download_details_wrapper.almt-download-card
> .jd_content_wrapper
> .jd_fields_wrapper
> .jd_fields_caption,
.jd_download_details_wrapper.almt-download-card
> .jd_content_wrapper
> .jd_fields_wrapper
> .jd_fields.almt-accordion-body {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}


/* Contenedor del botón Descargar */
.almt-download-card .jd_download_url_position {
  clear: both !important;
  float: none !important;

  margin-top: 28px !important;
  margin-bottom: 32px !important;

  padding-bottom: 0 !important;
}


/* Botón Descargar:
   ancho independiente de los acordeones. */
.almt-download-card .jd_download_url_position a {
  width: 450px !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
}


/* Oculta el preview vacío que jDownloads puede imprimir
   debajo del botón Descargar. */
.almt-download-card .jd_preview:empty,
.almt-download-card .jd_download_url_position + .jd_preview:empty {
  display: none !important;

  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}


/* Elimina margen residual del último limpiador */
.almt-download-card .jd_clear:last-child {
  margin-bottom: 0 !important;
}


/* Separación inferior de la última tarjeta */
.almt-download-card:last-of-type {
  margin-bottom: 24px !important;
}


/* ------------------------------------------
   16.7 - Aviso/alerta descarga
   ------------------------------------------ */
.descarga-aviso {
  font-size: 110% !important;
  padding: 20px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.85), rgba(0, 102, 204, 0.85)) !important;
  border-radius: 10px !important;
  display: block !important;
  max-width: 650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.2) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  text-align: left !important;
  width: fit-content !important;
}

.descarga-aviso:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 153, 255, 0.3) !important;
}

/* ------------------------------------------
   16.8 - Responsive móviles (≤768px)
   ------------------------------------------ */
@media (max-width: 768px) {
  
  /* Cards categorías */
  .almt-cat-card {
    padding: 20px;
  }
  
  .almt-cat-link,
  .almt-link {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    max-width: 300px;
    width: 100%;
  }
  
  .almt-cat-img,
  .almt-img {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .almt-toggle-label {
    padding: 10px 16px;
    font-size: 95%;
  }
  
  [id^="toggle-text-"]:checked ~ .almt-toggle-content {
    max-height: 100px;
  }
  
  /* Imágenes descargas */
  .descarga-imagen,
  .descarga-imagen-joomill {
    float: none !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
    max-width: 300px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Cards descargas */
  .almt-download-card {
    padding: 20px 16px !important;
    margin-bottom: 34px !important;
    border-radius: 16px !important;
  }

  .almt-download-card .jd_fields_wrapper,
  .almt-download-card .jd_download_url_position a,
  .jd_download_details_wrapper.almt-download-card
  > .jd_content_wrapper
  > .jd_fields_wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ------------------------------------------
   16.9 - Dark mode
   ------------------------------------------ */
@media (prefers-color-scheme: dark) {
  .almt-cat-card {
    background: #1f1f1f;
    color: #f1f3f5;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }

  .almt-cat-card .almt-cat-body,
  .almt-cat-card .almt-hub-body {
    color: inherit;
  }
}

/* ------------------------------------------
   16.10 - Movimiento reducido (accesibilidad)
   ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .almt-cat-img,
  .almt-img,
  .almt-toggle-content,
  .almt-download-card,
  .jd_fields_wrapper,
  .jd_div_table .divTableRow,
  .descarga-imagen,
  .descarga-imagen-joomill,
  .descarga-aviso,
  .almt-btn-descargas,
  .sppb-icons-group-list li a {
    transition: none !important;
  }

  .almt-cat-link:hover .almt-cat-img,
  .almt-cat-link:focus-visible .almt-cat-img,
  .almt-link:hover .almt-img,
  .almt-link:focus-visible .almt-img,
  .almt-download-card:hover,
  .jd_fields_wrapper:hover,
  .jd_div_table .divTableRow:hover,
  .descarga-imagen:hover,
  .descarga-imagen-joomill:hover,
  .descarga-aviso:hover,
  .almt-btn-descargas:hover,
  .sppb-icons-group-list li a:hover {
    transform: none !important;
    filter: none !important;
  }
}

/* ------------------------------------------
   16.11 - Botón "Ver todas las descargas" - estilo ALAMARTE
   ------------------------------------------ */
.almt-btn-descargas {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0099ff;
  color: #fff !important;
  padding: 12px 28px !important;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.almt-btn-descargas:hover {
  background: linear-gradient(135deg, #0078d4, #005bb5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.20);
  color: #fff !important;
}

.almt-btn-descargas i {
  font-size: 1.1rem;
}


/* ------------------------------------------
   16.12 - Cards de desarrolladores: logo + botón URL
   Requiere usar en la descripción de categoría:
   .almt-dev-card, .almt-cat-media y .almt-cat-body
   ------------------------------------------ */
.almt-dev-card {
  display: grid !important;
  grid-template-columns: minmax(260px, 380px) 1fr !important;
  gap: 20px !important;
  align-items: start !important;
}

.almt-dev-card .almt-cat-media {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
  min-width: 0 !important;
}

.almt-dev-card .almt-cat-body {
  min-width: 0 !important;
}

.almt-dev-card .almt-cat-body p:first-child {
  margin-top: 0 !important;
}

.almt-dev-card .almt-cat-body p:last-child {
  margin-bottom: 0 !important;
}

.almt-dev-card .almt-cat-link,
.almt-dev-card .almt-link {
  float: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 380px !important;
}

.almt-dev-card .almt-cat-img,
.almt-dev-card .almt-img {
  width: 100% !important;
  height: auto !important;
}

.almt-dev-card .almt-toggle-label {
  margin-top: 0 !important;
  align-self: flex-start !important;
}

/* Toggle URL: mantiene icono y enlace en la misma línea. */
.almt-dev-card .almt-toggle-content {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 380px !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.almt-dev-card .almt-toggle-content i {
  flex: 0 0 auto !important;
  margin-top: 3px !important;
}

.almt-dev-card .almt-toggle-content a {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* Refuerzo toggle URL desarrollador. */
.almt-dev-card [id^="toggle-text-"]:checked ~ .almt-toggle-content {
  max-height: 180px !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .almt-dev-card {
    grid-template-columns: 1fr !important;
  }

  .almt-dev-card .almt-cat-media {
    align-items: center !important;
  }

  .almt-dev-card .almt-cat-link,
  .almt-dev-card .almt-link {
    max-width: 300px !important;
  }

  .almt-dev-card .almt-toggle-label {
    align-self: center !important;
  }

  .almt-dev-card .almt-toggle-content {
    max-width: 300px !important;
    text-align: left !important;
  }
}


/* ------------------------------------------
   16.13 - Cards hub para categorías contenedoras
   Requiere usar en la descripción de categoría:
   .almt-hub-card, .almt-hub-media y .almt-hub-body
   ------------------------------------------ */
.almt-hub-card {
  display: grid !important;
  grid-template-columns: minmax(260px, 381px) 1fr !important;
  gap: 24px !important;
  align-items: center !important;
  min-height: 240px !important;
}

.almt-hub-card .almt-hub-media {
  min-width: 0 !important;
}

.almt-hub-card .almt-cat-link,
.almt-hub-card .almt-link {
  float: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 381px !important;
}

.almt-hub-card .almt-cat-img,
.almt-hub-card .almt-img {
  width: 100% !important;
  height: auto !important;
}

.almt-hub-card .almt-hub-body {
  min-width: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}

.almt-hub-card .almt-hub-body p:first-child {
  margin-top: 0 !important;
}

.almt-hub-card .almt-hub-body p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .almt-hub-card {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .almt-hub-card .almt-cat-link,
  .almt-hub-card .almt-link {
    max-width: 300px !important;
    margin: 0 auto !important;
  }

  .almt-hub-card .almt-hub-body {
    text-align: left !important;
  }
}


/* ------------------------------------------
   16.14 - Categorías contenedoras jDownloads
   Requiere agregar la clase de página:
   .almt-jd-parent-category
   en los elementos de menú padre, por ejemplo:
   Extensiones y Traducciones.
   ------------------------------------------ */
.almt-jd-parent-category .jd_categories_title_v46 .jd_categories_inner_wrapper,
.almt-jd-parent-category .jd_categories_title_v46 .jd_cats_sum_files,
.almt-jd-parent-category .jd_categories_title_v46 .jd_cats_sum_subcats {
  display: none !important;
}

/* Refuerzo por si jDownloads imprime los contadores fuera del wrapper interno. */
.almt-jd-parent-category .jd_cat_main > .jd_categories_title_v46 > .jd_cats_sum_files,
.almt-jd-parent-category .jd_cat_main > .jd_categories_title_v46 > .jd_cats_sum_subcats {
  display: none !important;
}

/* jDownloads: quitar la línea inferior del listado de categorías */
.jd_cat_main {
    border-bottom: none !important;
}

/* =========================================================
   jDownloads — Características del paquete
   ========================================================= */

.almt-package-details {
    clear: both;
    width: 100%;
    margin-top: 24px;
    color: #252671;
}

/* TÍTULO */
.almt-package-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 22px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 153, 255, 0.22);
    border-radius: 10px;
    background: rgba(0, 153, 255, 0.08);
    color: #252671;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.almt-package-heading i {
    color: #0099ff;
}

/* ARCHIVOS FUENTE */
.almt-package-source {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    line-height: 1.65;
}

.almt-package-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #252671;
    font-weight: 700;
}

.almt-package-label i {
    color: #0099ff;
}

/* CONTENIDO DEL PAQUETE */
.almt-package-content {
    margin-bottom: 28px;
}

.almt-package-subtitle {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #252671;
    font-weight: 700;
}

.almt-package-subtitle i {
    color: #0099ff;
}

/* TÍTULO ESTADO DE LA TRADUCCIÓN */
.almt-translation-status-title {
    margin-top: 28px;
    margin-bottom: 12px;
}

.almt-package-files {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.almt-package-files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 560px;
    padding: 9px 14px;
    border-left: 3px solid rgba(0, 153, 255, 0.45);
    border-radius: 0 7px 7px 0;
    background: rgba(37, 38, 113, 0.035);
}

.almt-package-files strong {
    min-width: 80px;
    color: #252671;
    text-align: right;
}

.almt-package-files small {
    font-size: 0.85em;
    font-weight: 500;
}

/* PROGRESO */
.almt-package-progress {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.almt-progress-row {
    display: grid;
    grid-template-columns: minmax(235px, 1.2fr) minmax(180px, 2fr) 65px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 9px;
    background: rgba(37, 38, 113, 0.035);
}

.almt-progress-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
}

.almt-progress-label i {
    width: 20px;
    color: #0099ff;
    text-align: center;
}

.almt-progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(37, 38, 113, 0.12);
}

.almt-progress-track > .almt-progress-fill,
.almt-progress-track > span {
    display: block;
    width: auto;
    height: 100%;
    min-height: 9px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #0099ff 0%,
        #252671 100%
    );
    font-size: 0;
    line-height: 0;
}

.almt-progress-value {
    color: #252671;
    font-weight: 700;
    text-align: right;
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
    .almt-progress-row {
        grid-template-columns: 1fr auto;
        gap: 10px 14px;
    }

    .almt-progress-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .almt-package-files li {
        align-items: flex-start;
    }
}



/* ------------------------------------------
   16.15 - Acordeón nativo Estado y características de la traducción
   Usa <details>/<summary> para conservar funcionamiento incluso sin JavaScript.
   ------------------------------------------ */
.almt-translation-accordion {
    clear: both;
    width: 900px;
    max-width: calc(100% - 40px);
    margin: 30px auto 26px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.almt-translation-accordion > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 12px 56px;
    box-sizing: border-box;
    background: rgba(0, 153, 255, 0.10);
    color: #252671;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    list-style: none;
}

.almt-translation-accordion > summary::-webkit-details-marker {
    display: none;
}

.almt-translation-accordion > summary::marker {
    content: "";
}

.almt-translation-accordion > summary > i:first-child {
    color: #252671;
}

.almt-translation-accordion > summary .almt-arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    margin: 0;
    transform: translateY(-50%) rotate(-90deg);
    transition: transform 0.25s ease;
}

.almt-translation-accordion[open] > summary {
    background: #252671;
    color: #ffffff;
}

.almt-translation-accordion[open] > summary > i:first-child {
    color: #ffffff;
}

.almt-translation-accordion[open] > summary .almt-arrow {
    transform: translateY(-50%) rotate(0deg);
}

.almt-translation-accordion > summary:focus-visible {
    outline: 3px solid rgba(0, 153, 255, 0.42);
    outline-offset: -3px;
}

.almt-translation-accordion-body {
    padding: 24px 24px 26px;
    box-sizing: border-box;
}

.almt-translation-accordion-body > .almt-package-subtitle:first-child {
    margin-top: 0;
}

.almt-translation-accordion .almt-package-files li {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .almt-translation-accordion {
        width: 100%;
        max-width: 100%;
    }

    .almt-translation-accordion > summary {
        justify-content: flex-start;
        padding: 12px 48px 12px 18px;
        font-size: 18px;
        text-align: left;
    }

    .almt-translation-accordion > summary .almt-arrow {
        right: 16px;
    }

    .almt-translation-accordion-body {
        padding: 20px 16px 22px;
    }
}

/* ==========================================
   SECCIÓN 17: PHOCA CART Y CARRITO DE COMPRAS
   ========================================== */


/* ------------------------------------------
   17.1 - Ficha de producto Phoca Cart
   ------------------------------------------ */

/* Ocultar fabricante en la ficha del producto */
#ph-pc-item-box .ph-item-manufacturer-box {
  display: none !important;
}

/* Espaciado entre grupos de especificaciones */
#phspecification > .ph-spec-group-title {
  margin-top: 28px;
  margin-bottom: 12px;
}

#phspecification > .ph-spec-group-title:first-of-type {
  margin-top: 8px;
}


/* ------------------------------------------
   17.2 - Icono cesta en título de módulo
   Clase del módulo: almt-title-shopping-basket
   ------------------------------------------ */

.almt-title-shopping-basket .sp-module-title::before {
  content: "\f291";
  font-family:
    "Font Awesome 6 Free",
    "Font Awesome 5 Free",
    "FontAwesome";
  font-weight: 900;
  display: inline-block;
  margin-right: 10px;
  color: #0099ff;
  font-size: 1em;
  vertical-align: middle;
}


/* ------------------------------------------
   17.3 - Confirmación «Añadido al carrito»
   Phoca Cart + header sticky de Helix Ultimate

   Helix eleva el header sticky a z-index 9999,
   mientras Phoca Cart usa 1051 para esta modal.
   Se eleva únicamente esta ventana y su backdrop
   cuando está abierta.
   ------------------------------------------ */

#phAddToCartPopup {
  z-index: 10050 !important;
}

body:has(#phAddToCartPopup.show) > .modal-backdrop {
  z-index: 10040 !important;
}


/* ------------------------------------------
   Alamarte Mini Cart
   Desde v1.0.5, la alineación y el diseño del
   módulo se gestionan desde el propio módulo.
   ------------------------------------------ */


/* ==========================================
   SECCIÓN 18: REDES SOCIALES - OFFCANVAS
   SP Page Builder - Grupo de iconos
   ========================================== */


/* ------------------------------------------
   18.1 - Respetar colores definidos en SPPB
   Clase del módulo: almt-social-offcanvas

   Helix aplica color directamente a los iconos
   Font Awesome dentro del Offcanvas. Esta regla
   permite que cada icono herede nuevamente el
   color configurado en su enlace desde SPPB.
   ------------------------------------------ */

.offcanvas-menu .almt-social-offcanvas .sppb-icons-group-list i.fa,
.offcanvas-menu .almt-social-offcanvas .sppb-icons-group-list i.fab,
.offcanvas-menu .almt-social-offcanvas .sppb-icons-group-list i.far,
.offcanvas-menu .almt-social-offcanvas .sppb-icons-group-list i.fas {
  color: inherit !important;
}


/* ==========================================
   SECCIÓN 19: SELECTOR DE IDIOMA
   Joomla mod_languages / Helix Ultimate
   ========================================== */


/* ------------------------------------------
   19.1 - Diseño general del selector
   ------------------------------------------ */

/* Contenedor del selector */
.mod-languages .mod-languages__select {
  display: inline-flex;
  vertical-align: middle;
}

/* ---------------------------------------------------------
   Botón principal
   --------------------------------------------------------- */

.mod-languages .mod-languages__select > .dropdown-toggle {
  min-width: 74px;
  height: 40px;
  min-height: 40px;
  padding: 0 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  color: #fff;
  background-color: #252671;
  border: 0;
  border-radius: 10px;

  font-size: 14px;
  line-height: 1;
  box-shadow: none;

  transition:
    background-color .2s ease,
    color .2s ease;
}

/* Bandera del botón */
.mod-languages .mod-languages__select > .dropdown-toggle img {
  width: 18px;
  height: auto;
  flex: 0 0 auto;
}

/* Hover y foco */
.mod-languages .mod-languages__select > .dropdown-toggle:hover,
.mod-languages .mod-languages__select > .dropdown-toggle:focus {
  color: #fff;
  background-color: #0099ff;
  border-color: transparent;
  box-shadow: none;
}

/* Botón abierto */
.mod-languages .mod-languages__select > .dropdown-toggle.show,
.mod-languages .mod-languages__select.show > .dropdown-toggle {
  color: #fff;
  background-color: #0099ff;
}

/* Chevron */
.mod-languages .dropdown-toggle::after {
  margin-left: 2px;
  vertical-align: middle;
}

/* =========================================================
   Desplegable de idiomas
   ========================================================= */

.mod-languages .lang-block.dropdown-menu {
  min-width: 135px;
  margin-top: 6px;
  padding: 6px;

  background-color: #fff;

  border: 1px solid rgba(37, 38, 113, .12);
  border-radius: 10px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

/* Elementos */
.mod-languages .lang-block.dropdown-menu li {
  margin: 0;
  padding: 0;
}

/* Enlaces */
.mod-languages .lang-block.dropdown-menu li > a {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 10px;

  color: #252671;
  background: transparent;
  border-radius: 7px;

  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;

  transition:
    color .2s ease,
    background-color .2s ease;
}

/* Banderas */
.mod-languages .lang-block.dropdown-menu li > a img {
  width: 18px;
  height: auto;
  flex: 0 0 auto;
}

/* Hover y foco */
.mod-languages .lang-block.dropdown-menu li > a:hover,
.mod-languages .lang-block.dropdown-menu li > a:focus {
  color: #fff;
  background-color: #252671;
}

/* Idioma activo */
.mod-languages .lang-block.dropdown-menu li.lang-active > a {
  color: #fff;
  background-color: #0099ff;
}

/* Idioma activo en hover o foco */
.mod-languages .lang-block.dropdown-menu li.lang-active > a:hover,
.mod-languages .lang-block.dropdown-menu li.lang-active > a:focus {
  color: #fff;
  background-color: #252671;
}

/* ------------------------------------------
   19.2 - Selector en encabezado
   Centrar menú y agrupar controles a la derecha
   ------------------------------------------ */

@media (min-width: 992px) {

  /* Contenedor general menú + selector */
  #sp-header #sp-menu .menu-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  /* NAV ocupa todo el espacio disponible */
  #sp-header #sp-menu .sp-megamenu-wrapper {
    flex: 1 1 auto !important;

    display: flex !important;
    align-items: center;
    justify-content: center !important;

    margin: 0 !important;
  }

  /* Lista del menú realmente centrada */
  #sp-header #sp-menu .sp-megamenu-parent {
    display: flex !important;
    align-items: center;
    justify-content: center;

    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Módulo del selector:
     ocupa únicamente su ancho real */
  #sp-header #sp-menu .menu-wrap > .sp-module:has(.mod-languages) {
    flex: 0 0 auto;

    margin-left: 8px !important;
    margin-right: 0 !important;
  }

  /* Selector alineado verticalmente */
  #sp-header #sp-menu .mod-languages {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Separación selector -> carrito/login */
  #sp-header .header-modules {
    margin-left: 8px !important;
  }

  /* Evitar margen adicional de Helix */
  #sp-header .header-modules > .sp-module:first-child {
    margin-left: 0 !important;
  }
}

  .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
    background: #FFFFFF;
    padding: 20px !important;
    text-align: left !important;
    margin-left: 20px !important;
}

/* ------------------------------------------
   19.3 - Selector en Offcanvas
   Centrado respecto a la misma línea visual de
   Usuario/Búsqueda y Mini Cart.

   Helix añade margen horizontal al contenedor
   .sp-module. Se neutraliza únicamente para el
   módulo que contiene mod_languages.
   ------------------------------------------ */

/* Fila completa del módulo Selector de idioma */
.offcanvas-menu .offcanvas-inner .sp-module:has(.mod-languages) {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Contenido del módulo centrado en todo el ancho útil */
.offcanvas-menu .offcanvas-inner .sp-module:has(.mod-languages) .sp-module-content {
  width: 100%;
}

.offcanvas-menu .offcanvas-inner .mod-languages {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.offcanvas-menu .offcanvas-inner .mod-languages__select {
  margin-left: auto;
  margin-right: auto;
}

/* En Offcanvas el botón y el desplegable conservan un ancho fijo
   para evitar cambios de tamaño al alternar el idioma activo. */
.offcanvas-menu .offcanvas-inner .mod-languages__select > .dropdown-toggle,
.offcanvas-menu .offcanvas-inner .lang-block.dropdown-menu {
  width: 140px;
  min-width: 140px;
}

.offcanvas-menu .offcanvas-inner .lang-block.dropdown-menu li > a {
  white-space: nowrap;
}

/* ==========================================================
   Alamarte Admin Menu
   Comparativa Core vs Pro - Mobile
   ========================================================== */

@media (max-width: 767.98px) {

  .almt-core-pro-mobile > .sppb-container-inner > .sppb-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .almt-core-pro-mobile > .sppb-container-inner > .sppb-row > .sppb-row-column {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }

  .almt-core-pro-mobile > .sppb-container-inner > .sppb-row > .sppb-row-column:nth-child(3n+1) {
    grid-column: 1 / -1 !important;
  }

  .almt-core-pro-mobile > .sppb-container-inner > .sppb-row > .sppb-row-column:not(:nth-child(3n+1)) {
    grid-column: auto !important;
  }

}

/* ==========================================================
   SP Page Builder - Offset global para acordeones
   Evita que el encabezado quede oculto bajo el header sticky
   ========================================================== */

.sppb-addon-accordion .sppb-panel-heading {
    scroll-margin-top: 170px !important;
}

/* ==========================================
   MENÚ LATERAL - DOCUMENTACIÓN ALAMARTE
   Clase del módulo: almt-doc-menu
   ========================================== */

.almt-doc-menu,
.almt-doc-menu .sp-module-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
    font-size: 16px;
}

/* Caja del menú - escritorio */
@media (min-width: 992px) {
    .almt-doc-menu {
        margin-left: -60px !important;

        width: 300px !important;
        max-width: 300px !important;

        padding: 16px 0 !important;

        background: #ffffff;
        border: 1px solid rgba(37, 38, 113, 0.14);
        border-radius: 16px;
        box-shadow: 0 6px 22px rgba(37, 38, 113, 0.10);

        overflow: hidden;
        box-sizing: border-box;
    }

}

/* Eliminar sangrías heredadas */
.almt-doc-menu ul.mod-menu,
.almt-doc-menu ul.mod-menu ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.almt-doc-menu ul.mod-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Todos los enlaces y encabezados */
.almt-doc-menu ul.mod-menu li > a,
.almt-doc-menu ul.mod-menu li > span {
    display: block !important;

    width: calc(100% - 16px);
    margin: 2px 8px;

    box-sizing: border-box;

    color: #333333 !important;
    background: transparent !important;

    border-radius: 8px;

    font-size: 16px !important;
    line-height: 1.5;

    text-align: left;
    text-decoration: none !important;

    overflow-wrap: break-word;

    transition:
        color .2s ease,
        background-color .2s ease;
}

/* Nivel 1: Documentación */
.almt-doc-menu ul.mod-menu > li > a,
.almt-doc-menu ul.mod-menu > li > span {
    padding: 10px 8px !important;

    color: #252671 !important;
    font-weight: 700 !important;
}

/* Nivel 2: extensión */
.almt-doc-menu ul.mod-menu > li > ul > li > a,
.almt-doc-menu ul.mod-menu > li > ul > li > span {
    padding: 10px 8px 10px 18px !important;

    color: #252671 !important;
    font-weight: 700 !important;
}

/* Nivel 3 */
.almt-doc-menu ul.mod-menu > li > ul > li > ul > li > a,
.almt-doc-menu ul.mod-menu > li > ul > li > ul > li > span {
    padding: 9px 8px 9px 30px !important;
}

/* Nivel 4 */
.almt-doc-menu ul.mod-menu > li > ul > li > ul > li > ul > li > a,
.almt-doc-menu ul.mod-menu > li > ul > li > ul > li > ul > li > span {
    padding: 9px 8px 9px 42px !important;
}

/* Encabezados */
.almt-doc-menu ul.mod-menu li > span {
    color: #252671 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* Padres de la ruta activa */
.almt-doc-menu ul.mod-menu li.active:not(.current) > a {
    color: #252671 !important;
    background: transparent !important;
    font-weight: 700 !important;
}

/* Hover de enlaces no activos */
.almt-doc-menu ul.mod-menu li:not(.current) > a:hover,
.almt-doc-menu ul.mod-menu li:not(.current) > a:focus {
    color: #ffffff !important;
    background: #252671 !important;
    border-radius: 8px !important;
}

/* Elemento actual */
.almt-doc-menu ul.mod-menu li.current > a,
.almt-doc-menu ul.mod-menu li > a[aria-current="page"] {
    color: #ffffff !important;
    background: #0099ff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

/* El activo conserva #0099ff en hover */
.almt-doc-menu ul.mod-menu li.current > a:hover,
.almt-doc-menu ul.mod-menu li.current > a:focus,
.almt-doc-menu ul.mod-menu li > a[aria-current="page"]:hover,
.almt-doc-menu ul.mod-menu li > a[aria-current="page"]:focus {
    color: #ffffff !important;
    background: #0099ff !important;
    border-radius: 8px !important;
}

/* ------------------------------------------
   Acordeón del menú de documentación
   El plegado inicial funciona solo con CSS.
   JavaScript añade los controles interactivos.
   ------------------------------------------ */

/* Detectar cualquier elemento que tenga submenú */
.almt-doc-menu ul.mod-menu li:has(> ul),
.almt-doc-menu li.almt-doc-has-children {
    position: relative;
}

/* Reservar espacio para el control de apertura/cierre cuando exista */
.almt-doc-menu ul.mod-menu li:has(> ul) > a,
.almt-doc-menu ul.mod-menu li:has(> ul) > span,
.almt-doc-menu li.almt-doc-has-children > a,
.almt-doc-menu li.almt-doc-has-children > span {
    padding-right: 42px !important;
}

/* Cerrar por defecto todas las ramas internas */
.almt-doc-menu ul.mod-menu li:has(> ul) > ul {
    display: none !important;
}

/* El primer nivel (Documentación / Documentation) siempre permanece abierto */
.almt-doc-menu ul.mod-menu > li:has(> ul) > ul {
    display: block !important;
}

/* Mantener abierta la ruta que contiene el elemento actual */
.almt-doc-menu ul.mod-menu li.current > ul,
.almt-doc-menu ul.mod-menu li:has(> a[aria-current="page"]) > ul,
.almt-doc-menu ul.mod-menu li:has(ul li.current) > ul,
.almt-doc-menu ul.mod-menu li:has(ul a[aria-current="page"]) > ul {
    display: block !important;
}

/* JavaScript puede abrir manualmente cualquier otra rama */
.almt-doc-menu ul.mod-menu li.almt-doc-open > ul {
    display: block !important;
}

/* Botón del acordeón */
.almt-doc-menu .almt-doc-toggle {
    position: absolute;
    top: 5px;
    right: 8px;
    z-index: 2;

    width: 32px;
    height: 32px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;
    border-radius: 8px;

    color: #252671;
    cursor: pointer;

    font: inherit;
    line-height: 1;

    transition:
        color .2s ease,
        background-color .2s ease;
}

/* Flecha */
.almt-doc-menu .almt-doc-toggle::before {
    content: "›";
    display: block;

    color: currentColor;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;

    transform: rotate(0deg);
    transform-origin: center;
    transition: transform .2s ease;
}

/* Rama abierta por JavaScript: flecha hacia abajo */
.almt-doc-menu li.almt-doc-open > .almt-doc-toggle::before {
    transform: rotate(90deg);
}

/* Hover y foco del control */
.almt-doc-menu .almt-doc-toggle:hover,
.almt-doc-menu .almt-doc-toggle:focus-visible {
    color: #ffffff;
    background: #252671;
}

/* Foco accesible */
.almt-doc-menu .almt-doc-toggle:focus-visible {
    outline: 2px solid #0099ff;
    outline-offset: 2px;
}

/* El control no hereda el fondo del enlace actual */
.almt-doc-menu li.current > .almt-doc-toggle,
.almt-doc-menu li.active > .almt-doc-toggle {
    color: #252671;
}

.almt-doc-menu li.current > .almt-doc-toggle:hover,
.almt-doc-menu li.current > .almt-doc-toggle:focus-visible,
.almt-doc-menu li.active > .almt-doc-toggle:hover,
.almt-doc-menu li.active > .almt-doc-toggle:focus-visible {
    color: #ffffff;
}


/* ==========================================
   DISTRIBUCIÓN DE COLUMNAS
   Menú 300 px + contenido principal
   ========================================== */

@media (min-width: 992px) {

    body:has(.almt-doc-menu) #sp-left {
        flex: 0 0 320px !important;
        width: 320px !important;
        max-width: 320px !important;
    }

    body:has(.almt-doc-menu) #sp-component {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}


/* ==========================================
   TABLET Y MÓVIL
   Texto normal mínimo: 18 px
   ========================================== */

@media (max-width: 700px) {

    .almt-doc-menu,
    .almt-doc-menu .sp-module-content {
        font-size: 18px;
    }

    .almt-doc-menu ul.mod-menu li > a,
    .almt-doc-menu ul.mod-menu li > span {
        font-size: 18px !important;
        line-height: 1.6;
    }
}


/* ==========================================
   DOCUMENTACIÓN ALAMARTE - NAVEGACIÓN
   Anterior / Siguiente
   ========================================== */

body:has(.almt-doc-menu) .article-details .pagenavigation {
    margin: 28px 0 !important;
}

body:has(.almt-doc-menu) .article-details .pagenavigation a.btn,
body:has(.almt-doc-menu) .article-details .pagenavigation .btn.btn-sm {
    padding: 9px 16px !important;

    background-color: #0099ff !important;
    border-color: #0099ff !important;
    color: #ffffff !important;

    border-radius: 8px !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-decoration: none !important;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease !important;
}

body:has(.almt-doc-menu) .article-details .pagenavigation a.btn [class*="icon-"],
body:has(.almt-doc-menu) .article-details .pagenavigation .btn.btn-sm [class*="icon-"] {
    color: #ffffff !important;
}

body:has(.almt-doc-menu) .article-details .pagenavigation a.btn:hover,
body:has(.almt-doc-menu) .article-details .pagenavigation a.btn:focus,
body:has(.almt-doc-menu) .article-details .pagenavigation .btn.btn-sm:hover,
body:has(.almt-doc-menu) .article-details .pagenavigation .btn.btn-sm:focus {
    background-color: #252671 !important;
    border-color: #252671 !important;
    color: #ffffff !important;
}

body:has(.almt-doc-menu) .article-details .pagenavigation a.btn:hover [class*="icon-"],
body:has(.almt-doc-menu) .article-details .pagenavigation a.btn:focus [class*="icon-"],
body:has(.almt-doc-menu) .article-details .pagenavigation .btn.btn-sm:hover [class*="icon-"],
body:has(.almt-doc-menu) .article-details .pagenavigation .btn.btn-sm:focus [class*="icon-"] {
    color: #ffffff !important;
}


/* ==========================================
   DOCUMENTACIÓN ALAMARTE - ARTÍCULOS
   Clases reutilizables: .almt-doc-*
   ========================================== */

.almt-doc,
.almt-doc * {
    box-sizing: border-box;
}

.almt-doc {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 18px 0 40px;
    padding: 34px;

    position: relative;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(37, 38, 113, 0.14);
    border-radius: 20px;

    box-shadow: 0 10px 35px rgba(37, 38, 113, 0.12);

    font-size: 16px;
}

.almt-doc::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 7px;

    background: linear-gradient(
        90deg,
        #252671 0%,
        #4c4fb2 55%,
        #8de7eb 100%
    );
}

/* Introducción */
.almt-doc-intro {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.almt-doc-intro-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ccffff;
    color: #252671;

    border-radius: 50%;
    font-size: 24px;

    box-shadow: 0 5px 14px rgba(37, 38, 113, 0.14);
}

.almt-doc-intro-content {
    flex: 1;
    min-width: 0;
}

.almt-doc-intro-label {
    margin: 0 0 5px;

    color: #252671;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.almt-doc-intro-text {
    margin: 0;

    color: #4d4d5c;

    font-size: 16px;
    line-height: 1.7;
}

/* Bloque Primeros pasos */
.almt-doc-start {
    margin: 28px 0;
    padding: 22px 24px;

    background: #ccffff;

    border-left: 5px solid #252671;
    border-radius: 12px;

    color: #252671;

    font-size: 16px;
    line-height: 1.7;
}

.almt-doc-start strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.almt-doc-start p {
    margin: 0;
}

.almt-doc-start a {
    color: #252671;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.almt-doc-start a:hover,
.almt-doc-start a:focus {
    color: #0099ff;
}

/* Cuadrícula */
.almt-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 18px;
    margin: 28px 0;
}

/* Tarjetas */
.almt-doc-card {
    min-width: 0;
    padding: 22px;

    background: #f8f9fc;

    border: 1px solid rgba(37, 38, 113, 0.10);
    border-radius: 14px;
}

.almt-doc-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.almt-doc-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #252671;
    color: #ffffff;

    border-radius: 50%;
    font-size: 16px;
}

.almt-doc-card h2 {
    margin: 0;

    color: #252671;

    font-size: 19px;
    line-height: 1.3;
}

.almt-doc-card p {
    margin: 0 0 14px;

    color: #555563;

    font-size: 16px;
    line-height: 1.7;
}

/* Enlaces */
.almt-doc-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.almt-doc-links li {
    margin: 8px 0;
}

.almt-doc-links a {
    color: #252671;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;

    text-decoration: none;
    overflow-wrap: anywhere;
}

.almt-doc-links a::before {
    content: "›";
    display: inline-block;
    margin-right: 7px;
    color: #4c4fb2;
    font-weight: 700;
}

.almt-doc-links a:hover,
.almt-doc-links a:focus {
    color: #0099ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Tarjeta ancha */
.almt-doc-card-wide {
    grid-column: 1 / -1;
}

/* Nota final */
.almt-doc-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-top: 28px;
    padding: 20px 22px;

    background: #f8f9fc;

    border-left: 4px solid #8de7eb;
    border-radius: 10px;

    color: #555563;

    font-size: 16px;
    line-height: 1.7;
}

.almt-doc-note-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ccffff;
    color: #252671;

    border-radius: 50%;
    font-size: 17px;
}

.almt-doc-note-content {
    flex: 1;
    min-width: 0;
}

.almt-doc-note p {
    margin: 0;
}

.almt-doc-note strong {
    color: #252671;
}

/* Medios */
.almt-doc img {
    max-width: 100%;
    height: auto;
}

.almt-doc iframe,
.almt-doc video {
    max-width: 100%;
}

/* Portátil */
@media (max-width: 1199.98px) {
    .almt-doc {
        padding: 30px 26px;
    }

    .almt-doc-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }
}

/* Tablet en orientación vertical: documentación */
@media (min-width: 769px) and (max-width: 991.98px) and (orientation: portrait) {

    /* Índice de documentación */
    .almt-doc-index .com-content-category-blog__child {
        padding: 26px 22px 24px;
        border-radius: 16px;
    }

    .almt-doc-index .com-content-category-blog__child p {
        font-size: 18px;
        line-height: 1.7;
    }

    /* Menú lateral de documentación */
    .almt-doc-menu,
    .almt-doc-menu .sp-module-content {
        font-size: 18px;
    }

    .almt-doc-menu ul.mod-menu li > a,
    .almt-doc-menu ul.mod-menu li > span {
        font-size: 18px !important;
        line-height: 1.6;
    }

    /* Contenido de los artículos de documentación */
    .almt-doc {
        margin: 18px 0 28px;
        padding: 28px 22px;
        border-radius: 16px;
        font-size: 18px;
    }

    .almt-doc-intro {
        gap: 14px;
        margin-bottom: 24px;
    }

    .almt-doc-intro-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 20px;
    }

    .almt-doc-intro-label {
        font-size: 20px;
    }

    .almt-doc-intro-text {
        font-size: 18px;
        line-height: 1.7;
    }

    .almt-doc-start {
        margin: 24px 0;
        padding: 20px;
        font-size: 18px;
        line-height: 1.7;
    }

    .almt-doc-start strong {
        font-size: 20px;
    }

    /* En tablet se conservan las columnas automáticas existentes. */
    .almt-doc-grid {
        gap: 16px;
        margin: 24px 0;
    }

    .almt-doc-card {
        padding: 20px;
    }

    .almt-doc-card h2 {
        font-size: 20px;
    }

    .almt-doc-card p {
        font-size: 18px;
        line-height: 1.7;
    }

    .almt-doc-links a {
        font-size: 18px;
        line-height: 1.6;
    }

    .almt-doc-note {
        font-size: 18px;
        line-height: 1.7;
    }

    body:has(.almt-doc-menu) .article-details .pagenavigation a.btn,
    body:has(.almt-doc-menu) .article-details .pagenavigation .btn.btn-sm {
        padding: 10px 14px !important;
        font-size: 18px !important;
        line-height: 1.5 !important;
    }
}

/* Tablet y móvil: texto normal mínimo 18 px */
@media (max-width: 700px) {
    .almt-doc {
        margin: 18px 0 28px;
        padding: 28px 22px;
        border-radius: 16px;
        font-size: 18px;
    }

    .almt-doc-intro {
        gap: 14px;
        margin-bottom: 24px;
    }

    .almt-doc-intro-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 20px;
    }

    .almt-doc-intro-label {
        font-size: 20px;
    }

    .almt-doc-intro-text {
        font-size: 18px;
        line-height: 1.7;
    }

    .almt-doc-start {
        margin: 24px 0;
        padding: 20px;
        font-size: 18px;
        line-height: 1.7;
    }

    .almt-doc-start strong {
        font-size: 20px;
    }

    .almt-doc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }

    .almt-doc-card {
        padding: 20px;
    }

    .almt-doc-card-wide {
        grid-column: auto;
    }

    .almt-doc-card h2 {
        font-size: 20px;
    }

    .almt-doc-card p {
        font-size: 18px;
        line-height: 1.7;
    }

    .almt-doc-links a {
        font-size: 18px;
        line-height: 1.6;
    }

    .almt-doc-note {
        font-size: 18px;
        line-height: 1.7;
    }

    body:has(.almt-doc-menu) .article-details .pagenavigation a.btn,
    body:has(.almt-doc-menu) .article-details .pagenavigation .btn.btn-sm {
        padding: 10px 14px !important;
        font-size: 18px !important;
        line-height: 1.5 !important;
    }
}

/* Móviles estrechos */
@media (max-width: 480px) {
    .almt-doc {
        margin: 16px 0 24px;
        padding: 24px 16px;
        border-radius: 14px;
    }

    .almt-doc-intro {
        flex-direction: column;
        gap: 12px;
    }

    .almt-doc-intro-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 19px;
    }

    .almt-doc-start {
        padding: 18px;
        border-left-width: 4px;
    }

    .almt-doc-card {
        padding: 18px;
    }

    .almt-doc-card-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .almt-doc-card-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 16px;
    }

    .almt-doc-note {
        padding: 18px;
        gap: 12px;
    }

    .almt-doc-note-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }
}


/* ------------------------------------------
   Menú lateral de documentación - cierre manual del acordeón
   ------------------------------------------ */
.almt-doc-menu ul.mod-menu li.almt-doc-closed > ul {
  display: none !important;
}

/* Helix genera su propio span.menu-toggler.
   En documentación se usa exclusivamente .almt-doc-toggle. */
.almt-doc-menu .menu-toggler {
  display: none !important;
}

/* Los encabezados del menú de documentación también se pueden pulsar completos. */
.almt-doc-menu li.almt-doc-has-children > .mod-menu__heading {
  cursor: pointer;
}

/* ========================================
   Encabezados de menú
   ======================================== */
.sp-menu-heading {
  font-size: 102% !important;
  font-weight: bold !important;
}

/* Alias clicable a la categoría general de documentación */
.sp-megamenu-parent .sp-mega-group > li > a.almt-all-docs {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: 102% !important;
  font-weight: bold !important;
}



/* ==========================================
   DOCUMENTACIÓN ALAMARTE - ÍNDICE RESPONSIVE
   Clase del módulo: almt-doc-menu
   El control lo genera custom.js sobre el mismo menú Joomla.
   No utiliza el addon Navegación de SP Page Builder ni el toggler de Helix.
   ========================================== */

/* El botón existe en el DOM, pero en escritorio no altera el menú lateral. */
.almt-doc-menu .almt-doc-index-toggle {
    display: none;
}

@media (max-width: 991.98px) {

    /* El módulo ocupa el ancho disponible antes del contenido. */
    .almt-doc-menu {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 22px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .almt-doc-menu .sp-module-content {
        width: 100% !important;
        max-width: none !important;
    }

    /* Botón único Índice / Contents. */
    .almt-doc-menu.almt-doc-mobile-ready .almt-doc-index-toggle {
        position: relative;
        display: flex !important;
        align-items: center;
        width: 100%;
        min-height: 54px;
        margin: 0 !important;
        padding: 13px 58px 13px 50px !important;
        color: #ffffff !important;
        background: #252671 !important;
        border: 1px solid #252671 !important;
        border-radius: 14px !important;
        box-shadow: 0 5px 16px rgba(37, 38, 113, 0.16);
        font-family: inherit;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-align: left;
        cursor: pointer;
        transition:
            background-color .2s ease,
            border-color .2s ease,
            box-shadow .2s ease;
    }

    /* Burger Alamarte. */
    .almt-doc-menu .almt-doc-index-toggle::before {
        content: "";
        position: absolute;
        left: 20px;
        top: 50%;
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transform: translateY(-50%);
        box-shadow:
            0 -6px 0 currentColor,
            0 6px 0 currentColor;
    }

    /* Chevron del índice. */
    .almt-doc-menu .almt-doc-index-toggle::after {
        content: "";
        position: absolute;
        right: 20px;
        top: 50%;
        width: 10px;
        height: 10px;
        border-right: 3px solid currentColor;
        border-bottom: 3px solid currentColor;
        transform: translateY(-65%) rotate(45deg);
        transform-origin: center;
        transition: transform .2s ease;
    }

    .almt-doc-menu .almt-doc-index-toggle:hover,
    .almt-doc-menu .almt-doc-index-toggle:focus-visible,
    .almt-doc-menu .almt-doc-index-toggle[aria-expanded="true"] {
        color: #ffffff !important;
        background: #0099ff !important;
        border-color: #0099ff !important;
    }

    .almt-doc-menu .almt-doc-index-toggle[aria-expanded="true"] {
        border-radius: 14px 14px 0 0 !important;
        box-shadow: 0 5px 16px rgba(0, 153, 255, 0.16);
    }

    .almt-doc-menu .almt-doc-index-toggle[aria-expanded="true"]::after {
        transform: translateY(-35%) rotate(225deg);
    }

    .almt-doc-menu .almt-doc-index-toggle:focus-visible {
        outline: 2px solid #8de7eb !important;
        outline-offset: 2px !important;
    }

    /*
     * El primer LI representa Documentación / Documentation.
     * Su enlace real se conserva para escritorio, pero en móvil se oculta:
     * el botón Índice controla directamente su UL hijo y nunca navega.
     */
    .almt-doc-menu.almt-doc-mobile-ready ul.mod-menu > li > a,
    .almt-doc-menu.almt-doc-mobile-ready ul.mod-menu > li > span {
        display: none !important;
    }

    /* Cerrado por defecto: únicamente el submenú raíz del índice.
       Se aumenta la especificidad para prevalecer sobre la regla global
       que mantiene abierta la ruta activa del menú de documentación. */
    .almt-doc-menu.almt-doc-mobile-ready:not(.almt-doc-index-open) ul.mod-menu > li > ul {
        display: none !important;
    }

    /* Abierto por el botón Índice. Las ramas interiores conservan su acordeón. */
    .almt-doc-menu.almt-doc-mobile-ready.almt-doc-index-open ul.mod-menu > li > ul {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px 8px 14px !important;
        max-height: min(68vh, 620px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #ffffff;
        border: 1px solid rgba(37, 38, 113, 0.14);
        border-top: 0;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 8px 22px rgba(37, 38, 113, 0.12);
        box-sizing: border-box;
    }
}


/* ==========================================
   SECCIÓN 20: REGISTRO DE CAMBIOS PÚBLICO
   ES / EN
   ========================================== */


/* ------------------------------------------
   20.1 - Vista principal y fichas
   ------------------------------------------ */

/*
 * Sin ancla:
 * - muestra el índice;
 * - muestra Tipos de cambios / Change types;
 * - oculta las fichas de extensiones.
 */
.almt-changelog-public > .almt-changelog-entry {
    display: none;
}


/*
 * Separación entre:
 * índice + leyenda principal.
 */
.almt-changelog-public > .almt-doc-card + .almt-doc-card {
    margin-top: 30px;
}


/*
 * Separación dentro de cada extensión:
 * leyenda + ficha de extensión.
 */
.almt-changelog-entry > .almt-doc-card + .almt-doc-card {
    margin-top: 30px;
}


/*
 * Cuando existe una extensión seleccionada mediante ancla:
 * - oculta el índice;
 * - oculta la leyenda principal;
 * - deja visible únicamente la extensión seleccionada.
 */
.almt-changelog-public:has(> .almt-changelog-entry:target)
    > .almt-changelog-index,
.almt-changelog-public:has(> .almt-changelog-entry:target)
    > .almt-changelog-types-main {
    display: none;
}


.almt-changelog-public > .almt-changelog-entry:target {
    display: block;
    margin: 0;
}


/* ------------------------------------------
   20.2 - Anclas
   ------------------------------------------ */

/*
 * Escritorio:
 * header 100 px + 20 px.
 */
.almt-changelog-public > .almt-changelog-entry {
    scroll-margin-top: 120px;
}


/*
 * Tablet vertical:
 * header 140 px + 20 px.
 */
@media (min-width: 769px) and (max-width: 991.98px) and (orientation: portrait) {

    .almt-changelog-public > .almt-changelog-entry {
        scroll-margin-top: 160px;
    }
}


/*
 * Móvil:
 * header 140 px + 20 px.
 */
@media (max-width: 768px) {

    .almt-changelog-public > .almt-changelog-entry {
        scroll-margin-top: 160px;
    }
}


/* ------------------------------------------
   20.3 - Contenedor de badges
   ------------------------------------------ */

.almt-changelog-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}


/* ------------------------------------------
   20.4 - Badge base
   ------------------------------------------ */

.almt-changelog-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    min-height: 24px;
    padding: 4px 9px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;

    white-space: nowrap;
    vertical-align: middle;
}


/* ------------------------------------------
   20.5 - Tipos de cambio
   ------------------------------------------ */

/* AÑADIDO / ADDED */
.almt-changelog-badge--added {
    background: #8de7eb;
    color: #252671 !important;
}


/* CAMBIO / CHANGED */
.almt-changelog-badge--changed {
    background: #252671;
    color: #ffffff !important;
}


/* CORRECCIÓN / FIXED */
.almt-changelog-badge--fixed {
    background: #198754;
    color: #ffffff !important;
}


/* SEGURIDAD / SECURITY */
.almt-changelog-badge--security {
    background: #b42318;
    color: #ffffff !important;
}


/* IDIOMA / LANGUAGE */
.almt-changelog-badge--language {
    background: #4c4fb2;
    color: #ffffff !important;
}


/* ------------------------------------------
   20.6 - Ediciones
   ------------------------------------------ */

/* CORE */
.almt-changelog-badge--core {
    background: #ffffff;
    color: #252671 !important;
    border-color: #252671;
}


/* PRO */
.almt-changelog-badge--pro {
    background: linear-gradient(320deg, #115897, #113797);
    color: #ffffff !important;
}


/* CORE + PRO */
.almt-changelog-badge--core-pro {
    background: rgba(37, 38, 113, 0.08);
    color: #252671 !important;
    border-color: rgba(37, 38, 113, 0.35);
}


/* ------------------------------------------
   20.7 - Tooltips de Tipos de cambios
   Índice + leyenda de cada extensión
   ------------------------------------------ */

/*
 * Los tooltips se aplican únicamente a los badges
 * que tengan la clase .almt-changelog-tooltip.
 *
 * Los badges CORE / PRO / CORE + PRO y los badges
 * de clasificación que aparecen dentro del changelog
 * de cada extensión NO usan esta clase.
 */
.almt-changelog-types {
    position: relative;
}

.almt-changelog-types .almt-changelog-tooltip {
    position: relative;
    cursor: help;
}


/*
 * Caja del tooltip.
 * Se muestra ENCIMA del badge para evitar que quede
 * cortada por la parte inferior del contenedor.
 */
.almt-changelog-types .almt-changelog-tooltip::after {
    content: attr(data-tooltip);

    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);

    z-index: 50;

    width: max-content;
    max-width: 260px;

    padding: 8px 11px;

    background: #252671;
    color: #ffffff !important;

    border-radius: 7px;

    box-shadow: 0 5px 15px rgba(37, 38, 113, 0.22);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
    white-space: normal;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, 4px);

    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


/*
 * Flecha inferior del tooltip.
 */
.almt-changelog-types .almt-changelog-tooltip::before {
    content: "";

    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);

    z-index: 51;

    width: 0;
    height: 0;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #252671;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-50%);

    pointer-events: none;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}


/*
 * Mostrar con ratón o teclado.
 */
.almt-changelog-types .almt-changelog-tooltip:hover::after,
.almt-changelog-types .almt-changelog-tooltip:focus::after,
.almt-changelog-types .almt-changelog-tooltip:hover::before,
.almt-changelog-types .almt-changelog-tooltip:focus::before {
    opacity: 1;
    visibility: visible;
}


/*
 * Animación.
 */
.almt-changelog-types .almt-changelog-tooltip:hover::after,
.almt-changelog-types .almt-changelog-tooltip:focus::after {
    transform: translate(-50%, 0);
}


/*
 * Primer badge:
 * evitar desbordamiento por la izquierda.
 */
.almt-changelog-types
.almt-changelog-tooltip:first-child::after {
    left: 0;

    transform: translate(0, 4px);
}

.almt-changelog-types
.almt-changelog-tooltip:first-child:hover::after,
.almt-changelog-types
.almt-changelog-tooltip:first-child:focus::after {
    transform: translate(0, 0);
}

.almt-changelog-types
.almt-changelog-tooltip:first-child::before {
    left: 18px;
}


/*
 * Último badge:
 * evitar desbordamiento por la derecha.
 */
.almt-changelog-types
.almt-changelog-tooltip:last-child::after {
    right: 0;
    left: auto;

    transform: translate(0, 4px);
}

.almt-changelog-types
.almt-changelog-tooltip:last-child:hover::after,
.almt-changelog-types
.almt-changelog-tooltip:last-child:focus::after {
    transform: translate(0, 0);
}

.almt-changelog-types
.almt-changelog-tooltip:last-child::before {
    right: 18px;
    left: auto;

    transform: none;
}


/*
 * Foco accesible.
 */
.almt-changelog-types .almt-changelog-tooltip:focus-visible {
    outline: 2px solid #0099ff;
    outline-offset: 3px;
}


/* ------------------------------------------
   20.8 - Botón Volver / Back
   Regreso directo al índice del changelog
   ------------------------------------------ */

.almt-changelog-back-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
}


/*
 * Único botón, situado al final de cada ficha.
 */
.almt-changelog-back-row--bottom {
    margin: 20px 0 0;
}


/*
 * Botón Alamarte.
 */
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back {
    -webkit-appearance: none !important;
    appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    width: auto !important;
    min-width: 110px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 9px 18px !important;

    background-color: #0099ff !important;
    background-image: none !important;

    border: 1px solid #0099ff !important;
    border-radius: 8px !important;

    box-shadow: 0 4px 12px rgba(37, 38, 113, 0.16) !important;

    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;

    cursor: pointer !important;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        color .2s ease !important;
}


/* Icono */
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    color: #ffffff !important;

    font-size: 15px !important;
    line-height: 1 !important;
}


/* Texto */
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back span {
    display: inline-block !important;

    margin: 0 !important;

    color: #ffffff !important;

    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}


/* Hover / focus */
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back:hover,
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back:focus {
    background-color: #252671 !important;
    background-image: none !important;

    border-color: #252671 !important;

    box-shadow: 0 6px 16px rgba(37, 38, 113, 0.24) !important;

    color: #ffffff !important;
}


/* Texto e icono blancos en hover / focus */
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back:hover i,
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back:focus i,
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back:hover span,
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back:focus span {
    color: #ffffff !important;
}


/* Foco accesible */
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back:focus-visible {
    outline: 3px solid rgba(0, 153, 255, 0.30) !important;
    outline-offset: 3px !important;
}


/* Estado activo */
.almt-changelog-public .almt-changelog-entry
button.almt-changelog-back:active {
    background-color: #252671 !important;
    border-color: #252671 !important;

    box-shadow: 0 2px 7px rgba(37, 38, 113, 0.22) !important;

    color: #ffffff !important;
}


/* ------------------------------------------
   20.9 - Responsive
   ------------------------------------------ */

@media (max-width: 700px) {

    .almt-changelog-public > .almt-doc-card + .almt-doc-card {
        margin-top: 24px;
    }

    .almt-changelog-entry > .almt-doc-card + .almt-doc-card {
        margin-top: 24px;
    }

    .almt-changelog-back-row--bottom {
        margin-top: 18px;
    }

    .almt-changelog-public .almt-changelog-entry
    button.almt-changelog-back {
        min-width: 118px !important;
        min-height: 44px !important;

        padding: 10px 18px !important;

        font-size: 18px !important;
    }

    .almt-changelog-public .almt-changelog-entry
    button.almt-changelog-back i {
        font-size: 16px !important;
    }

    .almt-changelog-types .almt-changelog-tooltip::after {
        width: 220px;
        max-width: calc(100vw - 48px);

        font-size: 14px;
        line-height: 1.45;
    }
}


/* ========================================
   FIN CSS ALAMARTE
   ======================================== */