/*
 * taxonomy_tramite-cat.css — WebmastersMA v9.0
 * Final coherente con hub:
 * - hero centrado
 * - barra de filtros debajo del hero
 * - miniaturas en cards
 * - copy SEO sobre fondo blanco
 * - fondo uniforme hasta footer
 */

/* Reset solo del contenido, nunca del header */
.tax-tramite_cat .site-content,
.tax-tramite_cat .content-area,
.tax-tramite_cat .entry-content,
.tax-tramite_cat #content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
    background: var(--wm-bg, #F1F5F9) !important;
}
.tax-tramite_cat .site-content .ast-container,
.tax-tramite_cat .site-content .ast-flex,
.tax-tramite_cat #content .ast-container,
.tax-tramite_cat #content .ast-flex,
.tax-tramite_cat .content-area .ast-container,
.tax-tramite_cat .content-area .ast-flex {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.tax-tramite_cat,
.tax-tramite_cat,
.tax-tramite_cat .site,
.tax-tramite_cat .site-content,
.tax-tramite_cat #content,
.tax-tramite-cat.wm-archive-wrap {
    background: var(--wm-bg, #F1F5F9) !important;
}
.tax-tramite-cat.wm-archive-wrap {
    min-height: auto;
    padding-bottom: 56px;
}

/* Hero taxonomy */
.wm-tax-hero {
    padding-top: 52px;
    padding-bottom: 44px;
}
.wm-tax-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.72);
    font-size: .8rem;
    margin: 0 0 18px;
}
.wm-tax-breadcrumb a {
    color: rgba(255,255,255,.84);
    text-decoration: none;
}
.wm-tax-breadcrumb a:hover { color: #fff; text-decoration: underline; }

.wm-tax-hero-center {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.wm-tax-kicker {
    margin-bottom: 8px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}
.wm-tax-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: rgba(255,255,255,.62);
    font-size: .92rem;
}
.wm-tax-search {
    max-width: 620px;
    margin: 0 auto;
}
.wm-tax-search input[type="search"] {
    min-width: 0;
}

/* Barra de filtros debajo del hero */
.wm-tax-filters-bar {
    position: relative;
    z-index: 2;
}
.wm-tax-filters-bar .wm-filters-inner {
    justify-content: space-between;
}
.wm-tax-current-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.wm-tax-current-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--wm-blue-light, #EFF6FF);
    border: 1.5px solid var(--wm-border, #E2E8F0);
    color: var(--wm-blue, #0A4C9C);
    font-size: .82rem;
    font-weight: 700;
}
.wm-tax-all-link {
    font-size: .82rem;
    font-weight: 700;
    color: var(--wm-blue, #0A4C9C);
    text-decoration: none;
    white-space: nowrap;
}
.wm-tax-all-link:hover { text-decoration: underline; }

/* Copy SEO blanco como en taxonomy */
.tax-tramite-cat .wm-hub-copy {
    background: #fff;
    border: 1px solid var(--wm-border, #E2E8F0);
    border-radius: var(--wm-radius, 12px);
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.tax-tramite-cat .wm-hub-copy h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--wm-text, #1E293B);
}
.tax-tramite-cat .wm-hub-copy p {
    margin: 0 0 12px;
    font-size: .97rem;
    line-height: 1.72;
    color: var(--wm-text, #1E293B);
}
.tax-tramite-cat .wm-hub-copy p:last-child { margin-bottom: 0; }
.tax-tramite-cat .wm-search-term {
    color: var(--wm-muted, #64748B);
    margin-left: 4px;
}

/* Cards: solo ajustes mínimos sobre hub.css */
.tax-tramite-cat .wm-tramites-grid {
    align-items: stretch;
}
.tax-tramite-cat .wm-card {
    min-height: 310px;
}
.tax-tramite-cat .wm-card-desc {
    min-height: 58px;
}
.tax-tramite-cat .wm-card-meta {
    margin-top: auto;
}
.tax-tramite-cat .wm-btn-card {
    margin-top: 12px;
}
.tax-tramite-cat .wm-card-thumb-badges {
    padding: 10px 16px 0;
    margin-top: 0;
    margin-bottom: 2px;
}

/* Espacio antes del bloque SEO final */
.tax-tramite-cat .wm-pagination {
    margin-top: 34px;
    margin-bottom: 34px;
}
.tax-tramite-cat .wm-hub-copy-bottom {
    margin-top: 26px;
    margin-bottom: 0;
}
.tax-tramite-cat .wm-main-wrap {
    margin-bottom: 72px;
}

/* Paginación WP */
.tax-tramite-cat .wm-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.tax-tramite-cat .wm-pagination .page-numbers li a,
.tax-tramite-cat .wm-pagination .page-numbers li span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid var(--wm-border, #E2E8F0);
    background: #fff;
    color: var(--wm-text, #1E293B);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0 10px;
}
.tax-tramite-cat .wm-pagination .page-numbers li a:hover {
    border-color: var(--wm-blue, #0A4C9C);
    color: var(--wm-blue, #0A4C9C);
}
.tax-tramite-cat .wm-pagination .page-numbers li span.current {
    background: var(--wm-blue, #0A4C9C);
    border-color: var(--wm-blue, #0A4C9C);
    color: #fff;
}
.tax-tramite-cat .wm-pagination .page-numbers li span.dots {
    border: none;
    background: transparent;
    color: var(--wm-muted, #64748B);
}

/* Sidebar: misma base del hub */
.tax-tramite-cat .wm-sidebar {
    position: sticky;
    top: 72px;
}
.tax-tramite-cat .wm-cat-link-name { flex: 1; }
.tax-tramite-cat .wm-cat-link-count {
    font-size: .72rem;
    font-weight: 700;
    color: var(--wm-blue, #0A4C9C);
    background: var(--wm-bg, #F1F5F9);
    border: 1px solid var(--wm-border, #E2E8F0);
    padding: 2px 8px;
    border-radius: 50px;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
}

/* Newsletter */
.tax-tramite-cat .wm-newsletter {
    padding: 18px;
    background: linear-gradient(180deg,#0B3F8A 0%, #0A2F69 100%);
    border-color: rgba(10,76,156,.18);
}
.tax-tramite-cat .wm-newsletter-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}
.tax-tramite-cat .wm-newsletter h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
}
.tax-tramite-cat .wm-newsletter p {
    margin: 0 0 14px;
    color: rgba(255,255,255,.82);
    line-height: 1.6;
    font-size: .9rem;
}
.tax-tramite-cat .newsletter-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tax-tramite-cat .newsletter-form-wrap input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 0 12px;
}
.tax-tramite-cat .newsletter-form-wrap input::placeholder {
    color: rgba(255,255,255,.62);
}
.tax-tramite-cat .newsletter-form-wrap button {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--wm-amber, #F59E0B);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.tax-tramite-cat .newsletter-form-wrap button:hover {
    background: var(--wm-amber-dark, #B45309);
}

@media (max-width: 1024px) {
    .tax-tramite-cat .wm-sidebar {
        position: static;
        top: auto;
    }
}
@media (max-width: 768px) {
    .tax-tramite-cat .wm-hub-copy {
        padding: 18px 16px;
    }
    .wm-tax-search {
        max-width: 100%;
    }
    .wm-tax-current-cat {
        flex-wrap: wrap;
        gap: 8px;
    }
}
@media (max-width: 560px) {
    .wm-tax-hero {
        padding-top: 34px;
        padding-bottom: 28px;
    }
    .wm-tax-filters-bar .wm-filters-inner {
        height: auto;
        min-height: 56px;
        padding-top: 10px;
        padding-bottom: 10px;
        flex-wrap: wrap;
    }
    .wm-tax-current-cat,
    .wm-tax-filters-bar .wm-sort-wrap {
        width: 100%;
    }
    .wm-tax-filters-bar .wm-sort-wrap {
        margin-left: 0;
        justify-content: space-between;
    }
    .wm-tax-filters-bar .wm-sort-wrap form,
    .wm-tax-filters-bar .wm-sort-wrap select {
        width: 100%;
    }
    .wm-tax-filters-bar .wm-filters-sep {
        display: none;
    }
}
