@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
/* --- Fase 6: UI Global Moderna --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.com_users fieldset {
    margin-bottom: 30px !important;
    border: 0;
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-border-width: 1px;
    --bs-card-border-color: var(--bs-border-color-translucent);
    --bs-card-border-radius: 0.375rem;
    --bs-card-box-shadow: ;
    --bs-card-inner-border-radius: calc(0.375rem - 1px);
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(0, 0, 0, 0.03);
    --bs-card-cap-color: ;
    --bs-card-height: ;
    --bs-card-color: ;
    --bs-card-bg: #fff;
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--bs-card-height);
    word-wrap: break-word;
    background-color: var(--bs-card-bg);
    background-clip: border-box;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
    padding: 5px 30px;
    margin: 10px;
}

.com_users fieldset legend {
    padding-bottom: 20px;
    padding-top: 20px;
}




#system-message-container {
    position: relative !important;
    bottom: 0px !important;
    right: 0px !important;
    max-width: 100% !important;
    z-index: 100;
}

.sp-megamenu-parent>li.active>a {
    background: #005195;
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(0, 0, 0, 0);
    background-clip: text;
    color: rgba(0, 0, 0, 0);
}

/* Filament overrides centralizados */
.tw-flex main .table-responsive {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.tw-flex main .table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tw-flex main .table thead th {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb !important;
    border-top: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

.tw-flex main .table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.875rem;
    background-color: #fff;
}

.tw-flex main .table tbody tr:last-child td {
    border-bottom: none;
}

.tw-flex main .btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tw-flex main .btn-primary {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
}

.tw-flex main .btn-primary:hover {
    background-color: #b45309;
    border-color: #b45309;
}

.tw-flex main .card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tw-flex main .card-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    padding: 1rem;
}

.tw-flex main .card-body {
    padding: 1.5rem;
    background: #fff;
}

.tw-flex main input.form-control,
.tw-flex main select.form-select {
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tw-flex main input.form-control:focus,
.tw-flex main select.form-select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    outline: none;
}

.tw-flex main label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.js-stools-container-bar.filters {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.item_fields th {
    width: 30%;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.item_fields td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}



/* === GLOBAL MODERNIZATION (INSPIRADO EN OKVERIFACTU.COM) === */


.tw-flex {
    font-family: 'Inter', sans-serif;
    color: #334155;
}

#sp-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f1f5f9;
}

/* === FASE 10: Ocultar header superior para usuarios logueados === */
/* Joomla añade la clase .logged-in al body cuando el usuario está autenticado */
body.logged-in #sp-header {
    display: none !important;
}

body.logged-in #sp-main-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.logged-in .com_users #sp-main-body {
    padding-top: 0 !important;
}

/* Eliminar el espacio reservado para el header sticky */
body.logged-in .body-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.logged-in #sp-sticky-menu-wrapper,
body.logged-in .sp-relative {
    position: relative !important;
}


/* Clean up legacy Megamenu styling and make it modern */
.sp-megamenu-parent>li>a {
    font-weight: 500;
    color: #64748b !important;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

.sp-megamenu-parent>li:hover>a {
    color: #1d4ed8 !important;
}

/* Botones universales más pulidos fuera del Wrapper */
.btn:not(.tw-flex .btn),
button:not(.tw-flex button) {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:not(.tw-flex .btn-primary) {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    color: white !important;
    border: none !important;
}

.btn-primary:hover:not(.tw-flex .btn-primary) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Tarjetas y Contenedores Base */
.sppb-addon-text-block,
.sppb-addon-single-image {
    border-radius: 12px;
}

.tw-flex h1, .tw-flex h2, .tw-flex h3, .tw-flex h4, .tw-flex h5, .tw-flex h6 {
    font-weight: 600 !important;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* ===================================================================
   FASE 11 — MENÚ SUPERIOR SAAS REDESIGN
   Solo afecta a usuarios NO logueados (header visible)
   =================================================================== */

/* ── Header contenedor ──────────────────────────────────────────── */
body:not(.logged-in) #sp-header {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Fila: flex con logo izq, menú centro, auth derecha */
body:not(.logged-in) #sp-header .container-inner {
    width: 100% !important;
}

body:not(.logged-in) #sp-header .container-inner>.row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-height: 64px !important;
    width: 100% !important;
}

/* Logo — no crece, se queda a la izquierda */
body:not(.logged-in) #sp-header #sp-logo {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

/* Columna del menú — ocupa todo el espacio restante */
body:not(.logged-in) #sp-header #sp-menu {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* sp-column dentro de #sp-menu: distribuye megamenu (centro) y auth (derecha) */
body:not(.logged-in) #sp-header #sp-menu>.sp-column {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    width: 100% !important;
}

/* El nav del megamenu ocupa el espacio y centra los items */
body:not(.logged-in) #sp-header .sp-megamenu-wrapper {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Header-modules (login + registro) — extremo derecho, no encoge */
body:not(.logged-in) #sp-header .header-modules {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-left: auto !important;
}

/* ── Logo ───────────────────────────────────────────────────────── */
body:not(.logged-in) #sp-logo {
    display: flex !important;
    align-items: center !important;
}

body:not(.logged-in) #sp-logo a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    color: #0f172a !important;
    letter-spacing: -0.04em !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

body:not(.logged-in) #sp-logo img {
    height: 36px !important;
    width: auto !important;
}

/* ── Menú — items base ──────────────────────────────────────────── */
body:not(.logged-in) .sp-megamenu-parent {
    display: flex !important;
    align-items: center !important;
    gap: 0.15rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:not(.logged-in) .sp-megamenu-parent>li>a,
body:not(.logged-in) .sp-megamenu-parent>li>span {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    letter-spacing: -0.01em !important;
    padding: 0.45rem 0.75rem !important;
    border-radius: 0.5rem !important;
    transition: background 0.15s, color 0.15s !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
    background: transparent !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

body:not(.logged-in) .sp-megamenu-parent>li>a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

body:not(.logged-in) .sp-megamenu-parent>li.active>a {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    background: #eff6ff !important;
    background-clip: unset !important;
}

/* Flecha de dropdown */
body:not(.logged-in) .sp-megamenu-parent>li>a .sp-menu-item-title::after,
body:not(.logged-in) .sp-megamenu-parent>li.sp-has-child>a::after {
    content: "›" !important;
    transform: rotate(90deg) !important;
    display: inline-block !important;
    font-size: 0.9rem !important;
    color: #9ca3af !important;
    margin-left: 0.1rem !important;
}

/* ── Auth buttons (.sp-header-auth-wrap) ────────────────────────── */
body:not(.logged-in) .sp-header-auth-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Acceder — link simple */
body:not(.logged-in) .sp-sign-in-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    padding: 0.45rem 0.75rem !important;
    border-radius: 0.5rem !important;
    transition: background 0.15s, color 0.15s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    background: transparent !important;
    white-space: nowrap !important;
}

body:not(.logged-in) .sp-sign-in-link:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* Registro — botón CTA */
body:not(.logged-in) .sp-register-btn {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 0.45rem 1rem !important;
    border-radius: 0.5rem !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s !important;
}

body:not(.logged-in) .sp-register-btn:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ── Dropdown / Mega menu panel ─────────────────────────────────── */
body:not(.logged-in) .sp-megamenu-parent .sp-mega-menu,
body:not(.logged-in) .sp-megamenu-parent .sp-dropdown-menu {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    padding: 0.5rem !important;
    top: calc(100% + 0.5rem) !important;
}

body:not(.logged-in) .sp-megamenu-parent .sp-mega-menu li a,
body:not(.logged-in) .sp-megamenu-parent .sp-dropdown-menu li a {
    font-size: 0.83rem !important;
    color: #374151 !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 0.45rem !important;
    display: block !important;
    transition: background 0.12s !important;
}

body:not(.logged-in) .sp-megamenu-parent .sp-mega-menu li a:hover,
body:not(.logged-in) .sp-megamenu-parent .sp-dropdown-menu li a:hover {
    background: #f8fafc !important;
    color: #2563eb !important;
}

/* ── Responsive: hamburger en mobile ───────────────────────────── */
@media (max-width: 991px) {

    body:not(.logged-in) #sp-header .navbar-toggle,
    body:not(.logged-in) #sp-header .sp-menu-toggle {
        background: transparent !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 0.5rem !important;
        color: #374151 !important;
        padding: 0.4rem 0.65rem !important;
    }

    body:not(.logged-in) .sp-header-auth-wrap {
        gap: 0.3rem !important;
    }

    body:not(.logged-in) .sp-register-btn {
        padding: 0.4rem 0.7rem !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   FOOTER SaaS — Modernización global
   Aplica a usuarios logueados y no logueados
════════════════════════════════════════════════════════════════ */

/* Zona bottom (columnas del footer con módulos) */
#sp-bottom,
#sp-bottom1,
#sp-bottom2,
#sp-bottom3,
[id^="sp-bottom"] {
    background: #0f172a !important;
    border-top: none !important;
    padding: 3rem 0 2rem !important;
    color: #94a3b8 !important;
}

/* Zona de copyright */
#sp-footer,
#sp-footer1,
[id^="sp-footer"] {
    background: #0f172a !important;
    border-top: none !important;
    padding: 1.25rem 0 !important;
    color: #475569 !important;
}

/* Eliminar cualquier línea/separador entre columnas footer y copyright */
#sp-bottom hr,
#sp-bottom1 hr,
#sp-bottom2 hr,
#sp-bottom3 hr,
[id^="sp-bottom"] hr,
#sp-footer hr,
#sp-footer1 hr,
[id^="sp-footer"] hr,
#sp-position1 hr {
    display: none !important;
}

/* Zona bottom sin borde inferior */
#sp-bottom,
#sp-bottom1,
#sp-bottom2,
#sp-bottom3,
[id^="sp-bottom"] {
    border-bottom: none !important;
}

/* Línea separadora sutil encima del copyright, solo una */
#sp-footer,
#sp-footer1 {
    /*box-shadow: 0 -1px 0 #1e293b !important;*/
}


/* Reset de colores del texto en el footer */
#sp-bottom *,
#sp-bottom1 *,
#sp-bottom2 *,
#sp-bottom3 *,
[id^="sp-bottom"] * {
    color: #94a3b8 !important;
}

#sp-footer *,
#sp-footer1 *,
[id^="sp-footer"] .sp-copyright {
    color: #475569 !important;
    font-size: 0.8rem !important;
    font-family: 'Inter', sans-serif !important;
}

/* Títulos de módulos en el footer */
#sp-bottom .sp-module-title,
#sp-bottom1 .sp-module-title,
#sp-bottom2 .sp-module-title,
#sp-bottom3 .sp-module-title {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #f1f5f9 !important;
    margin-bottom: 1rem !important;
    font-family: 'Inter', sans-serif !important;
}

/* Links en el footer */
#sp-bottom a,
#sp-bottom1 a,
#sp-bottom2 a,
#sp-bottom3 a,
[id^="sp-bottom"] a {
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: color 0.15s !important;
    display: inline-block !important;
    line-height: 1.8 !important;
}

#sp-bottom a:hover,
#sp-bottom1 a:hover,
#sp-bottom2 a:hover,
#sp-bottom3 a:hover,
[id^="sp-bottom"] a:hover {
    color: #f1f5f9 !important;
}

/* Links del copyright strip */
#sp-footer a,
#sp-footer1 a,
[id^="sp-footer"] a {
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}

#sp-footer a:hover,
#sp-footer1 a:hover,
[id^="sp-footer"] a:hover {
    color: #94a3b8 !important;
}

/* Listas de menú en el footer */
#sp-bottom .mod-list li,
#sp-bottom1 .mod-list li,
#sp-bottom2 .mod-list li,
#sp-bottom3 .mod-list li,
#sp-bottom ul li,
#sp-bottom1 ul li,
#sp-bottom2 ul li,
#sp-bottom3 ul li {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Texto body en el footer */
#sp-bottom p,
#sp-bottom1 p,
#sp-bottom2 p,
#sp-bottom3 p {
    font-size: 0.85rem !important;
    line-height: 1.65 !important;
    color: #64748b !important;
}

/* Separador sutil entre bottom y footer1 */
#sp-bottom .container,
#sp-bottom1 .container,
#sp-bottom2 .container,
#sp-bottom3 .container {
    padding-top: 0 !important;
}

/* SP PageBuilder dentro del footer — resetear fondo y color */
#sp-bottom .sppb-section,
#sp-bottom1 .sppb-section,
#sp-bottom2 .sppb-section,
#sp-bottom3 .sppb-section,
[id^="sp-bottom"] .sppb-section {
    background: transparent !important;
}

#sp-bottom .sppb-addon-content,
#sp-bottom1 .sppb-addon-content,
#sp-bottom2 .sppb-addon-content,
#sp-bottom3 .sppb-addon-content {
    color: #64748b !important;
}

/* Responsive footer */
@media (max-width: 768px) {

    #sp-bottom,
    [id^="sp-bottom"] {
        padding: 2rem 0 1.5rem !important;
    }

    #sp-footer,
    [id^="sp-footer"] {
        text-align: center !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   MÓDULO "El equipo que te ayuda a cumplir" (position1 / id=120)
   Estilo SaaS: elimina foto de fondo, aplica gradiente oscuro limpio
════════════════════════════════════════════════════════════════ */

/* Contenedor del módulo position1 — módulo 120 despublicado, ocultar el contenedor vacío */
#sp-position1 {
    display: none !important;
}


/* SP PageBuilder section dentro de position1: quitar imagen de fondo */
#sp-position1 .sppb-section,
#sp-position1 [class*="sppb-row"],
#sp-position1 .sppb-col-md-12 {
    background-image: none !important;
    background-color: transparent !important;
}

/* Eliminar overlay oscuro que pueda quedar del sppb */
#sp-position1 .sppb-section-overlay {
    display: none !important;
}

/* Textos */
#sp-position1 * {
    color: #94a3b8 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Título principal del bloque */
#sp-position1 .sppb-addon-title,
#sp-position1 h2,
#sp-position1 h3 {
    color: #f1f5f9 !important;
    font-size: clamp(1.2rem, 2vw, 1.65rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
}

/* Subtítulo / descripción */
#sp-position1 .sppb-addon-content,
#sp-position1 p {
    color: #64748b !important;
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
}

/* Links / CTAs dentro del bloque */
#sp-position1 a:not(.sppb-btn) {
    color: #2563eb !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}

#sp-position1 a:not(.sppb-btn):hover {
    color: #1d4ed8 !important;
}

/* Botones SP PageBuilder en position1 */
#sp-position1 .sppb-btn,
#sp-position1 .sppb-btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    font-family: 'Inter', sans-serif !important;
}

#sp-position1 .sppb-btn:hover,
#sp-position1 .sppb-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4) !important;
    color: #fff !important;
}

/* Separador decorativo suave entre columnas si las hay */
#sp-position1 .sppb-col-md-4,
#sp-position1 .sppb-col-md-6 {
    border-color: #1e293b !important;
}

/* Iconos y badges */
#sp-position1 .fa,
#sp-position1 .fas,
#sp-position1 .far {
    color: #2563eb !important;
}

/* Responsive */
@media (max-width: 768px) {
    #sp-position1 {
        padding: 2.5rem 0 !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   BLOG SaaS — Botones "Leer más" y cabecera de artículo
   Reemplaza los degradados rosa/lila por el azul corporativo
════════════════════════════════════════════════════════════════ */

/* Botón "Leer más" en el listado del blog */
body .article-list .article .readmore a,
.article-list .article .readmore a {
    display: inline-block !important;
    background: #2563eb !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .28) !important;
    transition: background .25s, box-shadow .25s, transform .2s !important;
}

body .article-list .article .readmore a:hover,
.article-list .article .readmore a:hover {
    background: #1d4ed8 !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .4) !important;
    transform: translateY(-1px) !important;
}

/* Links "readmore" en módulos de artículos relacionados */
body .body-wrapper #sp-main-body #sp-component .sp-module-content-bottom .mod-mas-verifactu .sp-module-content ul.mod-articles-grid li article.mod-articles-item .readmore a {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #2563eb !important;
    background-clip: unset !important;
    color: #2563eb !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Icono de calendario en los módulos */
body .body-wrapper #sp-main-body #sp-component .sp-module-content-bottom .mod-mas-verifactu .sp-module-content ul.mod-articles-grid li article.mod-articles-item dl .icon-calendar {
    color: #2563eb !important;
}

/* Cabecera de artículo: sustituye el degradado lila por el del hero */
body .body-wrapper #sp-main-body #sp-component .article-details .article-title-wrap::before {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.97) 0%,
            rgba(30, 27, 75, 0.93) 55%,
            rgba(29, 78, 216, 0.85) 100%) !important;
}

/* ════════════════════════════════════════════════════════════════
   MENÚ — Anular fondo hover/active que sobresale por debajo
════════════════════════════════════════════════════════════════ */

/* Quitar el overflow del contenedor del menú para que el hover
   no traspase el borde inferior del header */
body:not(.logged-in) #sp-header .sp-megamenu-wrapper {
    overflow: visible !important;
}

/* Hover: fondo transparente en lugar de gris */
body:not(.logged-in) .sp-megamenu-parent>li>a:hover,
body:not(.logged-in) .sp-megamenu-parent>li>span:hover {
    background: transparent !important;
    color: #1d4ed8 !important;
    -webkit-text-fill-color: #1d4ed8 !important;
}

/* Active: quitar el fondo #eef2ff que sobresale */
body:not(.logged-in) .sp-megamenu-parent>li.active>a,
body:not(.logged-in) .sp-megamenu-parent>li.current>a {
    background: transparent !important;
    background-clip: unset !important;
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    font-weight: 600 !important;
    border-bottom: none !important;
}


/* ════════════════════════════════════════════════════════════════
   BLOG — Margin superior y título SEO
════════════════════════════════════════════════════════════════ */

/* Separar el listado del blog del header sticky */
body:not(.logged-in) #sp-main-body .article-list,
body:not(.logged-in) #sp-main-body .blog,
body:not(.logged-in) #sp-main-body .com_content {
    padding-top: 2rem !important;
}

/* Título H2 "Últimas entradas" visible encima del listado
   Nota: para SEO real está en el override PHP del template */
body:not(.logged-in) #sp-main-body .article-list::before,
body:not(.logged-in) #sp-main-body .items-row::before {
    content: none;
}

/* ════════════════════════════════════════════════════════════════
   BLOG CARDS — Diseño de tarjetas profesional
   ════════════════════════════════════════════════════════════════ */

/* Contenedor de artículos: sin padding extra */
.com-content-category-blog__items.blog-items {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Card principal ──────────────────────────────────────────── */
.com-content-category-blog__item.blog-item,
.com-content-category-blog__item {
    background: #ffffff !important;
    border: 1px solid #e8eef5 !important;
    border-radius: 0.875rem !important;
    padding: 1.75rem 1.75rem 1.5rem !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease !important;
    position: relative !important;
}

.com-content-category-blog__item.blog-item:hover,
.com-content-category-blog__item:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px) !important;
    border-color: #c7d9f8 !important;
}

/* Sin borde inferior en el último item (ya lo da la card) */
.com-content-category-blog__item.blog-item:last-child,
.com-content-category-blog__item:last-child {
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e8eef5 !important;
}

/* ── Meta bar: fecha + badge categoría ───────────────────────── */
.blog-card__meta {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    margin-bottom: 0.7rem !important;
    flex-wrap: wrap !important;
}

.blog-card__date {
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    letter-spacing: 0.02em !important;
}

.blog-card__date i {
    font-size: 0.7rem !important;
    opacity: 0.7 !important;
}

.blog-card__category {
    display: inline-block !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 999px !important;
    padding: 0.15rem 0.65rem !important;
    line-height: 1.6 !important;
}

/* ── Título del artículo ─────────────────────────────────────── */
.com-content-category-blog__item h2,
.com-content-category-blog__item .article-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 0.65rem !important;
}

.com-content-category-blog__item h2 a,
.com-content-category-blog__item .article-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.18s ease !important;
}

.com-content-category-blog__item:hover h2 a,
.com-content-category-blog__item:hover .article-title a {
    color: #2563eb !important;
}

/* ── Intro text: máximo 3 líneas ─────────────────────────────── */
.com-content-category-blog__item .article-introtext,
.com-content-category-blog__item .article-body {
    color: #64748b !important;
    font-size: 0.875rem !important;
    line-height: 1.75 !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ── Footer con botón Leer más ───────────────────────────────── */
.blog-card__footer {
    margin-top: 1.1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #f1f5f9 !important;
}

.blog-card__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    text-decoration: none !important;
    letter-spacing: 0.02em !important;
    transition: gap 0.18s ease, color 0.18s ease !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.blog-card__btn:hover {
    color: #1d4ed8 !important;
    gap: 0.6rem !important;
    text-decoration: none !important;
}

.blog-card__btn span {
    font-size: 1rem !important;
    line-height: 1 !important;
    transition: transform 0.18s ease !important;
}

.blog-card__btn:hover span {
    transform: translateX(3px) !important;
}

/* Ocultar el readmore nativo de Joomla (usamos el nuestro) */
.com-content-category-blog__item .readmore,
.com-content-category-blog__item p.readmore {
    display: none !important;
}

/* ── Metadata nativa de Joomla (por si está activa) ──────────── */
.com-content-category-blog__item .article-info,
.com-content-category-blog__item .page-header {
    margin-bottom: 0.4rem !important;
}

.com-content-category-blog__item .article-info dl,
.com-content-category-blog__item dd,
.com-content-category-blog__item dt {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}

/* ── H1 dentro del intro (contenido de artículos ricos) ──────── */
.com-content-category-blog__item h1,
.com-content-category-blog__item .article-intro-text h1,
.com-content-category-blog__item .article-body h1 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 0.5rem 0 0.4rem !important;
    letter-spacing: -0.01em !important;
}



/* ════════════════════════════════════════════════════════════════
   ARTÍCULO INDIVIDUAL — Jerarquía tipográfica y espaciado
   Selector real en Helix Ultimate: [itemprop="articleBody"] dentro de .article-details
   ════════════════════════════════════════════════════════════════ */

/* H2: título de sección — grande, oscuro, con línea separadora */
.article-details [itemprop="articleBody"] h2,
.article-details h2 {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
    margin: 2rem 0 0.6rem !important;
    padding-bottom: 0.4rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-left: none !important;
    padding-left: 0 !important;
}

/* H3: subtítulo — claramente menor y en gris con indicador azul */
.article-details [itemprop="articleBody"] h3,
.article-details h3 {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
    margin: 1.5rem 0 0.4rem !important;
    padding-left: 0.7rem !important;
    border-left: 3px solid #2563eb !important;
    border-bottom: none !important;
    border-top: none !important;
    border-right: none !important;
}

/* H4: aún más pequeño */
.article-details [itemprop="articleBody"] h4,
.article-details h4 {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin: 1.25rem 0 0.35rem !important;
    border: none !important;
    padding-left: 0 !important;
}

/* Párrafos */
.article-details [itemprop="articleBody"] p {
    line-height: 1.8 !important;
    margin-bottom: 0.9rem !important;
    color: #374151 !important;
    font-size: 0.92rem !important;
}

/* Listas */
.article-details [itemprop="articleBody"] ul,
.article-details [itemprop="articleBody"] ol {
    margin: 0.5rem 0 1rem 1.4rem !important;
}

.article-details [itemprop="articleBody"] li {
    margin-bottom: 0.35rem !important;
    color: #374151 !important;
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
}

/* ── Menú desktop: ocultar bajo 992px (lg Bootstrap) cuando aparece el hamburger ── */
@media (max-width: 991.98px) {

    #sp-menu .sp-megamenu-wrapper ul.sp-megamenu-parent,
    #sp-menu ul.sp-megamenu-parent,
    ul.sp-megamenu-parent,
    .sp-megamenu-parent {
        display: none !important;
    }
}

/* ── Offcanvas: fix alineación y estilo ── */

/* Todos los li del menú principal: padding uniforme */
.offcanvas-inner .mod-menu>li>a,
.offcanvas-inner .mod-menu>li>.sp-has-child-click+a,
.offcanvas-inner .mod-menu>li>span>a {
    padding: 0.7rem 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: block !important;
}

/* Items SIN submenú: mismo estilo visual que los que tienen hijos */
.offcanvas-inner .mod-menu>li:not(.sp-has-child)>a {
    padding: 0.7rem 1.25rem !important;
    padding-left: 1.25rem !important;
    margin-left: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: block !important;
    text-indent: 0 !important;
}

/* Quitar flecha de items sin hijos */
.offcanvas-inner .mod-menu>li:not(.sp-has-child)>a::after {
    content: none !important;
}

/* Items CON submenú */
.offcanvas-inner .mod-menu>li.sp-has-child>a {
    padding-left: 1.25rem !important;
}

/* Botón toggle (chevron) de los items con hijo */
.offcanvas-inner .sp-has-child-click {
    float: right !important;
    padding: 0.7rem 1rem !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    line-height: 1.4 !important;
}

/* Submenú expandido */
.offcanvas-inner .menu-child {
    background: #f8fafc !important;
    border-left: 3px solid #2563eb !important;
    margin: 0 !important;
    padding: 0 !important;
}

.offcanvas-inner .menu-child>li>a {
    padding: 0.55rem 1.25rem 0.55rem 1.5rem !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    display: block !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.offcanvas-inner .menu-child>li>a:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
}

/* Hover items principales */
.offcanvas-inner .mod-menu>li>a:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
}

/* ============================================================
   AJUSTES ESPECÍFICOS PLANTILLA AGENTIK + IDENTIDAD AEAT INFOAL
   ============================================================ */
:root {
    --aeat-blue: #005195;
    --aeat-blue-dark: #003b6f;
    --aeat-blue-bright: #0345bf;
    --aeat-blue-soft: #eff6ff;
}

/* Mantener logotipo original a color en todas las vistas (evitar filter: brightness(0) de Agentik) */
#sp-header #sp-logo .logo-image,
.view-login #sp-header #sp-logo .logo-image,
.view-registration #sp-header #sp-logo .logo-image,
.view-article #sp-header #sp-logo .logo-image,
.fixed-menu #sp-header #sp-logo .logo-image {
    filter: none !important;
    max-height: 52px;
    width: auto;
}

/* Contenedor de cabecera amplio para alojar logo + menú centrado + botones Acceso/Registro */
body:not(.logged-in) #sp-header > .container {
    max-width: 1320px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    border-bottom: none !important;
}

body:not(.logged-in) .sticky-header-placeholder {
    display: none !important;
}

/* En la portada de componente com_facturae eliminar paddings por defecto de #sp-main-body */
body.com-facturae.view-portada #sp-main-body {
    padding: 0 !important;
    margin: 0 !important;
}
body.com-facturae.view-portada #sp-main-body > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.com-facturae.view-portada #sp-main-body > .container > .container-inner > .row {
    margin: 0 !important;
}
body.com-facturae.view-portada #sp-component {
    padding: 0 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Ocultar el footer por defecto de Helix/Agentik ya que se usa html/footer.php (.vf-footer) */
#sp-bottom,
#sp-footer {
    display: none !important;
}


/* === UNIFICACION GLOBAL AGENTIK (HEADERS + BLOG + BOTON LOGIN UNICO) === */

/* 1. Botón único de Acceso Clientes en la esquina superior derecha (#sp-header) */
body:not(.logged-in) .sp-header-auth-wrap .sp-register-btn {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    padding: 0.52rem 1.25rem !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #005195 0%, #0345bf 100%) !important;
    box-shadow: 0 6px 18px rgba(0, 81, 149, 0.28) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    text-decoration: none !important;
    transition: all 0.22s ease !important;
    white-space: nowrap !important;
}
body:not(.logged-in) .sp-header-auth-wrap .sp-register-btn:hover {
    background: linear-gradient(135deg, #003b6f 0%, #005195 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 24px rgba(0, 81, 149, 0.38) !important;
    opacity: 1 !important;
}

/* 1B. Botón Hamburguesa (#offcanvas-toggler) y cabecera móvil (< 992px) */
#sp-header #offcanvas-toggler,
#offcanvas-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    line-height: 1 !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
    padding: 0 !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    flex: 0 0 42px !important;
    z-index: 1002 !important;
    transition: all 0.2s ease !important;
}
#sp-header #offcanvas-toggler:hover,
#offcanvas-toggler:hover {
    background: #eff6ff !important;
    border-color: #005195 !important;
}
#sp-header #offcanvas-toggler .burger-icon,
#offcanvas-toggler .burger-icon,
.close-offcanvas .burger-icon {
    width: 20px !important;
    height: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
}
#sp-header #offcanvas-toggler .burger-icon > span,
#offcanvas-toggler .burger-icon > span,
.close-offcanvas .burger-icon > span {
    display: block !important;
    width: 20px !important;
    height: 2.2px !important;
    background-color: #0f172a !important;
    border-radius: 2px !important;
    margin: 0 !important;
    opacity: 1 !important;
}
#sp-header #offcanvas-toggler:hover .burger-icon > span {
    background-color: #005195 !important;
}
@media (min-width: 992px) {
    #sp-header #offcanvas-toggler.d-lg-none {
        display: none !important;
    }
}
@media (max-width: 991.98px) {
    body:not(.logged-in) #sp-header > .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    body:not(.logged-in) #sp-logo img,
    #sp-header #sp-logo .logo-image,
    #sp-header #sp-logo .logo-image-phone,
    .offcanvas-menu .logo-image,
    .offcanvas-menu .logo-image-phone {
        filter: none !important;
        height: 30px !important;
        max-height: 30px !important;
        width: auto !important;
    }
    body:not(.logged-in) #sp-header #sp-menu > .sp-column {
        justify-content: flex-end !important;
        gap: 0.35rem !important;
    }
    body:not(.logged-in) #sp-header .menu-with-offcanvas {
        display: none !important;
    }
    body:not(.logged-in) .sp-header-auth-wrap .sp-register-btn {
        padding: 0.42rem 0.78rem !important;
        font-size: 0.76rem !important;
        gap: 0.3rem !important;
    }
    #sp-header #offcanvas-toggler {
        display: inline-flex !important;
        margin-left: 6px !important;
    }
}

/* 2. Cabeceras Hero uniformes en TODOS los apartados de la web (Blog, Precios, Quiénes somos, Guías, WooCommerce) */
body.com-content.view-category #sp-main-body,
body.com-content.view-category #sp-main-body > .container,
body.com-content.view-category #sp-main-body > .container > .container-inner,
body.com-content.view-category #sp-main-body > .container > .container-inner > .row,
body.com-content.view-category #sp-component {
    padding-top: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.vf-page-hero-wrap {
    padding: 1rem 1.25rem 0;
    background: #ffffff;
}
.vf-page-hero,
.precio-hero,
.qs-hero,
.guia-hero {
    position: relative !important;
    max-width: 1380px !important;
    width: calc(100% - 2.5rem) !important;
    margin: 1rem auto 0 !important;
    left: auto !important;
    right: auto !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    background-image:
        linear-gradient(180deg, rgba(4, 18, 38, 0.84) 0%, rgba(0, 52, 102, 0.72) 52%, rgba(5, 15, 32, 0.92) 100%),
        url('/images/agentik-verifactu/home-hero-image.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    padding: 4.25rem 1.5rem !important;
    text-align: center !important;
    color: #ffffff !important;
    box-shadow: 0 24px 60px -15px rgba(0, 42, 82, 0.32) !important;
}
.vf-page-hero__badge,
.precio-hero .badge-promo,
.qs-hero .qs-hero-badge,
.guia-hero .guia-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    backdrop-filter: blur(12px) !important;
    padding: 0.4rem 1.05rem !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    margin-bottom: 1.25rem !important;
}
.vf-page-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}
.vf-page-hero h1,
.precio-hero h1,
.qs-hero h1,
.guia-hero h1,
.vf-portada .vf-hero h1 {
    font-family: 'Instrument Serif', serif !important;
    font-weight: 400 !important;
    font-size: clamp(2.65rem, 4.8vw, 4.2rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    margin: 0 auto 1rem !important;
}
.vf-page-hero h1 em,
.precio-hero h1 span,
.qs-hero h1 span,
.guia-hero h1 span {
    font-family: 'Instrument Serif', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: #93c5fd !important;
}
.vf-page-hero p,
.precio-hero p,
.qs-hero p,
.guia-hero p {
    font-size: 1.08rem !important;
    color: rgba(241, 245, 249, 0.9) !important;
    max-width: 680px !important;
    margin: 0 auto 1.5rem !important;
    line-height: 1.65 !important;
}

/* Títulos de sección en páginas interiores con Instrument Serif */
.planes-title,
.qs-section h2,
.vf-portada h2 {
    font-family: 'Instrument Serif', serif !important;
    font-weight: 400 !important;
    font-size: clamp(2.2rem, 3.8vw, 3.1rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
}

/* 3. Tarjetas del apartado Blog (/ayuda-verifactu-prestashop) idénticas a la demo de Agentik (.home-articles) */
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-addon-article-layout-content {
    margin-bottom: 1.5rem;
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-img-wrap {
    overflow: hidden;
    display: block;
    border-radius: 14px;
    position: relative;
    width: 100%;
    height: 260px;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-img-wrap > img {
    max-width: 100% !important;
    max-height: 260px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: all 0.35s ease;
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
    color: #64748b;
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-meta-category a {
    display: inline-block;
    background: #f0f7ff;
    color: #005195 !important;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-addon-article-layout-content .sppb-article-info-wrap > :first-child,
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-info-wrap h3,
.sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-addon-article-layout-content .sppb-article-info-wrap > :first-child,
.sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-info-wrap h3 {
    font-family: 'Instrument Serif', serif !important;
    font-weight: 400 !important;
    font-size: 1.9rem !important;
    line-height: 1.22 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 0.65rem !important;
    display: block !important;
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-info-wrap h3 a,
.sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-info-wrap h3 a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    line-height: 1.22 !important;
    display: block !important;
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-info-wrap h3 a:hover,
.sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-info-wrap h3 a:hover {
    color: #005195 !important;
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-article-introtext {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 0.85rem;
}
.vf-agentik-blog-page .sppb-addon-wrapper.addon-root-articles .sppb-addon-articles.home-articles .sppb-readmore {
    font-weight: 600;
    font-size: 0.94rem;
    color: #005195 !important;
    text-decoration: none !important;
}

/* 4. Artículo individual del Blog (.article-details): cabecera Hero uniforme estilo Agentik (sin espacio vacío arriba) y contenido centrado en 1 columna */
body.com-content.view-article:not(.logged-in) #sp-main-body,
body.com-content.view-article:not(.logged-in) #sp-main-body > .container,
body.com-content.view-article:not(.logged-in) #sp-main-body > .container > .container-inner,
body.com-content.view-article:not(.logged-in) #sp-main-body > .container > .container-inner > .row,
body.com-content.view-article:not(.logged-in) #sp-component {
    padding-top: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
.article-details {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
}
.article-details .vf-page-hero-wrap {
    padding: 5.25rem 1.25rem 0 !important;
    background: #ffffff;
}
.article-details .article-head {
    max-width: 880px !important;
    margin: 0 auto 1.5rem !important;
    text-align: center !important;
    padding-top: 0 !important;
}
.article-details .article-header h1,
.article-details .article-header h2 {
    font-family: 'Instrument Serif', serif !important;
    font-weight: 400 !important;
    font-size: clamp(2.4rem, 4.2vw, 3.6rem) !important;
    line-height: 1.12 !important;
    color: #0f172a !important;
}
.article-details-wrap,
body.com-content.view-article .article-details .article-details-wrap {
    display: block !important;
    grid-template-columns: 1fr !important;
    max-width: 880px !important;
    width: 100% !important;
    margin: 2.25rem auto 0 !important;
    padding: 0 1.25rem !important;
}
.article-details-wrap > .field-author-info:empty,
.article-details-wrap > .author-info:empty {
    display: none !important;
}
.article-details-wrap .article-content-wrap {
    width: 100% !important;
    max-width: 880px !important;
    margin: 0 auto !important;
}
body.com-content.view-article .related-article-list-container,
body.com-content.view-article .sp-module-content-bottom {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* 5. Apartado Documentación API (com_wrapper / iframe) */
body.com-wrapper #sp-main-body,
body.com-wrapper #sp-main-body > .container,
body.com-wrapper #sp-main-body > .container > .container-inner,
body.com-wrapper #sp-main-body > .container > .container-inner > .row,
body.com-wrapper #sp-component {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.com-wrapper:not(.logged-in) .com-wrapper.contentpane {
    padding: 80px 0 0 0 !important;
}
body.com-wrapper .com-wrapper__iframe {
    width: 100% !important;
    min-height: calc(100vh - 80px) !important;
    border: none !important;
    display: block !important;
}

/* 6. Botón Asistente IA y botón subir (.sp-scroll-up a la izquierda como en Stratos) */
.sp-scroll-up {
    bottom: 20px !important;
    left: 30px !important;
    right: auto !important;
}
.chat-container,
df-messenger {
    z-index: 9999 !important;
    pointer-events: auto !important;
}


/* === CAJAS DE CONVERSION E INTERLINKING DEL BLOG === */
.vf-blog-funnel-callout {
    margin: 2rem 0;
    padding: 1.35rem 1.6rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 5px solid #d97706;
    border-radius: 0.85rem;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.vf-blog-funnel-callout__badge {
    display: inline-block;
    background: #d97706;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}
.vf-blog-funnel-callout h4 {
    margin: 0 0 0.45rem !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    color: #78350f !important;
    line-height: 1.35 !important;
}
.vf-blog-funnel-callout p {
    margin: 0 0 0.85rem !important;
    font-size: 0.94rem !important;
    color: #92400e !important;
    line-height: 1.6 !important;
}
.vf-blog-funnel-callout p a {
    color: #b45309 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}
.vf-blog-funnel-callout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.vf-blog-funnel-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #005195 0%, #0345bf 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.55rem;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 81, 149, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vf-blog-funnel-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 81, 149, 0.38);
    color: #ffffff !important;
}
.vf-blog-funnel-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    border-radius: 0.55rem;
    text-decoration: none !important;
}
.vf-blog-funnel-btn-secondary:hover {
    border-color: #005195;
    color: #005195 !important;
}

.vf-blog-funnel-closing {
    margin: 2.5rem 0 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #071936 60%, #005195 100%);
    color: #ffffff;
    border-radius: 1.15rem;
    padding: 2.1rem 2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.vf-blog-funnel-closing__eyebrow {
    display: inline-block;
    background: rgba(52, 211, 153, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.vf-blog-funnel-closing h3 {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.65rem !important;
    line-height: 1.28 !important;
}
.vf-blog-funnel-closing p {
    color: #cbd5e1 !important;
    font-size: 0.96rem !important;
    line-height: 1.65 !important;
    margin: 0 0 1.25rem !important;
}
.vf-blog-funnel-closing__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.vf-blog-funnel-closing__btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: #052e16 !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: 0.6rem;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.vf-blog-funnel-closing__btn-main:hover {
    background: #34d399;
    color: #052e16 !important;
}
.vf-blog-funnel-closing__btn-alt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 1.35rem;
    border-radius: 0.6rem;
    text-decoration: none !important;
}
.vf-blog-funnel-closing__btn-alt:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
}
.vf-blog-funnel-closing__links {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1.15rem;
}
.vf-blog-funnel-closing__links-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #93c5fd;
    margin-bottom: 0.6rem;
    display: block;
}
.vf-blog-funnel-closing__links ul {
    margin: 0 !important;
    padding-left: 1.2rem !important;
}
.vf-blog-funnel-closing__links li {
    margin-bottom: 0.4rem !important;
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
}
.vf-blog-funnel-closing__links a {
    color: #bfdbfe !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}
.vf-blog-funnel-closing__links a:hover {
    color: #ffffff !important;
}


/* ==========================================================================
   TARJETAS DE ARTÍCULOS RELACIONADOS — SOLO TÍTULO (SIN INTROTEXT)
   ========================================================================== */
.related-article-list-container .intro-text {
    display: none !important;
}
.related-article-list-container .vf-related-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.related-article-list-container .vf-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 52, 102, 0.1) !important;
    border-color: rgba(0, 81, 149, 0.3) !important;
}
.related-article-list-container .vf-related-thumb-link {
    display: block;
    overflow: hidden;
}
.related-article-list-container .vf-related-card .article-full-image {
    margin: 0 !important;
    height: 185px;
    overflow: hidden;
}
.related-article-list-container .vf-related-card .article-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform 0.35s ease;
}
.related-article-list-container .vf-related-card:hover .article-full-image img {
    transform: scale(1.04);
}
.related-article-list-container .vf-related-card .article-paper {
    padding: 1.35rem 1.4rem 1.45rem !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
.related-article-list-container .vf-related-card .article-header h2 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 0.75rem 0 !important;
}
.related-article-list-container .vf-related-card .article-header h2 a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.related-article-list-container .vf-related-card:hover .article-header h2 a {
    color: #005195 !important;
}
