:root {
    color-scheme: light;
    font-family: "Encode Sans", "Segoe UI", Arial, sans-serif;
    color: #29243a;
    background: #fff;
    --brand-purple: #6d558e;
    --brand-purple-dark: #493e68;
    --brand-cyan: #00a8b7;
    --brand-magenta: #d83078;
    --text: #312b40;
    --muted: #6c6876;
    --border: #ded9e6;
    --surface: #fff;
    --page-width: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: var(--text); }
a { color: var(--brand-purple); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.content-width { width: min(var(--page-width), calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Institutional header */
.site-header { position: relative; z-index: 5; background: #fff; box-shadow: 0 2px 10px #211b2c13; }
.masthead { min-height: 82px; display: flex; align-items: center; gap: 22px; }
.mapa-brand, .municipality-brand { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mapa-brand { color: var(--brand-cyan); }
.mapa-brand-logo { display: block; width: clamp(150px, 18vw, 190px); height: auto; max-height: 48px; object-fit: contain; }
.brand-divider { height: 38px; width: 1px; background: #e4dfe8; }
.municipality-brand { color: var(--brand-purple); margin-left: auto; }
.municipality-monogram { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border: 3px solid var(--brand-purple); border-radius: 50%; color: var(--brand-purple); font-size: 1.15rem; font-weight: 800; line-height: 1; flex: 0 0 auto; }
.municipality-logo { max-width: 150px; max-height: 55px; object-fit: contain; }
.municipality-brand-text strong { display: block; font-size: .9rem; line-height: 1.1; text-transform: none; letter-spacing: 0; }
.municipality-brand-text small { display: block; font-size: .62rem; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { background: var(--brand-purple); color: white; }
.nav-inner { min-height: 36px; display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4.5vw, 58px); }
.nav-links a { color: white; text-decoration: none; font-size: .76rem; line-height: 1.2; padding: 11px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { border-bottom-color: #fff; }
.nav-toggle { display: none; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 7px 10px; border: 1px solid #ffffff70; border-radius: 5px; background: transparent; color: #fff; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.nav-toggle:focus-visible { outline: 3px solid #82e8ef; outline-offset: 2px; }
.nav-toggle-icon { width: 18px; display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-icon span { display: block; height: 2px; border-radius: 1px; background: currentColor; width: 100%; transition: transform .16s ease, opacity .16s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }
/* Hero */
.home-hero { position: relative; isolation: isolate; overflow: hidden; color: white; background-color: var(--brand-purple); background-image: linear-gradient(108deg, color-mix(in srgb, var(--brand-purple-dark) 91%, transparent) 0%, color-mix(in srgb, var(--brand-purple) 83%, transparent) 55%, color-mix(in srgb, var(--brand-purple) 76%, transparent) 100%), url("../assets/branding/textura-mapa-hero.webp"); background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 310px; }
.home-hero-with-image { background-image: linear-gradient(108deg, color-mix(in srgb, var(--brand-purple-dark) 88%, transparent) 0%, color-mix(in srgb, var(--brand-purple) 76%, transparent) 55%, color-mix(in srgb, var(--brand-purple) 50%, transparent) 100%), var(--hero-image); background-size: cover; background-position: center; background-repeat: no-repeat; }
.municipality-logo-footer { width: auto; max-width: 110px; max-height: 38px; }
.hero-map-lines { position: absolute; z-index: -1; inset: 0; color: #a092ba; opacity: .22; }
.hero-map-lines svg { display: block; width: 100%; height: 100%; }
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 0 26px; position: relative; }
.hero-kicker { margin: 0 0 5px; color: #e9e1f1; text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; font-weight: 700; }
.home-hero h1 { max-width: 760px; margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.27; letter-spacing: -.025em; font-weight: 750; }
.hero-stats { margin: 21px 0 16px; display: flex; gap: 12px; justify-content: center; }
.hero-stat { width: 136px; min-height: 80px; border-radius: 9px; background: #f8f7fa; color: var(--brand-purple-dark); display: flex; align-items: center; justify-content: center; flex-direction: column; box-shadow: 0 3px 10px #2b1e3b24; padding: 8px 10px 10px; }
.stat-icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e7e2ee; font-size: .85rem; font-weight: 900; margin-bottom: 3px; }
.stat-icon-blue { color: #159fc5; }
.stat-icon-green { color: #48a76a; }
.hero-stat strong { font-size: 1.32rem; font-weight: 800; line-height: 1.1; }
.hero-stat > span:last-child { font-size: .57rem; letter-spacing: .04em; margin-top: 3px; font-weight: 750; }
.hero-search { width: min(525px, 100%); height: 42px; display: flex; background: white; border-radius: 5px; overflow: hidden; box-shadow: 0 3px 11px #21183225; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 15px; color: #383143; font-size: .8rem; background: white; }
.hero-search input::placeholder { color: #9b96a3; }
.hero-search:focus-within { outline: 3px solid #70dbe4; outline-offset: 2px; }
.hero-search button { display: inline-flex; align-items: center; gap: 9px; border: 0; background: var(--brand-cyan); color: white; font-size: .78rem; font-weight: 750; padding: 0 16px; cursor: pointer; }
.hero-search button:hover { background: #008b9a; }
.demo-indicator { font-size: .68rem; color: #f5dff3; margin: 9px 0 0; }
.home-error { max-width: 650px; background: #fff3f2; color: #8e2929; border-radius: 5px; padding: 10px 14px; margin: 12px 0 0; font-size: .8rem; }
/* Quick action links */
.quick-actions { display: flex; justify-content: center; gap: 16px; padding-top: 20px; padding-bottom: 24px; }
.quick-action { min-width: 220px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; background: #faf9fb; border: 1px solid #e4e0e8; border-radius: 7px; box-shadow: 0 2px 3px #271b3810; padding: 11px 16px; color: #57505f; text-decoration: none; font-size: .74rem; font-weight: 650; }
.quick-action:hover { border-color: var(--brand-purple); background: #fff; }
.quick-action-icon { width: 24px; height: 24px; border-radius: 50%; background: #e7e2eb; color: #615375; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 4px; }
.quick-action-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Home sections */
.home-section { margin-top: 9px; margin-bottom: 29px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid #d9d1e2; margin-bottom: 14px; padding-bottom: 7px; }
.section-heading h2 { color: var(--brand-purple); margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.015em; }
.section-link { text-decoration: none; color: var(--brand-purple); font-size: .76rem; font-weight: 700; }
.section-link:hover { text-decoration: underline; }
.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.featured-card { min-width: 0; background: #fff; border: 1px solid #e8e4ec; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px #24152d14; transition: transform .15s ease, box-shadow .15s ease; }
.featured-card:hover { transform: translateY(-2px); box-shadow: 0 6px 17px #24152d1c; }
.featured-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.project-art { height: 120px; position: relative; overflow: hidden; background: #d8e8eb; }
.project-art svg { display: block; width: 100%; height: 100%; }
.project-art .art-road { fill: none; stroke: #8d929a; stroke-width: 20; opacity: .85; }
.project-art .art-road-line { fill: none; stroke: #f7e5a8; stroke-width: 2; stroke-dasharray: 8 6; }
.project-art .art-building { stroke: #f6f0e8; fill: #587d8a; opacity: .95; }
.project-art .art-tree { fill: #4f956e; stroke: #286b50; stroke-width: 2; }
.project-art .art-tree path { fill: none; stroke: #6b4e3c; stroke-width: 4; }
.project-art .art-cloud { stroke: #fff; opacity: .8; }
.project-art.theme-2 { background: #d0d7b5; }
.project-art.theme-2 .art-building { fill: #a47c6a; stroke: #f5e6d6; }
.project-art.theme-2 .art-road { stroke: #a9aaa7; }
.project-art.theme-3 { background: #c6e0dc; }
.project-art.theme-3 .art-building { fill: #527c7f; }
.project-art.theme-3 .art-tree { fill: #5da77a; }
.project-art.theme-4 { background: #6b5a89; }
.project-art.theme-4 .art-building { fill: #b5a8c5; stroke: #eee8f4; }
.project-art.theme-4 .art-road { stroke: #514366; }
.project-art.theme-4 .art-tree { fill: #93a68c; }
.art-tag { position: absolute; bottom: 7px; left: 7px; display: inline-block; border-radius: 4px; padding: 4px 6px; background: #fffef2eb; color: #5e5366; font-size: .57rem; font-weight: 750; }
.featured-card-body { flex: 1; padding: 10px 11px 9px; display: flex; flex-direction: column; min-height: 110px; }
.featured-location { margin: 0 0 4px; font-size: .64rem; color: #82788b; }
.featured-card h3 { margin: 0 0 11px; font-size: .79rem; line-height: 1.35; font-weight: 750; color: #393143; }
.featured-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.status-pill { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: .59rem; font-weight: 750; line-height: 1.2; background: #ebe7f0; color: #665875; }
.status-execution { background: #d9f0fa; color: #087ba5; }
.status-finished { background: #dff0d9; color: #407b42; }
.status-paused { background: #fbebcc; color: #986316; }
.status-neutral { background: #edeaf0; color: #665d70; }
.card-arrow { font-size: 1rem; color: var(--brand-purple); }
.inline-empty-state { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; padding: 18px; border: 1px dashed #d9d1e2; border-radius: 8px; color: #655d70; font-size: .8rem; }
.inline-empty-state strong { color: #393143; }
.inline-empty-state a { font-weight: 750; }
/* Map */
.map-explorer { min-height: 350px; display: grid; grid-template-columns: 260px minmax(0, 1fr); border: 1px solid #e1dce7; border-radius: 7px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px #2b1b3610; }
.map-sidebar { padding: 15px 13px; background: #fff; position: relative; z-index: 1; }
.map-sidebar-title { background: var(--brand-purple); color: #fff; padding: 10px 11px; border-radius: 5px; display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.map-sidebar-title span { font-size: 1.15rem; }
.map-sidebar-subtitle { color: #80768d; font-size: .68rem; margin: 13px 2px 9px; }
.map-layer { display: flex; align-items: center; gap: 8px; min-height: 36px; border-bottom: 1px solid #eeeaf1; font-size: .73rem; color: #5a5364; cursor: pointer; }
.map-layer input { accent-color: var(--brand-purple); width: 13px; height: 13px; }
.layer-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.layer-execution { background: #159fc5; }
.layer-finished { background: #60a86a; }
.layer-paused { background: #e2a14b; }
.layer-other { background: #8c73ac; }
.layer-chevron { margin-left: auto; font-size: 1.2rem; color: #a69caf; }
.map-summary { margin-top: 18px; background: #f8f5fb; border: 1px solid #e4dce9; border-radius: 5px; padding: 12px 10px; display: flex; align-items: center; gap: 10px; color: var(--brand-purple); }
.map-summary-icon { display: inline-flex; width: 34px; height: 34px; flex: 0 0 auto; }
.map-summary-icon img { width: 100%; height: 100%; object-fit: contain; }
.map-summary strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.map-summary small { display: block; color: #776d82; font-size: .65rem; }
.map-canvas { min-height: 390px; height: 390px; position: relative; background: #e2f0f1; overflow: hidden; z-index: 0; }
.leaflet-container { width: 100%; height: 100%; min-height: 390px; font: inherit; background: #e2f0f1; }
.leaflet-control-attribution { font-size: 10px !important; }
.map-status { position: absolute; z-index: 500; top: 12px; left: 12px; max-width: min(420px, calc(100% - 24px)); padding: 10px 13px; border: 1px solid #d9d2e1; border-radius: 6px; background: #ffffffed; color: #514760; font-size: .78rem; line-height: 1.45; box-shadow: 0 2px 9px #24163218; }
.map-status-error { border-color: #dba5a5; color: #8d2525; }
.map-sidebar-note { margin: 10px 0 0; font-size: .67rem; line-height: 1.45; color: #776d82; }
.map-popup { display: grid; gap: 7px; min-width: 150px; }
.map-popup-title { color: #3d334a; font-size: .9rem; line-height: 1.3; }
.map-popup-state { display: inline-flex; width: fit-content; border-radius: 999px; padding: 3px 7px; font-size: .68rem; background: #f2eff6; color: #5b4a70; }
.map-popup-state-execution { background: #e3f5fa; color: #075b73; }
.map-popup-state-finished { background: #e5f4e6; color: #256b31; }
.map-popup-state-paused { background: #fff1dc; color: #805112; }
.map-popup a { color: var(--brand-purple); font-size: .78rem; font-weight: 750; }
.map-marker { transition: opacity .15s ease; }
.map-marker.is-hidden { display: none; }
.map-attribution { position: absolute; left: 8px; bottom: 7px; background: #fffdf8e8; padding: 4px 6px; color: #827c86; border-radius: 3px; font-size: .56rem; }
.map-disclaimer { margin: 8px 0 0; color: #89828e; font-size: .65rem; }
/* Open-data card */
.open-data-section { border-radius: 7px; overflow: hidden; min-height: 185px; margin-top: 34px; margin-bottom: 28px; background: #f5f3f8; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(200px, .9fr); position: relative; }
.open-data-copy { padding: 27px 30px; position: relative; z-index: 1; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .08em; color: var(--brand-cyan); font-size: .62rem; font-weight: 800; margin: 0 0 7px; }
.open-data-copy h2 { margin: 0 0 8px; color: var(--brand-purple); font-size: 1.12rem; }
.open-data-copy p:not(.section-eyebrow) { max-width: 565px; margin: 0 0 15px; font-size: .73rem; line-height: 1.6; color: #706978; }
.button { border-radius: 5px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; font-size: .75rem; font-weight: 750; border: 0; cursor: pointer; }
.button-icon { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); }
.button-primary { background: var(--brand-purple); color: #fff; box-shadow: 0 2px 5px #35234320; }
.button-primary:hover { background: #554070; }
.open-data-art { position: relative; overflow: hidden; min-height: 185px; background: radial-gradient(circle at 75% 15%, #ded7e9, transparent 40%); }
.data-art-grid { position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(#a9a0b5 1px, transparent 1px); background-size: 8px 8px; mask-image: linear-gradient(90deg, transparent, #000); }
.data-sheet { position: absolute; width: 118px; height: 142px; right: 80px; top: 23px; border-radius: 5px; box-shadow: 0 7px 18px #45345224; }
.data-sheet-back { background: #d7cede; transform: rotate(10deg) translate(15px, -1px); }
.data-sheet-front { background: #fff; transform: rotate(-5deg); display: flex; flex-direction: column; gap: 10px; padding: 17px 15px; }
.data-sheet-front i { height: 5px; border-radius: 3px; background: #d7d0e0; width: 100%; }
.data-sheet-front i:nth-child(2) { width: 75%; }.data-sheet-front i:nth-child(3) { width: 88%; }.data-sheet-front i:nth-child(4) { width: 58%; }
.data-sheet-front b { align-self: flex-end; margin-top: auto; color: var(--brand-cyan); font-size: .72rem; }
/* Participation banner */
.participation-banner { position: relative; overflow: hidden; margin-top: 0; margin-bottom: 32px; border-radius: 8px; background: #f7f5f7; }
.participation-banner-link { display: block; line-height: 0; border-radius: inherit; }
.participation-banner-link:focus-visible { outline: 3px solid var(--brand-cyan); outline-offset: 3px; }
.participation-banner img { display: block; width: 100%; height: auto; border-radius: inherit; }
.participation-banner img:hover { filter: saturate(1.04); }

/* FAQ */
.faq-section { margin-top: 0; margin-bottom: 35px; }
.faq-section .section-heading { margin-bottom: 0; }
.faq-section details { border-bottom: 1px solid #e9e4ee; padding: 13px 2px; color: #5e5668; font-size: .78rem; }
.faq-section summary { cursor: pointer; font-weight: 750; color: #4a4255; }
.faq-section details p { max-width: 800px; line-height: 1.6; margin: 10px 0 0; color: #746d7d; }
.demo-footer-note { color: #968ea0; font-size: .66rem; padding-bottom: 13px; }
/* Municipal configurable AboutHtml content (already sanitized by the server service). */
.municipal-about-section { margin-top: 30px; margin-bottom: 28px; padding: 25px 28px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.municipal-about-section h2 { color: var(--brand-purple); margin: 0 0 12px; font-size: 1.12rem; }
.municipal-about-content { color: #625b6d; font-size: .82rem; line-height: 1.75; overflow-wrap: anywhere; }
.municipal-about-content > :first-child { margin-top: 0; }
.municipal-about-content > :last-child { margin-bottom: 0; }
.municipal-about-content a { text-decoration: underline; }
.municipal-about-content img { max-width: 100%; height: auto; }

/* Footer */
.site-footer { margin-top: auto; background: #f0eef2; border-top: 1px solid #e5e1e8; }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.municipality-footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-purple); text-decoration: none; }
.municipality-footer-brand > span:last-child strong { display: block; font-size: .78rem; text-transform: none; }
.municipality-footer-brand small { display: block; font-size: .55rem; letter-spacing: .2em; }
.footer-partners { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.5vw, 30px); min-width: 0; }
.footer-partner-logo { display: block; width: auto; height: auto; object-fit: contain; }
.footer-partner-logo-ministerio { width: clamp(145px, 18vw, 235px); max-height: 58px; }
.footer-partner-logo-bid { width: clamp(62px, 7.5vw, 92px); max-height: 42px; }
.footer-back-top { text-decoration: none; width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand-cyan); color: var(--brand-cyan); border-radius: 50%; font-weight: 800; }
/* Catalogue page: retain shared style and keep its form/card layout aligned with the visual system. */
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; }
.page-heading { margin-bottom: 1.5rem; }
.page-heading h1 { margin: .25rem 0 .5rem; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; }
.eyebrow { color: var(--brand-cyan); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 750; }
.lead { max-width: 720px; font-size: 1rem; line-height: 1.65; color: #6b6474; }
.filter-panel { background: #fff; border: 1px solid var(--border); border-radius: .6rem; padding: 1.25rem; box-shadow: 0 3px 10px #2a1b3510; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.filter-grid label { display: flex; flex-direction: column; gap: .4rem; color: #51475e; font-size: .9rem; font-weight: 650; }
.filter-grid input { width: 100%; min-height: 44px; border: 1px solid #d7d0df; border-radius: .35rem; padding: .65rem .75rem; color: #352c43; font: inherit; font-weight: 400; background: #fff; }
.filter-grid input:focus { outline: 3px solid #b7e5f8; border-color: var(--brand-cyan); }
.filter-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
button.button { background: var(--brand-purple); color: white; }
.button-secondary { background: white !important; color: var(--brand-purple) !important; border: 1px solid #d7d0df !important; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0 1rem; }
.results-heading h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.results-heading p { margin: 0; color: #756d80; }
.filter-indicator { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .65rem; background: #e6f5fb; color: #075b85; font-size: .8rem; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card { background: white; border: 1px solid var(--border); border-radius: .6rem; padding: 1.2rem; min-width: 0; display: flex; flex-direction: column; box-shadow: 0 2px 6px #2a1b3510; }
.project-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; flex-wrap: wrap; }
.project-type { color: var(--brand-purple); font-size: .82rem; font-weight: 750; }
.project-card h3 { margin: .8rem 0 .5rem; line-height: 1.35; font-size: 1.1rem; }
.project-location { margin: 0; color: #756d80; font-size: .9rem; }
.project-description { color: #655d6e; line-height: 1.6; margin: .8rem 0; }
.project-meta { display: grid; gap: .65rem; margin: .75rem 0; }
.project-meta div { display: grid; gap: .15rem; }
.project-meta dt { color: #81788a; font-size: .78rem; }
.project-meta dd { margin: 0; font-weight: 650; font-size: .9rem; overflow-wrap: anywhere; }
.project-detail-note { border-top: 1px solid #edf1f4; padding-top: .75rem; margin: auto 0 0; color: #80788a; font-size: .8rem; }
.empty-state { background: #fff; border: 1px dashed #d2c9dd; border-radius: .6rem; padding: 2rem; text-align: center; margin-top: 1.25rem; }
.empty-state h2 { margin-top: 0; }
.empty-state p { color: #6f6778; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.pagination span { color: #6f6778; }
.data-note { margin-top: 1.5rem; color: #81798a; font-size: .85rem; line-height: 1.6; }
.notice { margin-top: 1.25rem; padding: 1rem 1.1rem; background: #fff; border-left: 4px solid #d3a32a; color: #5b5360; line-height: 1.6; }
.filter-grid select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d7d0df;
    border-radius: .35rem;
    padding: .65rem .75rem;
    color: #352c43;
    font: inherit;
    font-weight: 400;
    background-color: #fff;
}

    .filter-grid select:focus {
        outline: 3px solid #b7e5f8;
        border-color: var(--brand-cyan);
    }
@media (max-width: 900px) {
    .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-explorer { grid-template-columns: 220px minmax(0,1fr); }
    .map-sidebar { padding: 12px 10px; }
    .filter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .nav-inner { width: min(1120px, calc(100% - 2rem)); min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: visible; }
    .nav-toggle { display: inline-flex; align-self: flex-end; margin: 6px 0; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 8px; }
    .main-nav.is-open .nav-links { display: flex; }
    .nav-links a { display: block; white-space: normal; font-size: .78rem; padding: 12px 8px; border-bottom: 1px solid #ffffff35; }
    .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 620px) {
    .content-width { width: calc(100% - 28px); }
    .masthead { min-height: 70px; gap: 8px; }
    .mapa-brand-logo { width: clamp(108px, 30vw, 132px); max-height: 40px; }
    .brand-divider { display: none; }
    .municipality-brand { gap: 6px; }
    .municipality-brand .municipality-logo { max-width: 74px; max-height: 34px; }
    .municipality-brand-text strong { font-size: .67rem; }
    .municipality-brand-text small { font-size: .45rem; letter-spacing: .05em; }
    .municipality-monogram { width: 27px; height: 27px; }
    .home-hero { min-height: auto; }
    .hero-content { padding: 28px 0 24px; }
    .home-hero h1 { font-size: 1.45rem; }
    .hero-stat { width: 125px; }
    .quick-actions { gap: 8px; padding-top: 15px; padding-bottom: 20px; }
    .quick-action { min-width: 0; flex: 1; font-size: .65rem; padding: 10px 7px; gap: 6px; }
    .quick-action-icon { flex: 0 0 auto; }
    .section-heading h2 { font-size: .95rem; }
    .section-link { font-size: .68rem; }
    .featured-grid { gap: 9px; }
    .project-art { height: 93px; }
    .featured-card-body { min-height: 115px; padding: 8px; }
    .featured-card h3 { font-size: .72rem; }
    .featured-location { font-size: .6rem; }
    .status-pill { font-size: .55rem; }
    .map-explorer { grid-template-columns: 1fr; }
    .map-sidebar { padding: 12px; }
    .map-sidebar-subtitle { margin-top: 8px; }
    .map-layer { display: inline-flex; margin-right: 9px; border-bottom: 0; min-height: 28px; font-size: .65rem; }
    .map-layer .layer-chevron { display: none; }
    .map-summary { margin-top: 8px; padding: 7px 9px; }
    .map-summary-icon { width: 30px; height: 30px; }
    .map-canvas { min-height: 320px; height: 320px; }
    .leaflet-container { min-height: 320px; }
    .municipal-about-section { padding: 20px 16px; }
    .open-data-section { grid-template-columns: minmax(0,1fr) 110px; min-height: 0; }
    .open-data-copy { padding: 20px 15px; }
    .open-data-copy h2 { font-size: 1rem; }
    .open-data-copy p:not(.section-eyebrow) { font-size: .68rem; }
    .open-data-art { min-height: 180px; }
    .data-sheet { right: 5px; width: 82px; height: 118px; top: 31px; }
    .data-sheet-front { padding: 13px 10px; gap: 8px; }
    .footer-inner { min-height: 85px; flex-wrap: wrap; gap: 10px; padding-top: 15px; padding-bottom: 15px; }
    .footer-partners { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 14px; }
    .footer-partner-logo-ministerio { width: min(210px, 55vw); max-height: 50px; }
    .footer-partner-logo-bid { width: 72px; max-height: 36px; }
    .container { padding-top: 1.5rem; }
    .filter-grid, .project-grid { grid-template-columns: 1fr; }
    .results-heading { align-items: flex-start; flex-direction: column; }
    .participation-cta { font-size: .7rem; }
}
