/* ========================================================================
   SYS Blog Pro - Main Stylesheet
   Brand: Suelos y Suelos YM
   Colors: Primary Gold #D8AF53, Navy #10182B, Blue #066AAB
   ======================================================================== */

/* ---- CSS Custom Properties (Premium UI) ---- */
:root {
    --sys-gold: #D8AF53;
    --sys-gold-light: #F0D699;
    --sys-gold-gradient: linear-gradient(135deg, #E6C875 0%, #D8AF53 100%);
    --sys-navy: #10182B;
    --sys-blue: #066AAB;
    --sys-blue-light: #0882d0;
    --sys-blue-gradient: linear-gradient(135deg, #0882d0 0%, #066AAB 100%);
    --sys-text-dark: #0f172a;
    --sys-text-body: #334155;
    --sys-text-light: #64748b;
    --sys-text-muted: #94a3b8;
    --sys-bg-white: #ffffff;
    --sys-bg-light: #f8fafc;
    --sys-bg-subtle: #f1f5f9;
    --sys-border: #e2e8f0;
    --sys-border-light: #f1f5f9;
    --sys-radius-sm: 12px;
    --sys-radius: 16px;
    --sys-radius-lg: 24px;
    --sys-radius-xl: 32px;
    --sys-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
    --sys-shadow: 0 10px 25px -3px rgba(16, 24, 43, 0.08), 0 4px 10px -4px rgba(16, 24, 43, 0.04);
    --sys-shadow-lg: 0 25px 50px -12px rgba(6, 106, 171, 0.15);
    --sys-shadow-xl: 0 32px 64px -16px rgba(16, 24, 43, 0.2);
    --sys-shadow-glow-gold: 0 0 20px rgba(216, 175, 83, 0.3);
    --sys-shadow-glow-blue: 0 8px 32px rgba(6, 106, 171, 0.2);
    --sys-transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --sys-transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --sys-font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sys-container: 1280px;
    --sys-container-narrow: 800px;
}

/* ---- Reset & Base ---- */
.sys-blog-wrapper,
.sys-blog-shortcode-wrapper {
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sys-blog-wrapper *,
.sys-blog-shortcode-wrapper * {
    box-sizing: border-box;
}

.sys-blog-container {
    max-width: var(--sys-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Hero Section (Premium UI) ---- */
.sys-blog-hero {
    background: linear-gradient(135deg, var(--sys-navy) 0%, #0a1120 50%, #070d18 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.sys-blog-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(216, 175, 83, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sys-float 20s infinite ease-in-out alternate;
}

.sys-blog-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 106, 171, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sys-float 15s infinite ease-in-out alternate-reverse;
}

@keyframes sys-float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-50px) scale(1.1);
    }
}

.sys-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.sys-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sys-hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* ---- Breadcrumbs ---- */
.sys-breadcrumbs {
    margin-bottom: 24px;
}

.sys-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sys-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.sys-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--sys-transition);
}

.sys-breadcrumb-item a:hover {
    color: var(--sys-gold);
}

.sys-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}

.sys-breadcrumb-current {
    color: var(--sys-gold);
    font-weight: 500;
}

/* ========================================================================
   FILTERS SECTION - MOBILE FIRST ULTRA PREMIUM
   ======================================================================== */
.sys-blog-filters-section {
    position: relative;
    z-index: 90;
    margin-top: -60px;
    /* Overlaps hero section brilliantly */
    padding: 0 0 32px;
    background: transparent;
    border: none;
}

.sys-filters-card {
    background: var(--sys-bg-white);
    border-radius: var(--sys-radius-xl);
    padding: 28px 32px;
    box-shadow: var(--sys-shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
    .sys-blog-filters-section {
        margin-top: -40px;
    }

    .sys-filters-card {
        padding: 16px 20px;
        border-radius: var(--sys-radius-lg);
        box-shadow: var(--sys-shadow-lg);
    }
}

/* ---- Mobile Top Bar ---- */
.sys-filters-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sys-filter-search {
    position: relative;
    flex: 1;
    /* Search takes up available space on mobile */
    min-width: 0;
}

.sys-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sys-search-icon {
    position: absolute;
    left: 14px;
    color: var(--sys-text-muted);
    pointer-events: none;
}

.sys-search-input {
    width: 100%;
    height: 48px;
    /* Touch friendly height */
    padding: 0 44px !important;
    border: 1px solid var(--sys-border) !important;
    border-radius: 50px !important;
    font-size: 15px;
    font-family: inherit;
    color: var(--sys-text-dark) !important;
    background: var(--sys-bg-light) !important;
    outline: none !important;
    transition: all var(--sys-transition);
    appearance: none;
    box-shadow: none !important;
}

.sys-search-input:focus {
    background: var(--sys-bg-white) !important;
    border-color: var(--sys-blue) !important;
    box-shadow: 0 0 0 4px rgba(6, 106, 171, 0.1) !important;
}

.sys-search-input::placeholder {
    color: var(--sys-text-muted);
}

.sys-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--sys-text-muted);
    cursor: pointer;
    padding: 8px;
    /* Larger hit area */
    display: flex;
    align-items: center;
    transition: color var(--sys-transition);
}

.sys-search-clear:hover {
    color: var(--sys-text-dark);
}

/* Live Search Results (Absolute positioning) */
.sys-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--sys-bg-white);
    border: 1px solid var(--sys-border);
    border-radius: var(--sys-radius);
    box-shadow: var(--sys-shadow-lg);
    z-index: 200;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sys-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--sys-text-dark);
    transition: background var(--sys-transition);
    border-bottom: 1px solid var(--sys-border-light);
}

.sys-search-result-item:last-child {
    border-bottom: none;
}

.sys-search-result-item:hover {
    background: var(--sys-bg-light);
}

.sys-search-result-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--sys-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.sys-search-result-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.sys-search-result-meta {
    font-size: 12px;
    color: var(--sys-text-light);
}

/* Mobile Filters Button */
.sys-mobile-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--sys-border) !important;
    border-radius: 50px !important;
    background: var(--sys-bg-white) !important;
    color: var(--sys-text-dark) !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--sys-transition);
    box-shadow: none !important;
}

.sys-mobile-filters-btn:hover {
    background: var(--sys-bg-light) !important;
    color: var(--sys-blue) !important;
}

/* ---- Main Filters Panel (Off-Canvas on Mobile) ---- */
.sys-filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sys-bg-white);
    z-index: 9999;
    top: 100%;
    /* Hidden off-screen down */
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sys-filters-panel.is-open {
    top: 0;
    visibility: visible;
    opacity: 1;
}

.sys-filters-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--sys-border);
    background: var(--sys-bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sys-filters-panel-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--sys-text-dark);
}

.sys-close-filters-btn {
    background: transparent;
    border: none;
    color: var(--sys-text-muted);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--sys-transition);
}

.sys-close-filters-btn:hover {
    background: var(--sys-bg-light);
    color: var(--sys-text-dark);
}

.sys-filters-row {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Category Filters */
.sys-filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sys-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    background: var(--sys-bg-white);
    color: var(--sys-text-body);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--sys-transition-bounce);
    white-space: nowrap;
    box-shadow: var(--sys-shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sys-filter-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pill-color, var(--sys-blue));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--sys-transition);
}

.sys-filter-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: transparent;
    color: #fff;
}

.sys-filter-pill:hover::before {
    opacity: 1;
}

.sys-filter-pill.active {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--pill-color, var(--sys-blue));
}

.sys-filter-pill.active::before {
    opacity: 1;
}

.sys-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 11px;
    font-weight: 800;
    color: var(--sys-text-muted);
    transition: all var(--sys-transition);
}

.sys-filter-pill:hover .sys-pill-count {
    background: rgba(6, 106, 171, 0.1);
    color: var(--pill-color, var(--sys-blue));
}

.sys-filter-pill.active .sys-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Advanced Filters Toggle */
.sys-advanced-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px dashed var(--sys-border) !important;
    border-radius: var(--sys-radius-sm) !important;
    background: transparent !important;
    color: var(--sys-text-muted) !important;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--sys-transition);
    box-shadow: none !important;
}

.sys-advanced-btn:hover,
.sys-advanced-btn.active {
    border-color: var(--sys-blue) !important;
    border-style: solid !important;
    color: var(--sys-blue) !important;
    background: rgba(6, 106, 171, 0.04) !important;
}

/* Advanced Filters Area */
.sys-advanced-filters {
    padding: 0 24px 24px;
    /* Integrated into modal flow on mobile */
}

.sys-advanced-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sys-filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sys-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sys-text-light);
}

/* Tag Pills */
.sys-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sys-tag-pill {
    padding: 8px 16px;
    border: 1px solid var(--sys-border);
    border-radius: 8px;
    background: var(--sys-bg-light);
    color: var(--sys-text-body);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--sys-transition);
}

.sys-tag-pill:hover {
    border-color: var(--sys-gold);
    background: var(--sys-bg-white);
    color: var(--sys-gold);
}

.sys-tag-pill.active {
    background: var(--sys-gold);
    border-color: var(--sys-gold);
    color: #fff;
    box-shadow: 0 4px 12px rgba(216, 175, 83, 0.2);
}

/* Order Options */
.sys-order-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sys-order-btn {
    padding: 10px 18px;
    border: 1px solid var(--sys-border);
    border-radius: 8px;
    background: var(--sys-bg-white);
    color: var(--sys-text-body);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--sys-transition);
    flex: 1;
    /* Stretch on mobile */
    text-align: center;
}

.sys-order-btn:hover {
    border-color: var(--sys-blue);
}

.sys-order-btn.active {
    background: var(--sys-navy);
    border-color: var(--sys-navy);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 24, 43, 0.2);
}

/* ---- Responsive Up to Desktop ---- */
@media (min-width: 900px) {
    .sys-blog-filters-section {
        margin-top: -65px;
    }

    .sys-filters-mobile-bar {
        margin-bottom: 24px;
        /* Space between search and pills on desktop */
    }

    .sys-filter-search {
        width: 380px;
        flex: none;
        /* Fixed width on desktop */
    }

    .sys-search-input {
        background: var(--sys-bg-white);
    }

    .sys-mobile-filters-btn {
        display: none;
        /* Hide mobile toggler on desktop */
    }

    .sys-filters-panel {
        /* Remove mobile modal behavior */
        position: static;
        visibility: visible;
        opacity: 1;
        overflow-y: visible;
        display: block;
        background: transparent;
    }

    .sys-filters-panel-header {
        display: none;
        /* Hide modal header */
    }

    .sys-filters-row {
        padding: 24px 0 0;
        margin-top: 24px;
        border-top: 1px solid var(--sys-border-light);
        flex-direction: row;
        align-items: center;
        /* Align pills and advanced button */
        justify-content: space-between;
        gap: 16px;
    }

    .sys-filter-categories {
        gap: 8px;
        flex: 1;
        /* Pills take available space */
    }

    .sys-filter-pill {
        padding: 8px 16px;
        font-size: 13px;
    }

    .sys-advanced-btn {
        padding: 8px 16px;
        border: none;
        background: var(--sys-bg-white);
        flex-shrink: 0;
    }

    .sys-advanced-filters {
        padding: 24px;
        margin-top: 24px;
        background: var(--sys-bg-white);
        border: 1px solid var(--sys-border);
        border-radius: var(--sys-radius);
        box-shadow: var(--sys-shadow-md);
    }

    .sys-advanced-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .sys-order-btn {
        flex: none;
        /* Don't stretch on desktop */
    }
}

/* Active Filters */
.sys-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--sys-bg-light);
    border-radius: var(--sys-radius-sm);
}

.sys-active-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sys-text-light);
}

.sys-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sys-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--sys-blue);
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.sys-active-tag-remove {
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--sys-transition);
}

.sys-active-tag-remove:hover {
    opacity: 1;
}

.sys-clear-all {
    padding: 4px 12px;
    border: 1px solid var(--sys-border);
    border-radius: 50px;
    background: transparent;
    color: var(--sys-text-light);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    margin-left: auto;
    transition: all var(--sys-transition);
}

.sys-clear-all:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Results Info */
.sys-results-info {
    padding: 12px 0 0;
    font-size: 14px;
    color: var(--sys-text-light);
}

#sysResultsCount {
    font-weight: 700;
    color: var(--sys-text-dark);
}

/* ---- Blog Grid (Mobile First) ---- */
.sys-blog-grid-section {
    padding: 32px 0 64px;
    /* Less padding on mobile */
    background: var(--sys-bg-light);
}

.sys-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 column on mobile */
    gap: 24px;
}

@media (min-width: 640px) {
    .sys-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
        gap: 32px;
    }
}

@media (min-width: 992px) {
    .sys-blog-grid-section {
        padding: 64px 0 100px;
        /* More breathing room on desktop */
    }

    .sys-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cols on desktop */
    }

    /* Feature first post as Hero Card */
    .sys-blog-grid>.sys-blog-card:first-child {
        grid-column: span 2;
        flex-direction: row;
        align-items: stretch;
    }

    .sys-blog-grid>.sys-blog-card:first-child .sys-card-image-link {
        width: 50%;
        flex-shrink: 0;
    }

    .sys-blog-grid>.sys-blog-card:first-child .sys-card-image {
        height: 100%;
        border-radius: var(--sys-radius-xl) 0 0 var(--sys-radius-xl);
    }

    .sys-blog-grid>.sys-blog-card:first-child .sys-card-content {
        justify-content: center;
        padding: 40px;
        width: 50%;
    }

    .sys-blog-grid>.sys-blog-card:first-child .sys-card-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .sys-blog-grid>.sys-blog-card:first-child .sys-card-excerpt {
        font-size: 16px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        margin-bottom: 24px;
    }
}

/* ---- Blog Card (Premium Update) ---- */
.sys-blog-card {
    background: var(--sys-bg-white);
    border-radius: var(--sys-radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--sys-shadow);
    transition: all var(--sys-transition-bounce);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Fallback for older browsers */
}

/* Glassmorphism shine effect */
.sys-blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 5;
    transition: all 0.7s ease;
    pointer-events: none;
}

.sys-blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--sys-shadow-lg), var(--sys-shadow-glow-blue);
    border-color: rgba(6, 106, 171, 0.15);
}

.sys-blog-card:hover::after {
    left: 200%;
}

.sys-card-image-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    border-radius: var(--sys-radius-xl);
    margin: 8px 8px 0;
    /* Add margin inside card for modern floating image look */
}

.sys-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--sys-bg-subtle);
    border-radius: calc(var(--sys-radius-xl) - 4px);
    transform: translateZ(0);
    /* Fix Safari rounded corners overflow */
}

/* Image overlay for better text contrast/premium feel */
.sys-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    z-index: 1;
    opacity: 0.6;
    transition: opacity var(--sys-transition);
}

.sys-blog-card:hover .sys-card-image::after {
    opacity: 0.2;
}

.sys-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sys-blog-card:hover .sys-card-image img {
    transform: scale(1.08);
    /* Stronger zoom */
}

.sys-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--sys-text-muted);
}

.sys-card-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.sys-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(6, 106, 171, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--sys-transition);
}

.sys-badge:hover {
    background-color: rgba(6, 106, 171, 0.95) !important;
    transform: translateY(-2px);
}

.sys-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #fff;
}

.sys-badge-destacado {
    background: var(--sys-gold-gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(216, 175, 83, 0.4);
}

.sys-badge-nuevo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.sys-badge-popular {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.4);
}

.sys-badge-actualizado {
    background: var(--sys-blue-gradient);
    color: #fff;
    box-shadow: var(--sys-shadow-glow-blue);
}

.sys-card-content {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sys-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--sys-text-light);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sys-card-meta-icon {
    opacity: 0.7;
}

.sys-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sys-card-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--sys-border);
}

.sys-card-reading {
    color: var(--sys-gold);
}

.sys-card-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 16px;
    color: var(--sys-text-dark);
    letter-spacing: -0.015em;
}

.sys-card-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.sys-blog-card:hover .sys-card-title a,
.sys-card-title a:hover {
    color: var(--sys-blue);
    border-bottom-color: var(--sys-gold);
}

.sys-card-excerpt {
    font-size: 15px;
    color: var(--sys-text-body);
    line-height: 1.6;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sys-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.sys-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sys-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    /* More definition */
    position: relative;
    z-index: 2;
}

.sys-author-avatar.sys-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sys-bg-subtle);
    color: var(--sys-text-muted);
}

.sys-author-info {
    display: flex;
    flex-direction: column;
}

.sys-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--sys-text-dark);
}

.sys-author-role {
    font-size: 12px;
    color: var(--sys-text-light);
    font-weight: 500;
}

.sys-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sys-bg-subtle);
    color: var(--sys-navy);
    text-decoration: none;
    transition: all var(--sys-transition-bounce);
}

.sys-read-more svg {
    width: 20px;
    height: 20px;
    transition: transform var(--sys-transition-bounce);
}

.sys-read-more:hover,
.sys-blog-card:hover .sys-read-more {
    background: var(--sys-gold);
    color: #fff;
    box-shadow: var(--sys-shadow-glow-gold);
    transform: translateX(4px) scale(1.05);
}

.sys-blog-card:hover .sys-read-more svg {
    transform: rotate(-45deg);
    /* Modern arrow animation */
}

/* ---- Loading ---- */
.sys-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    color: var(--sys-text-light);
    font-size: 15px;
    font-weight: 500;
}

.sys-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(6, 106, 171, 0.1);
    border-top-color: var(--sys-blue);
    border-radius: 50%;
    animation: sys-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes sys-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- No Results ---- */
.sys-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--sys-text-light);
    background: var(--sys-bg-white);
    border-radius: var(--sys-radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sys-no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--sys-text-dark);
    margin: 24px 0 12px;
    letter-spacing: -0.01em;
}

.sys-no-results p {
    font-size: 16px;
    margin: 0;
}

/* ---- Pagination ---- */
.sys-pagination-wrapper {
    margin-top: 64px;
}

.sys-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sys-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sys-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--sys-border);
    border-radius: var(--sys-radius-sm);
    background: var(--sys-bg-white);
    color: var(--sys-text-body);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--sys-transition);
}

.sys-page-btn:hover {
    border-color: var(--sys-blue);
    color: var(--sys-blue);
    background: rgba(6, 106, 171, 0.04);
}

.sys-page-num {
    min-width: 42px;
    justify-content: center;
    padding: 10px 8px;
}

.sys-page-active {
    background: var(--sys-blue) !important;
    border-color: var(--sys-blue) !important;
    color: #fff !important;
}

.sys-page-dots {
    padding: 0 6px;
    color: var(--sys-text-muted);
}



/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .sys-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sys-blog-hero {
        padding: 60px 0 40px;
    }

    .sys-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sys-blog-grid-section {
        padding: 32px 0 60px;
    }

    .sys-filter-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sys-filter-categories::-webkit-scrollbar {
        display: none;
    }

    .sys-blog-filters-section {
        padding: 20px 0 16px;
    }

    .sys-filter-search {
        max-width: 100%;
    }

    .sys-pagination {
        gap: 4px;
    }

    .sys-page-prev,
    .sys-page-next {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sys-blog-container {
        padding: 0 16px;
    }

    .sys-card-content {
        padding: 16px 18px 20px;
    }

    .sys-card-title {
        font-size: 16px;
    }
}

/* ---- Shortcode Specific ---- */
.sys-blog-shortcode-wrapper .sys-shortcode-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.sys-blog-shortcode-wrapper[data-columns="2"] .sys-blog-grid {
    grid-template-columns: repeat(2, 1fr);
}

.sys-blog-shortcode-wrapper[data-columns="4"] .sys-blog-grid {
    grid-template-columns: repeat(4, 1fr);
}

.sys-blog-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 768px) {
    .sys-blog-featured-grid {
        grid-template-columns: 1fr;
    }

    .sys-blog-shortcode-wrapper[data-columns="4"] .sys-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Categories Shortcode ---- */
.sys-categories-shortcode {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sys-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid var(--cat-color, var(--sys-blue));
    border-radius: 50px;
    color: var(--cat-color, var(--sys-blue));
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--sys-transition);
}

.sys-cat-pill:hover {
    background: var(--cat-color, var(--sys-blue));
    color: #fff;
}

.sys-cat-count {
    background: var(--cat-color, var(--sys-blue));
    color: #fff;
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.sys-cat-pill:hover .sys-cat-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ---- Latest Posts Shortcode ---- */
.sys-latest-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sys-latest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--sys-radius-sm);
    text-decoration: none;
    transition: background var(--sys-transition);
}

.sys-latest-item:hover {
    background: var(--sys-bg-light);
}

.sys-latest-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.sys-latest-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sys-text-dark);
    line-height: 1.3;
}

.sys-latest-date {
    font-size: 12px;
    color: var(--sys-text-light);
}

/* ---- Fade-in animation ---- */
.sys-blog-card {
    opacity: 0;
    transform: translateY(20px);
    animation: sys-fadeUp 0.5s ease forwards;
}

.sys-blog-card:nth-child(1) {
    animation-delay: 0s;
}

.sys-blog-card:nth-child(2) {
    animation-delay: 0.1s;
}

.sys-blog-card:nth-child(3) {
    animation-delay: 0.2s;
}

.sys-blog-card:nth-child(4) {
    animation-delay: 0.1s;
}

.sys-blog-card:nth-child(5) {
    animation-delay: 0.2s;
}

.sys-blog-card:nth-child(6) {
    animation-delay: 0.3s;
}

.sys-blog-card:nth-child(7) {
    animation-delay: 0.2s;
}

.sys-blog-card:nth-child(8) {
    animation-delay: 0.3s;
}

.sys-blog-card:nth-child(9) {
    animation-delay: 0.4s;
}

@keyframes sys-fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}