.cbt-hemeroteca-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: var(--cbt-bg, #ffffff);
    color: var(--cbt-text, #1f2937);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.cbt-hemeroteca-title {
    margin: 0 0 1.25rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cbt-primary, #0f172a);
}

.cbt-hemeroteca-header {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background-color: var(--cbt-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--cbt-secondary, #e5e7eb);
}

.cbt-hemeroteca-filters-wrapper {
    color: var(--cbt-text, #1f2937);
}

.cbt-hemeroteca-heading {
    margin: 0 0 1rem;
    color: var(--cbt-primary, #0f172a);
}

.cbt-hemeroteca-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: var(--cbt-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    align-items: end;
    border: 1px solid var(--cbt-secondary, #e5e7eb);
}

.cbt-hemeroteca-filter label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cbt-primary, #0f172a);
}

.cbt-hemeroteca-wrapper .cbt-hemeroteca-filter {
    padding: 0 13px;
}

.cbt-hemeroteca-filter input,
.cbt-hemeroteca-filter select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--cbt-secondary, #cbd5e1);
    border-radius: 8px;
    background-color: var(--cbt-bg, #f8fafc);
    color: var(--cbt-text, #0f172a);
    font-size: 0.95rem;
}

.cbt-hemeroteca-filter input:focus,
.cbt-hemeroteca-filter select:focus {
    outline: 2px solid var(--cbt-accent, #e5e7eb);
    border-color: var(--cbt-accent, #e5e7eb);
    background-color: var(--cbt-bg, #ffffff);
}

.cbt-hemeroteca-filters .button {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background-color: var(--cbt-accent, #e5e7eb);
    color: var(--cbt-primary, #0f172a);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.cbt-hemeroteca-wrapper button.button {
    margin-left: 15px;
}

.cbt-hemeroteca-filters .button:hover {
    background-color: var(--cbt-secondary, #9ca3af);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: var(--cbt-primary, #0f172a);
}

.cbt-hemeroteca-calendar {
    width: 100%;
    margin-bottom: 1.5rem;
    background-color: var(--cbt-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--cbt-secondary, #e5e7eb);
}

.cbt-hemeroteca-calendar.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
}

.cbt-hemeroteca-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background-color: var(--cbt-accent, #e5e7eb);
    color: var(--cbt-primary, #0f172a);
    font-weight: 700;
    text-transform: capitalize;
}

.cbt-hemeroteca-calendar-current {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
}

.cbt-hemeroteca-calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--cbt-bg, #ffffff);
    color: var(--cbt-primary, #0f172a);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 1px solid var(--cbt-secondary, #e5e7eb);
}

.cbt-hemeroteca-calendar-nav:hover,
.cbt-hemeroteca-calendar-nav:focus-visible {
    background-color: var(--cbt-secondary, #9ca3af);
    color: var(--cbt-primary, #0f172a);
}

.cbt-hemeroteca-calendar-nav.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.cbt-hemeroteca-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-collapse: collapse;
}

.cbt-hemeroteca-calendar-cell {
    border: 1px solid var(--cbt-secondary, #e2e8f0);
    padding: 0.85rem 0.4rem;
    text-align: center;
    font-size: 0.95rem;
    box-sizing: border-box;
    color: var(--cbt-text, #0f172a);
    background-color: var(--cbt-bg, #ffffff);
}

.cbt-hemeroteca-calendar-cell.heading {
    background-color: var(--cbt-secondary, #f1f5f9);
    color: var(--cbt-primary, #0f172a);
    font-weight: 700;
}

.cbt-hemeroteca-calendar-cell.day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    text-decoration: none;
    color: var(--cbt-text, #0f172a);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cbt-hemeroteca-calendar-cell.day:hover,
.cbt-hemeroteca-calendar-cell.day:focus-visible {
    background-color: var(--cbt-secondary, #e5e7eb);
    color: var(--cbt-primary, #0f172a);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.cbt-hemeroteca-calendar-cell.day.has-posts {
    background-color: var(--cbt-accent, #e5e7eb);
    color: var(--cbt-primary, #0f172a);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.cbt-hemeroteca-calendar-cell.day.has-posts:hover,
.cbt-hemeroteca-calendar-cell.day.has-posts:focus-visible {
    background-color: var(--cbt-primary, #0f172a);
    color: var(--cbt-bg, #ffffff);
}

.cbt-hemeroteca-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cbt-hemeroteca-list--cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cbt-hemeroteca-list--list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cbt-hemeroteca-item {
    background-color: var(--cbt-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--cbt-secondary, #e5e7eb);
    overflow: hidden;
}

.cbt-hemeroteca-list--cards .cbt-hemeroteca-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cbt-hemeroteca-list--list .cbt-hemeroteca-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 1rem;
    align-items: flex-start;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--cbt-secondary, #e5e7eb);
    padding-bottom: 0.5rem;
}

.cbt-hemeroteca-item-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.cbt-hemeroteca-item-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: var(--cbt-secondary, #e5e7eb);
}

.cbt-hemeroteca-list--list .cbt-hemeroteca-item-thumbnail,
.cbt-hemeroteca-list--list .cbt-hemeroteca-item-thumbnail img,
.cbt-hemeroteca-list--list .cbt-hemeroteca-item-thumbnail-placeholder {
    height: 100%;
    min-height: 140px;
    object-fit: cover;
}

.cbt-hemeroteca-item-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cbt-hemeroteca-list--list .cbt-hemeroteca-item-content {
    padding: 1rem 1rem 1rem 0;
    gap: 0.35rem;
}

.cbt-hemeroteca-list--list .cbt-hemeroteca-item:last-child {
    border-bottom: none;
}

.cbt-hemeroteca-item-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cbt-hemeroteca-item-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cbt-primary, #0f172a);
}

.cbt-hemeroteca-item-title a {
    color: inherit;
    text-decoration: none;
}

.cbt-hemeroteca-item-title a:hover,
.cbt-hemeroteca-item-title a:focus-visible {
    color: var(--cbt-secondary, #9ca3af);
}

.cbt-hemeroteca-item-meta {
    font-size: 0.95rem;
    color: var(--cbt-muted, #6b7280);
}

.cbt-hemeroteca-item-excerpt {
    color: var(--cbt-text, #1f2937);
    line-height: 1.5;
}

.cbt-hemeroteca-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.cbt-hemeroteca-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.cbt-hemeroteca-pagination a,
.cbt-hemeroteca-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--cbt-secondary, #d1d5db);
    text-decoration: none;
    color: var(--cbt-primary, #0f172a);
    background: var(--cbt-bg, #ffffff);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cbt-hemeroteca-pagination a:hover,
.cbt-hemeroteca-pagination a:focus-visible {
    background-color: var(--cbt-secondary, #9ca3af);
    color: var(--cbt-primary, #0f172a);
}

.cbt-hemeroteca-pagination .current {
    background-color: var(--cbt-accent, #e5e7eb);
    color: var(--cbt-primary, #0f172a);
    border-color: var(--cbt-accent, #e5e7eb);
    font-weight: 700;
}

.cbt-hemeroteca-wrapper h3 a {
    text-decoration: none;
}

.cbt-hemeroteca-filters-wrapper h3 a:hover,
.cbt-hemeroteca-filters-wrapper h3 a:focus-visible {
    text-decoration: none;
}


.cbt-hemeroteca-filters-wrapper .cbt-hemeroteca-filter {
    margin-right: 25px; 
}  
.cbt-hemeroteca-filters-wrapper .cbt-hemeroteca-filter.cbt-hemeroteca-filter-search {
    width: 100%;
} 
.cbt-hemeroteca-filters-wrapper .cbt-hemeroteca-filters button.button {
    margin-right: 20px;
}
.cbt-hemeroteca-filters-wrapper .cbt-hemeroteca-filter.cbt-hemeroteca-filter-month {
    width: 100%;
}

@media (max-width: 1024px) {
    .cbt-hemeroteca-list--list .cbt-hemeroteca-item {
        grid-template-columns: 160px 1fr;
    }
}

@media (max-width: 640px) {
    .cbt-hemeroteca-list--list .cbt-hemeroteca-item {
        grid-template-columns: 110px 1fr;
        gap: 0.75rem;
    }

    .cbt-hemeroteca-list--list .cbt-hemeroteca-item-thumbnail img,
    .cbt-hemeroteca-list--list .cbt-hemeroteca-item-thumbnail-placeholder {
        min-height: 96px;
    }
}

@media (max-width: 768px) {
    .cbt-hemeroteca-wrapper {
        padding: 1rem;
    }

    .cbt-hemeroteca-calendar-cell {
        padding: 0.65rem 0.35rem;
        font-size: 0.85rem;
    }

    .cbt-hemeroteca-calendar-cell.day {
        height: 2.1rem;
    }
}
