/* v0.1.69 · Bloques dinámicos de Contenido Web Pública
 * Proveedores: Transparencia Fiscal y Licitaciones.
 * El diseño es deliberadamente genérico para reutilizar el contenedor con
 * futuros módulos sin convertir la ruta pública en un caso especial.
 */

/* El wrapper usa el mismo `.container` global de Bootstrap que el resto de
 * las páginas internas. Esto evita que el archivo fiscal quede full-width. */
.cwp-dynamic-shell {
    width: 100%;
    padding-top: 0;
    padding-bottom: 2rem;
}
.cwp-dynamic-shell > .cwp-dynamic-module {
    min-width: 0;
}
.cwp-dynamic-module {
    grid-column: 1 / -1 !important;
    width: 100%;
    margin-top: .65rem;
    padding-top: 2rem;
}
.cwp-dynamic-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}
.cwp-dynamic-heading { min-width: 0; max-width: 850px; }
.cwp-dynamic-kicker {
    display: block;
    margin-bottom: .35rem;
    color: #D82D81;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.content-section.cwp-dynamic-module h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -.025em;
}
.cwp-dynamic-heading > p {
    max-width: 780px;
    margin: .7rem 0 0;
    color: #5b5f68;
    line-height: 1.65;
}
.cwp-dynamic-total {
    flex: 0 0 auto;
    min-width: 104px;
    padding: .8rem .95rem;
    border: 1px solid #ead4df;
    border-radius: 16px;
    background: #fff7fb;
    text-align: center;
}
.cwp-dynamic-total strong {
    display: block;
    color: #D82D81;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 900;
}
.cwp-dynamic-total span {
    display: block;
    margin-top: .28rem;
    color: #767982;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cwp-dynamic-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) minmax(150px, .5fr) minmax(220px, .9fr) auto;
    gap: .8rem;
    align-items: end;
    margin: 1.15rem 0 1.6rem;
    padding: 1rem;
    border: 1px solid #e5e6ea;
    border-radius: 18px;
    background: #f8f8f9;
}
.cwp-dynamic-control {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .35rem;
}
.cwp-dynamic-control > span {
    color: #666a73;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .02em;
}
.cwp-dynamic-control input,
.cwp-dynamic-control select {
    width: 100%;
    min-height: 44px;
    padding: .62rem .75rem;
    border: 1px solid #d9dce2;
    border-radius: 11px;
    background: #fff;
    color: #292b31;
    font: inherit;
    font-size: .91rem;
    outline: none;
}
.cwp-dynamic-control input:focus,
.cwp-dynamic-control select:focus {
    border-color: #D82D81;
    box-shadow: 0 0 0 3px rgba(216,45,129,.11);
}
.cwp-dynamic-clear {
    min-height: 44px;
    padding: .62rem .85rem;
    border: 1px solid #d9dce2;
    border-radius: 11px;
    background: #fff;
    color: #555861;
    font-weight: 800;
}
.cwp-dynamic-clear:hover { border-color: #D82D81; color: #D82D81; }
.cwp-dynamic-year-group + .cwp-dynamic-year-group { margin-top: 1.8rem; }
.cwp-dynamic-year-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
    padding-bottom: .55rem;
    border-bottom: 2px solid #eeeef1;
}
.content-section.cwp-dynamic-module .cwp-dynamic-year-head h3 {
    margin: 0;
    color: #202126;
    font-size: 1.35rem;
    font-weight: 900;
}
.cwp-dynamic-year-head > span {
    color: #888b93;
    font-size: .78rem;
    font-weight: 700;
}
.cwp-dynamic-list {
    display: grid;
    gap: .58rem;
}
.cwp-dynamic-doc {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: .95rem 1rem;
    border: 1px solid #e4e5e9;
    border-radius: 14px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cwp-dynamic-doc:hover {
    transform: translateY(-1px);
    border-color: #e4a6c5;
    box-shadow: 0 8px 22px rgba(40,45,55,.06);
}
.cwp-dynamic-doc[hidden],
.cwp-dynamic-year-group[hidden] { display: none !important; }
.cwp-dynamic-doc-body { min-width: 0; }
.cwp-dynamic-doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .6rem;
    margin-bottom: .28rem;
    color: #858891;
    font-size: .73rem;
    font-weight: 700;
}
.cwp-dynamic-category {
    color: #D82D81;
    font-weight: 850;
}
.content-section.cwp-dynamic-module .cwp-dynamic-doc h4 {
    margin: 0;
    color: #2b2d32;
    font-size: .98rem;
    line-height: 1.35;
    font-weight: 800;
}
.content-section.cwp-dynamic-module .cwp-dynamic-doc p {
    margin: .35rem 0 0;
    color: #73767f;
    font-size: .82rem;
    line-height: 1.45;
}
.cwp-dynamic-pdf,
.cwp-dynamic-pdf:visited,
.content-section .cwp-dynamic-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 39px;
    padding: .55rem .75rem;
    border-radius: 10px;
    background: #D82D81;
    color: #fff;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 900;
    white-space: nowrap;
}
.cwp-dynamic-pdf:hover,
.content-section .cwp-dynamic-pdf:hover { background: #bb226e; color: #fff; }
.cwp-dynamic-empty {
    padding: 1.2rem;
    border: 1px dashed #d7d9df;
    border-radius: 14px;
    background: #fafafa;
    color: #737780;
    text-align: center;
}
@media (max-width: 991.98px) {
    .cwp-dynamic-toolbar { grid-template-columns: 1fr 1fr; }
    .cwp-dynamic-search { grid-column: 1 / -1; }
    .cwp-dynamic-clear { justify-self: start; }
}
@media (max-width: 640px) {
    .cwp-dynamic-head { flex-direction: column; gap: .9rem; }
    .cwp-dynamic-total { display: flex; align-items: baseline; gap: .45rem; min-width: 0; padding: .65rem .8rem; }
    .cwp-dynamic-total strong { font-size: 1.2rem; }
    .cwp-dynamic-total span { margin: 0; }
    .cwp-dynamic-toolbar { grid-template-columns: 1fr; padding: .85rem; }
    .cwp-dynamic-search { grid-column: auto; }
    .cwp-dynamic-doc { grid-template-columns: 1fr; align-items: stretch; padding: .9rem; }
    .cwp-dynamic-pdf,
    .content-section .cwp-dynamic-pdf { width: 100%; }
    .cwp-dynamic-year-head { align-items: flex-end; }
}

/* v0.1.69 · Licitaciones como proveedor dinámico */
.cwp-dynamic-toolbar-procurement {
    grid-template-columns: minmax(260px,1.4fr) minmax(220px,.7fr) auto;
}
.cwp-licitaciones-group + .cwp-licitaciones-group {
    margin-top: 2rem;
}
.cwp-licitacion-item[hidden] {
    display: none !important;
}
.cwp-dynamic-procurement .licitaciones-grid {
    margin-top: .2rem;
}
.cwp-dynamic-procurement .licitacion-card-body > p {
    margin: .55rem 0 0;
}
.cwp-dynamic-procurement .licitaciones-history {
    margin-top: .2rem;
}
.cwp-dynamic-procurement .licitacion-history-row small {
    color: #7c8088;
    font-size: .76rem;
    line-height: 1.4;
}
@media (max-width: 991.98px) {
    .cwp-dynamic-toolbar-procurement { grid-template-columns: 1fr 1fr; }
    .cwp-dynamic-toolbar-procurement .cwp-dynamic-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .cwp-dynamic-toolbar-procurement { grid-template-columns: 1fr; }
    .cwp-dynamic-toolbar-procurement .cwp-dynamic-search { grid-column: auto; }
}

/* v0.1.73 · Transparencia Fiscal recupera la vista histórica en acordeón.
 * La fuente de datos sigue siendo el módulo; la Web sólo reorganiza la salida
 * por los mismos tipos documentales utilizados en la sección legacy. */
.cwp-transparencia-legacy {
    margin-top: 0;
    padding-top: .65rem;
}
.cwp-transparencia-legacy .tf-legacy-intro {
    max-width: 900px;
    margin: 0 0 1.25rem;
    color: #5d626b;
    font-size: 1rem;
    line-height: 1.65;
}
.tf-legacy-accordion {
    display: grid;
    gap: .75rem;
}
.tf-legacy-item {
    overflow: hidden;
    border: 1px solid #dedfe3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(20,24,32,.02);
}
.tf-legacy-summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 18px;
    align-items: center;
    gap: 1rem;
    min-height: 62px;
    padding: .95rem 1.1rem;
    cursor: pointer;
    list-style: none;
    background: #f7f7f8;
    color: #202126;
    transition: background .16s ease, color .16s ease;
}
.tf-legacy-summary::-webkit-details-marker { display: none; }
.tf-legacy-summary::marker { display: none; content: ''; }
.tf-legacy-summary:hover {
    background: #fdf5f9;
    color: #c62372;
}
.tf-legacy-item[open] > .tf-legacy-summary {
    border-bottom: 1px solid #e3e3e6;
    background: #fdf5f9;
    color: #c62372;
}
.tf-legacy-summary-title {
    min-width: 0;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.3;
}
.tf-legacy-summary-meta {
    color: #7b7f88;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}
.tf-legacy-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform .16s ease;
}
.tf-legacy-item[open] .tf-legacy-chevron {
    transform: rotate(225deg) translate(-1px,-1px);
}
.tf-legacy-panel {
    padding: .35rem 1.1rem 1rem;
}
.tf-legacy-year {
    padding-top: .9rem;
}
.tf-legacy-year + .tf-legacy-year {
    margin-top: .55rem;
    border-top: 1px solid #ececef;
}
.content-section.cwp-transparencia-legacy .tf-legacy-year h3 {
    margin: 0 0 .55rem;
    color: #33363d;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .02em;
}
.tf-legacy-downloads {
    display: grid;
    gap: .45rem;
}
.tf-legacy-download {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .75rem .8rem;
    border: 1px solid #ececf0;
    border-radius: 9px;
    background: #fff;
}
.tf-legacy-download-body { min-width: 0; }
.content-section.cwp-transparencia-legacy .tf-legacy-download h4 {
    margin: 0;
    color: #26282d;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.35;
}
.tf-legacy-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    margin-top: .3rem;
    color: #777b84;
    font-size: .75rem;
    font-weight: 700;
}
.content-section.cwp-transparencia-legacy .tf-legacy-download p {
    margin: .35rem 0 0;
    color: #6e727a;
    font-size: .79rem;
    line-height: 1.45;
}
.tf-legacy-download small {
    display: block;
    margin-top: .28rem;
    color: #999ca3;
    font-size: .7rem;
    overflow-wrap: anywhere;
}
.tf-legacy-download-link,
.tf-legacy-download-link:visited,
.content-section .tf-legacy-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-height: 38px;
    padding: .5rem .72rem;
    border: 1px solid #d82d81;
    border-radius: 8px;
    background: #fff;
    color: #d82d81;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}
.tf-legacy-download-link:hover,
.content-section .tf-legacy-download-link:hover {
    background: #d82d81;
    color: #fff;
}
@media (max-width: 640px) {
    .tf-legacy-summary {
        grid-template-columns: minmax(0,1fr) 16px;
        gap: .65rem;
        min-height: 56px;
        padding: .85rem .9rem;
    }
    .tf-legacy-summary-meta { display: none; }
    .tf-legacy-panel { padding: .25rem .8rem .85rem; }
    .tf-legacy-download {
        grid-template-columns: 1fr;
        gap: .7rem;
        padding: .72rem;
    }
    .tf-legacy-download-link,
    .content-section .tf-legacy-download-link { width: 100%; }
}

/* v0.1.75 · fallback de estilos históricos de Transparencia Fiscal. */
.tf-history{width:100%;max-width:960px;margin:0 auto 2.75rem;padding:0;color:#171717}.tf-history-instruction{margin:0 auto 1.15rem;padding:0 0 .9rem;border-bottom:1px solid #e7e7e7;color:#161616;font-size:.84rem;font-weight:700;line-height:1.45;text-align:center;text-decoration:underline;text-underline-offset:2px}.tf-history-accordion{width:100%}.tf-history-item{margin:0;border:0;border-bottom:1px solid #e8e8e8;border-radius:0;background:transparent}.tf-history-summary{display:block;width:100%;margin:0;padding:1.02rem 0 .98rem;cursor:pointer;list-style:none;color:#171717;background:transparent;font-size:1.01rem;font-weight:700;line-height:1.35;text-align:left}.tf-history-summary::-webkit-details-marker{display:none}.tf-history-summary::marker{content:'';display:none}.tf-history-summary:hover,.tf-history-item[open]>.tf-history-summary{color:#d8297c}.tf-history-panel{padding:0 0 .25rem;background:#fff}.tf-history-document{padding:.72rem 1.35rem .7rem;border-top:1px solid #eee}.tf-history-document:first-child{border-top:0}.tf-history-link,.tf-history-link:visited{color:#0667c9;text-decoration:none;font-size:.83rem;font-weight:400;line-height:1.4}.tf-history-link:hover{color:#d8297c;text-decoration:underline}.tf-history-meta{display:flex;flex-wrap:wrap;gap:.15rem .8rem;margin-top:.32rem;color:#7a7a7a;font-size:.72rem;line-height:1.4}@media(max-width:767.98px){.tf-history-instruction{text-align:left;font-size:.8rem}.tf-history-summary{padding:.9rem 0;font-size:.95rem}.tf-history-document{padding:.65rem .75rem}.tf-history-link{font-size:.81rem}}

.tf-history-empty{padding:.8rem 1.35rem;border-top:1px solid #eee;color:#858585;font-size:.8rem}


/* v0.1.80 · Compra Local como proveedor dinámico de Contenido Web Pública. */
.cwp-dynamic-toolbar-local {
    grid-template-columns: minmax(260px,1.35fr) minmax(180px,.7fr) minmax(210px,.9fr) auto;
}
.cwp-local-business-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1rem;
}
.cwp-local-business-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e5e9;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(29,33,41,.045);
    transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.cwp-local-business-card[hidden] { display: none !important; }
.cwp-local-business-card.is-featured { border-color: #e7afca; }
.cwp-local-business-media {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f5f5f6;
}
.cwp-local-business-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.cwp-local-business-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#f8f8f9,#eeeef1);
    color: #d82d81;
}
.cwp-local-business-placeholder span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 2px solid #efd1df;
    border-radius: 50%;
    background: #fff;
    font-family: 'Inter Tight',Arial,sans-serif;
    font-size: 2rem;
    font-weight: 900;
}
.cwp-local-business-body { padding: 1rem 1.05rem 1.1rem; }
.cwp-local-business-rubro {
    display: block;
    margin-bottom: .38rem;
    color: #d82d81;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .065em;
    text-transform: uppercase;
}
.content-section.cwp-dynamic-local-businesses .cwp-local-business-card h3 {
    margin: 0;
    color: #22242a;
    font-family: 'Inter Tight',Arial,sans-serif;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.018em;
}
.content-section.cwp-dynamic-local-businesses .cwp-local-business-location {
    display: flex;
    flex-direction: column;
    gap: .16rem;
    margin: .65rem 0 0;
    color: #6d717a;
    font-size: .86rem;
    line-height: 1.4;
}
.cwp-local-business-contact { margin-top: .78rem; }
.cwp-local-business-contact a,
.cwp-local-business-contact span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .45rem .65rem;
    border-radius: 9px;
    background: #f8edf3;
    color: #bd276f;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 850;
}
.cwp-local-business-contact a:hover { background: #f2dce7; color: #a82062; }
@media (hover:hover) and (pointer:fine) {
    .cwp-local-business-card:hover {
        transform: translateY(-2px);
        border-color: #e8b3cd;
        box-shadow: 0 12px 28px rgba(29,33,41,.075);
    }
}
@media (max-width: 991.98px) {
    .cwp-dynamic-toolbar-local { grid-template-columns: 1fr 1fr; }
    .cwp-dynamic-toolbar-local .cwp-dynamic-search { grid-column: 1 / -1; }
    .cwp-local-business-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .cwp-dynamic-toolbar-local { grid-template-columns: 1fr; }
    .cwp-dynamic-toolbar-local .cwp-dynamic-search { grid-column: auto; }
    .cwp-local-business-grid { grid-template-columns: 1fr; }
    .cwp-local-business-media { aspect-ratio: 16/9; }
}

/* v0.1.82 · Renderer genérico contenido-web-provider/v1 */
.cwp-dynamic-toolbar-directory {
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
}
.cwp-dynamic-toolbar-directory .cwp-dynamic-search {
    grid-column: span 2;
}
.content-section.cwp-dynamic-directory .cwp-local-business-card h3 {
    margin: 0;
    color: #22242a;
    font-family: 'Inter Tight',Arial,sans-serif;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.018em;
}
.cwp-generic-directory-card.is-no-media .cwp-local-business-body {
    min-height: 100%;
}
@media (max-width: 640px) {
    .cwp-dynamic-toolbar-directory { grid-template-columns: 1fr; }
    .cwp-dynamic-toolbar-directory .cwp-dynamic-search { grid-column: auto; }
}

/* v0.1.86 · formularios públicos remotos reutilizables */
.cwp-public-request-form{max-width:980px;margin-inline:auto}.cwp-form-head{margin-bottom:1.5rem}.cwp-form-head h2{margin:.25rem 0 .55rem}.cwp-request-form{display:grid;gap:1.2rem}.cwp-form-fieldset{border:1px solid #dfe4e8;border-radius:18px;padding:1.15rem;background:#fff}.cwp-form-fieldset legend{font-size:1.08rem;font-weight:800;padding:0 .35rem}.cwp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.cwp-form-control{display:grid;gap:.38rem;font-weight:700}.cwp-form-control span{font-size:.9rem}.cwp-form-control input,.cwp-form-control select{width:100%;min-height:46px;border:1px solid #cfd6dc;border-radius:12px;padding:.7rem .8rem;background:#fff;color:#20272d;font:inherit}.cwp-form-control input:focus,.cwp-form-control select:focus{outline:3px solid rgba(0,74,122,.12);border-color:#0069a8}.cwp-form-help,.cwp-form-privacy{color:#5d6871;line-height:1.55}.cwp-repeatable-list{display:grid;gap:.8rem;margin:1rem 0}.cwp-repeatable-row{display:grid;grid-template-columns:minmax(220px,1.25fr) minmax(180px,1fr) auto;gap:.8rem;align-items:end;border:1px solid #e5e9ec;border-radius:14px;padding:.9rem;background:#f9fafb}.cwp-repeatable-remove,.cwp-repeatable-add,.cwp-form-submit{appearance:none;border:0;border-radius:12px;font:inherit;font-weight:800;cursor:pointer}.cwp-repeatable-remove{min-height:46px;padding:.65rem .85rem;background:#f0f2f4;color:#39444d}.cwp-repeatable-add{padding:.72rem 1rem;background:#eef5f8;color:#005f8f}.cwp-form-submit{justify-self:start;padding:.85rem 1.25rem;background:#005f8f;color:#fff}.cwp-form-result{border-radius:16px;padding:1rem 1.1rem;margin-bottom:1.1rem}.cwp-form-result strong{display:block;font-size:1.05rem}.cwp-form-result p{margin:.3rem 0 0}.cwp-form-result.is-success{background:#edf8f1;border:1px solid #b8dfc5;color:#174d2b}.cwp-form-result.is-error{background:#fff1f1;border:1px solid #efc0c0;color:#782222}.cwp-form-receipt{margin-top:.7rem}.cwp-form-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.cwp-repeatable-row:only-child .cwp-repeatable-remove{visibility:hidden}.cwp-repeatable-row.is-last-allowed~.cwp-repeatable-add{display:none}@media(max-width:760px){.cwp-form-grid{grid-template-columns:1fr}.cwp-repeatable-row{grid-template-columns:1fr}.cwp-repeatable-remove{justify-self:start}.cwp-public-request-form{margin-inline:0}}
