/* ========================================
   ALAMARTE - CSS COMPLETO OPTIMIZADO
   Helix Ultimate Custom CSS
   Versión: 4.2.2 | Fecha: 2026-08-18

   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)
   ------------------------------------------ */
.offcanvas-menu {
  background-color: #ffffff !important;
  color: #252671 !important;
}

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

.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span,
.offcanvas-menu .offcanvas-inner ul.menu a,
.offcanvas-menu .offcanvas-inner ul.menu li a {
  color: #252671 !important;
  font-size: 22px !important;
  font-weight: normal !important;
  padding: 10px 10px !important;
  transition: color 0.3s ease;
}

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

.offcanvas-menu .offcanvas-inner ul.menu li.active a {
  color: #0099ff !important;
}

.offcanvas-menu .offcanvas-inner ul.menu li.active 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 > span,
.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent.current > span {
  color: #0099ff !important;
}

/* Submenú offcanvas con viñetas ✓ */
.offcanvas-menu .offcanvas-inner ul.menu > li > ul {
  padding-left: 20px;
}

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

.offcanvas-menu .offcanvas-inner ul.menu > li > ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 16px;
  color: #252671;
}

.offcanvas-menu .offcanvas-inner ul.menu > li > ul li a {
  color: #252671 !important;
  font-size: 22px !important;
  font-weight: normal !important;
  padding: 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;
    }
}

#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;
}

/* Ícono accesibilidad */
._access-icon {
  width: 50px;
  height: 50px;
  font-size: 40px;
  line-height: 45px;
  text-indent: 5px;
  bottom: 300px !important;
  left: 0px;
  z-index: 9999;
  opacity: 1;
  background-color: rgb(64, 84, 178);
  color: #ffffff;
  border-radius: 0 50px 50px 0;
}

/* 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: #4054b2 !important;
  color: #fff !important;
  left: 0 !important;
  bottom: 80px !important;
  z-index: 9999 !important;
  opacity: 1 !important;
}

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

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

/* Ocultar imagen destacada y ratings */
.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: none !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;
}

/* ==========================================
   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
   ------------------------------------------ */

.com-weblinks figure.item-image img {
    width: auto !important;
    max-width: 230px !important;
    height: auto !important;
}

/* ------------------------------------------
   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;
}


/* ------------------------------------------
   14.5 - 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;
}


/* ------------------------------------------
   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;
    }
}

/* =========================================================
   Phoca Cart — Características del paquete
   ========================================================= */


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

/* Phoca Cart - 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;
}

/* =========================================================
   Selector de idioma - Alamarte
   Joomla mod_languages / Helix Ultimate
   ========================================================= */

/* 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 */
.mod-languages .lang-block.dropdown-menu li > a:hover,
.mod-languages .lang-block.dropdown-menu li > a:focus {
  color: #fff;
  background-color: #0099ff;
}

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

/* Activo en hover */
.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: #0099ff;
}

/* =========================================================
   CABECERA DE ESCRITORIO
   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;
  }
}

/* =========================================================
   OFF-CANVAS
   Selector centrado
   ========================================================= */

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

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

/* ========================================
   FIN CSS ALAMARTE
   ======================================== */
