body {
    background-color: #FFFFFF;
    color: #1A1C1A;
    font-family: 'Avenir Next LT Pro', sans-serif;
}

.blog-page-wrapper {
    width: 100%;
    padding-bottom: 80px;
}

.blog-container {
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

#carrito-breadcrumb {
    width: 100%;
    padding: 24px 0;
}

.carrito-breadcrumb-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.carrito-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #343737;
    text-align: center;
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    transition: color 0.2s ease;
}

.carrito-breadcrumb-item:hover {
    color: #459CD6;
}

.carrito-breadcrumb-item.active {
    color: #343737;
    pointer-events: none;
}

.carrito-breadcrumb-separator {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #343737;
    width: 24px;
    height: 24px;
}

.blog-header-section {
    margin-bottom: 40px;
}

.blog-title {
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #0B4460;
    margin: 0 0 12px 0;
}

.blog-subtitle {
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #41484D;
    margin: 0;
}

.blog-content-layout {
    display: flex;
    gap: 35px;
}

.blog-main-content {
    flex: 1;
}

.blog-sidebar {
    width: 272px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 35px;
    row-gap: 40px;
    margin-bottom: 64px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    width: 400px;
}

.blog-card-img-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    width: fit-content;
    background-color: #459CD6;
    color: #FFFFFF;
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item img {
    width: 16px;
    height: 16px;
}

.meta-item span {
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6B7280;
}

.blog-card-title {
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 33px;
    color: #0B4460;
    margin: 0 0 16px 0;
}

.btn-read-more {
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #459CD6;
    text-decoration: underline;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #0B4460;
    margin: 0 0 24px 0;
}

.blog-search-container {
    display: flex;
    align-items: center;
    border: 1px solid #A4A4A4;
    border-radius: 9999px;
    padding: 17px 24px;
    background-color: #FFFFFF;
    position: relative;
}

.blog-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Avenir Next LT Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #41484D;
}

.blog-search-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: absolute;
    right: 24px;
}

.blog-search-button img {
    width: 20px;
    height: 20px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.category-item {
    display: inline-flex;
    width: 100%;
    padding: 12px;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    position: relative;
    box-sizing: border-box;
}

.category-item.active {
    background: #459CD6;
}

.category-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #0B4460;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    flex-shrink: 0;
}

.category-item.active::before {
    background-color: #FFFFFF;
}

.category-item a {
    color: #0B4460;
    font-family: "Avenir Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.category-item.active a {
    color: #FFFFFF;
    font-weight: 700;
}

.category-item .count {
    color: #A4A4A4;
    font-family: "Avenir Next LT Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.category-item.active .count {
    color: #FFFFFF;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.recent-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-title {
    color: #1A1C1A;
    font-family: "Avenir Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 17.5px;
}

.recent-date {
    color: #A8A29E;
    font-family: "Avenir Next LT Pro";
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    padding: 8px 16px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 9999px;
    background: #E9E8E5;
    color: #343737;
    font-family: "Avenir Next LT Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
}

.blog-load-more-container {
    display: flex;
    justify-content: center;
}

.btn-load-more {
    display: none;
}

.sidebar-widget.collapsible .toggle-icon {
    display: none;
}

@media (max-width: 1023px) {
    #carrito-breadcrumb {
        padding: 26px 0px;
    }

    .blog-header-section {
        margin-bottom: 32px;
    }

    .blog-page-wrapper {
        padding-bottom: 0px;
    }

    .sidebar-widget {
        margin-bottom: 24px;
    }

    .blog-content-layout {
        flex-direction: column-reverse;
    }

    .blog-sidebar {
        width: 100%;
        margin-bottom: 0px;
    }

    .sidebar-widget.collapsible .widget-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .sidebar-widget.collapsible .toggle-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease;
        transform: rotate(0deg);
    }

    .sidebar-widget.collapsible.collapsed .toggle-icon {
        transform: rotate(180deg);
    }

    .sidebar-widget.collapsible.collapsed .widget-content {
        display: none;
    }

    .sidebar-widget.collapsible:not(.collapsed) .widget-title {
        margin-bottom: 24px;
    }

    .blog-sidebar .sidebar-widget:nth-child(3) {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .blog-title {
        font-size: 32px;
    }

    .blog-card {
        width: 327px;
        margin: 0 auto;
    }

    .blog-card-img-wrapper {
        width: 100%;
        height: 250px;
        margin-bottom: 16px;
    }
}
/* Integración WordPress */
.blog-card-title a,
.blog-card-title a:visited {
    color: #0B4460;
    text-decoration: none;
}

.blog-card-tag,
.blog-card-tag:visited {
    color: #FFFFFF;
    text-decoration: none;
}

.recent-title,
.recent-title:visited,
.tag-item,
.tag-item:visited,
.category-item a:visited,
.btn-read-more:visited,
.carrito-breadcrumb-item:visited {
    color: inherit;
}

.blog-empty-state {
    padding: 48px 32px;
    border-radius: 16px;
    background: #F3F3F3;
    color: #0B4460;
}

.blog-empty-state h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.blog-empty-state p {
    margin: 0;
    color: #41484D;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.blog-pagination ul {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid #0B4460;
    border-radius: 999px;
    color: #0B4460;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.blog-pagination .current,
.blog-pagination a:hover {
    background: #0B4460;
    color: #FFFFFF;
}

.blog-subtitle p {
    margin: 0;
}

@media (min-width: 1024px) {
    .blog-card {
        width: 100%;
        max-width: 400px;
    }
}


/* ========================================================================== 
   Fix15 Blog: buscador, miniaturas recientes y links visitados
   ========================================================================== */
.blog-search-container {
    width: 272px;
    max-width: 100%;
    min-height: 56px;
    padding: 0 24px;
    box-sizing: border-box;
}

.blog-search-container .blog-search-input,
.blog-search-input,
.blog-search-input:hover,
.blog-search-input:focus,
.blog-search-input:active {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 0 28px 0 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 20px;
}

.blog-search-container .blog-search-input::-webkit-search-decoration,
.blog-search-container .blog-search-input::-webkit-search-cancel-button,
.blog-search-container .blog-search-input::-webkit-search-results-button,
.blog-search-container .blog-search-input::-webkit-search-results-decoration {
    display: none;
}

.recent-post-item > a {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.recent-post-item .recent-thumb,
.recent-thumb {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 8px;
    display: block;
}

.btn-read-more,
.btn-read-more:link,
.btn-read-more:visited,
.btn-read-more:hover,
.btn-read-more:focus,
.btn-read-more:active {
    color: #459CD6 !important;
    text-decoration: underline;
}

.blog-card-title a:hover,
.blog-card-title a:focus,
.blog-card-title a:visited {
    color: #0B4460;
}

/* Fix 16: mantener Post recientes en negro en todos los estados */
.recent-post-item .recent-title,
.recent-post-item .recent-title:link,
.recent-post-item .recent-title:visited,
.recent-post-item .recent-title:hover,
.recent-post-item .recent-title:focus,
.recent-post-item .recent-title:active {
    color: #1A1C1A !important;
    text-decoration: none !important;
}

.recent-post-item .recent-title:hover,
.recent-post-item .recent-title:focus {
    opacity: 1;
}

/* Fix 18: categorias del sidebar en azul oscuro según maqueta */
.blog-sidebar .category-item:not(.active),
.blog-sidebar .category-item:not(.active):hover,
.blog-sidebar .category-item:not(.active):focus-within {
    background: transparent !important;
}

.blog-sidebar .category-item:not(.active)::before {
    background-color: #0B4460 !important;
}

.blog-sidebar .category-item:not(.active) a,
.blog-sidebar .category-item:not(.active) a:link,
.blog-sidebar .category-item:not(.active) a:visited,
.blog-sidebar .category-item:not(.active) a:hover,
.blog-sidebar .category-item:not(.active) a:focus,
.blog-sidebar .category-item:not(.active) a:active,
.blog-sidebar .category-item:not(.active) .category-name {
    color: #0B4460 !important;
    text-decoration: none !important;
}

.blog-sidebar .category-item:not(.active) .count {
    color: #A4A4A4 !important;
}

.blog-sidebar .category-item.active,
.blog-sidebar .category-item.active:hover,
.blog-sidebar .category-item.active:focus-within {
    background: #459CD6 !important;
}

.blog-sidebar .category-item.active::before {
    background-color: #FFFFFF !important;
}

.blog-sidebar .category-item.active a,
.blog-sidebar .category-item.active a:link,
.blog-sidebar .category-item.active a:visited,
.blog-sidebar .category-item.active a:hover,
.blog-sidebar .category-item.active a:focus,
.blog-sidebar .category-item.active a:active,
.blog-sidebar .category-item.active .category-name,
.blog-sidebar .category-item.active .count {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.blog-sidebar .recent-post-item .recent-title,
.blog-sidebar .recent-post-item .recent-title:link,
.blog-sidebar .recent-post-item .recent-title:visited,
.blog-sidebar .recent-post-item .recent-title:hover,
.blog-sidebar .recent-post-item .recent-title:focus,
.blog-sidebar .recent-post-item .recent-title:active {
    color: #1A1C1A !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.blog-sidebar .tags-container .tag-item,
.blog-sidebar .tags-container .tag-item:link,
.blog-sidebar .tags-container .tag-item:visited,
.blog-sidebar .tags-container .tag-item:hover,
.blog-sidebar .tags-container .tag-item:focus,
.blog-sidebar .tags-container .tag-item:active {
    color: #1A1C1A !important;
    background: #E9E9E9 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
