:root {
    --brand-red: #B51F2A;
    --brand-red-dark: #8f1620;
    --brand-white: #ffffff;
    --brand-gray: #f4f5f7;
    --brand-text: #213043;
    --brand-blue-soft: #d7ebf8;
    --brand-border: #e2e6ec;
    --brand-shadow: 0 20px 50px rgba(25, 35, 52, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--brand-text);
    background:
        radial-gradient(circle at top right, rgba(198, 40, 40, 0.08), transparent 32%),
        linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}
a { color: var(--brand-red); text-decoration: none; }
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}
.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    height: 130px;
    margin-block: -39px;
    width: auto;
    object-fit: contain;
}
.hero-section {
    padding: 6rem 0 5rem;
    background:
        linear-gradient(135deg, rgba(198, 40, 40, 0.95), rgba(159, 31, 31, 0.88)),
        linear-gradient(180deg, #d32f2f, #b71c1c);
    color: #fff;
}
.hero-section h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.05; max-width: 12ch; font-weight: 800; }
.lead { font-size: 1.15rem; max-width: 56ch; opacity: 0.95; }
.home-tag,
.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.btn-brand {
    background: var(--brand-red);
    border: none;
    color: #fff;
    box-shadow: 0 15px 30px rgba(198, 40, 40, 0.22);
}
.btn-brand:hover { background: var(--brand-red-dark); color: #fff; }
.btn-soft {
    background: rgba(255,255,255,.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,.24);
}
.home-btn-light {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.34);
}
.home-btn-outline {
    background: transparent;
    color: var(--brand-red);
    border: 1px solid rgba(198, 40, 40, .2);
}
.section-block { padding: 4.5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head h1, .section-head h2 { font-weight: 800; }
.card-soft, .content-sheet, .auth-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--brand-shadow);
}
.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
}
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
.hero-metrics strong, .stats-grid strong { display: block; font-size: 2rem; font-weight: 800; }
.hero-metrics span, .stats-grid span { font-size: .9rem; opacity: .85; }
.footer-section {
    background: #fff;
    border-top: 1px solid var(--brand-border);
}
.admin-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    background: #f6f2ef;
}
.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(80, 10, 6, 0.16), rgba(80, 10, 6, 0) 18%),
        linear-gradient(180deg, #6b100d 0%, #8d120f 35%, #9d1713 100%);
    color: #fff;
    box-shadow: 18px 0 40px rgba(66, 10, 8, 0.22);
    overflow: hidden;
    isolation: isolate;
}
.admin-sidebar-hero {
    position: relative;
    min-height: 292px;
}
.admin-sidebar-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(55, 7, 7, 0.12), rgba(55, 7, 7, 0.5)),
        linear-gradient(135deg, rgba(198, 40, 40, 0), rgba(198, 40, 40, 0.3));
}
.admin-sidebar-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.admin-sidebar-brand {
    position: relative;
    z-index: 1;
    margin: -4.25rem 1.5rem 1.25rem;
    padding: 1rem 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(142, 19, 15, 0.82), rgba(108, 16, 13, 0.96));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
}
.admin-sidebar-brand img {
    width: 100%;
    display: block;
}
.admin-sidebar-scroll {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
}
.admin-sidebar-menu-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    padding: .95rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
}
.admin-sidebar-menu-head strong {
    font-size: 1rem;
    font-weight: 800;
}
.admin-sidebar-group + .admin-sidebar-group {
    margin-top: 1.5rem;
}
.admin-sidebar-title {
    display: block;
    margin-bottom: .8rem;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-sidebar-nav {
    display: grid;
    gap: .35rem;
}
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .88rem 1rem;
    border-radius: 14px;
    color: rgba(255,255,255,.92);
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.admin-sidebar-nav a .material-symbols-outlined {
    font-size: 1.2rem;
    flex: 0 0 auto;
}
.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.is-active {
    background: linear-gradient(135deg, #d9463c, #c62828);
    color: #fff;
    transform: translateX(2px);
    box-shadow: 0 14px 24px rgba(198, 40, 40, 0.24);
}
.admin-sidebar-user {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .9rem;
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(71, 8, 7, 0.22);
}
.admin-sidebar-user-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}
.admin-sidebar-user-copy strong,
.admin-sidebar-user-copy span {
    display: block;
}
.admin-sidebar-user-copy strong {
    font-size: .98rem;
}
.admin-sidebar-user-copy span {
    color: rgba(255,255,255,.74);
    font-size: .86rem;
}
.admin-sidebar-logout {
    color: rgba(255,255,255,.88);
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.admin-main-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background:
        radial-gradient(circle at top left, rgba(198, 40, 40, 0.12), transparent 22%),
        linear-gradient(180deg, #ffffff, #fffaf7);
    border-bottom: 1px solid rgba(33, 48, 67, 0.08);
    box-shadow: 0 10px 26px rgba(28, 31, 37, 0.06);
    isolation: isolate;
}
.admin-main-kicker {
    display: inline-block;
    color: var(--brand-red);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-main-kicker-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .55rem;
}
.admin-menu-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.12), rgba(198, 40, 40, 0.2));
    color: var(--brand-red);
    box-shadow: inset 0 0 0 1px rgba(198, 40, 40, 0.08);
}
.material-symbols-outlined {
    line-height: 1;
    vertical-align: middle;
}
.admin-main-intro h1 {
    margin: 0;
    color: #a3201e;
    font-size: clamp(1.75rem, 2.2vw, 2.4rem);
    font-weight: 800;
}
.admin-main-intro p {
    margin: .45rem 0 0;
    color: #5c6775;
    font-size: 1rem;
}
.admin-main-header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.admin-main-header-actions img {
    width: min(260px, 24vw);
    min-width: 160px;
}
.admin-main-link {
    padding: .82rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(198, 40, 40, .14);
    background: #fff;
    color: var(--brand-red);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(198, 40, 40, 0.08);
}
.admin-main-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(215, 235, 248, 0.9), transparent 26%),
        linear-gradient(140deg, #fff, #f5f6f8);
}
.auth-panel { width: min(100%, 430px); padding: 1.5rem; }
.admin-shell {
    min-height: calc(100vh - 4rem);
}
.admin-shell > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}
.admin-shell .section-head {
    margin-bottom: 1.5rem;
}
.admin-shell .eyebrow {
    background: rgba(198, 40, 40, 0.1);
    color: var(--brand-red);
}
.admin-shell .section-head h1 {
    margin: 0;
    color: #3a2020;
}
.admin-shell .card-soft,
.admin-shell .content-sheet {
    border: 1px solid rgba(139, 111, 102, 0.12);
    box-shadow: 0 14px 34px rgba(70, 32, 22, 0.08);
}
.admin-shell .stats-grid .card-soft {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    background:
        radial-gradient(circle at top right, rgba(198, 40, 40, 0.12), transparent 30%),
        linear-gradient(180deg, #fff, #fffaf8);
}
.admin-shell .stats-grid .card-soft::before {
    content: '';
    position: absolute;
    top: 1.2rem;
    left: 1.25rem;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.12), rgba(198, 40, 40, 0.2));
}
.admin-shell .stats-grid strong,
.admin-shell .stats-grid span {
    position: relative;
    z-index: 1;
}
.admin-shell .stats-grid strong {
    margin-top: 2.4rem;
    color: #341919;
}
.admin-shell .stats-grid span {
    color: #6b645f;
    font-weight: 700;
    opacity: 1;
}
.admin-shell .content-sheet h3 {
    margin-bottom: 1rem;
    color: #a3201e;
    font-size: 1.2rem;
    font-weight: 800;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.stats-grid.compact { grid-template-columns: repeat(2, 1fr); }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: .65rem 0; border-bottom: 1px solid var(--brand-border); }
.small-list { max-height: 220px; overflow: auto; }
.admin-app {
    background: linear-gradient(180deg, #fff9f8 0%, #f7f1ef 100%);
    font-family: 'Inter', sans-serif;
}
.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(42, 6, 8, .18), rgba(42, 6, 8, .3)),
        linear-gradient(180deg, rgba(181, 31, 42, .94), rgba(101, 13, 19, .98));
}
.admin-sidebar-hero {
    min-height: 290px;
    background-image: var(--admin-sidebar-image);
    background-size: cover;
    background-position: center;
}
.admin-sidebar-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.28)),
        linear-gradient(140deg, rgba(181, 31, 42, .08), rgba(181, 31, 42, .42));
}
.admin-sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
.admin-sidebar-brand img {
    max-width: 230px;
}
.admin-sidebar-system-name strong,
.admin-sidebar-system-name span {
    display: block;
}
.admin-sidebar-system-name strong {
    font-size: 1.1rem;
    font-weight: 800;
}
.admin-sidebar-system-name span {
    color: rgba(255,255,255,.78);
    font-size: .9rem;
    line-height: 1.45;
}
.admin-sidebar-nav a {
    font-size: .98rem;
}
.admin-sidebar-nav a.is-active {
    background: linear-gradient(135deg, #d9424c, var(--brand-red));
}
.admin-sidebar-logout {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.admin-main {
    background: transparent;
}
.admin-main-header {
    position: relative;
    min-height: 210px;
    padding: 2rem;
    overflow: hidden;
    border-bottom: 0;
    border-radius: 0 0 0 28px;
    background: #fff;
}
.admin-main-header-banner,
.admin-main-header-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.admin-main-header-banner {
    background-image: var(--admin-header-image);
    background-position: center;
    background-size: cover;
    filter: saturate(.95);
}
.admin-main-header-overlay {
    background:
        linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.25) 100%),
        linear-gradient(135deg, rgba(181, 31, 42, .16), rgba(181, 31, 42, .52));
}
.admin-main-intro,
.admin-main-header-actions {
    position: relative;
    z-index: 1;
}
.admin-sidebar-nav a,
.admin-main-link,
.admin-sidebar-logout,
.admin-menu-button {
    position: relative;
    z-index: 2;
}
.admin-main-intro {
    max-width: 760px;
}
.admin-main-kicker-row {
    margin-bottom: .8rem;
}
.admin-main-intro h1 {
    color: var(--brand-red);
}
.admin-main-header-actions img {
    width: min(280px, 25vw);
}
.admin-main-content {
    padding: 1.75rem 2rem 2rem;
}
.admin-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.2rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(181, 31, 42, .08);
    box-shadow: 0 12px 28px rgba(31, 41, 55, .08);
}
.admin-stat-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(181, 31, 42, .08);
    color: var(--brand-red);
}
.admin-stat-icon .material-symbols-outlined {
    font-size: 2rem;
}
.admin-stat-copy {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.admin-stat-copy span {
    color: #5b6470;
    font-size: .95rem;
    font-weight: 600;
}
.admin-stat-copy strong {
    font-size: 2.15rem;
    line-height: 1;
    color: #221a1a;
}
.admin-stat-copy small {
    color: #6a717b;
    font-size: .9rem;
}
.admin-block-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.1rem;
}
.admin-block-heading h3 {
    position: relative;
    margin: 0;
    padding-left: .9rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-red);
}
.admin-block-heading h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: .15rem;
    bottom: .15rem;
    width: 4px;
    border-radius: 999px;
    background: var(--brand-red);
}
.admin-map-sheet,
.admin-chart-sheet,
.admin-news-sheet,
.admin-list-sheet {
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(41, 32, 29, .08);
}
.admin-map-filters .form-label {
    font-weight: 600;
    color: #5f6670;
}
.admin-map-filters .form-select,
.admin-map-filters .form-control {
    min-height: 48px;
    border-radius: 12px;
}
.admin-filter-button {
    min-width: 140px;
    border-radius: 12px;
}
.admin-dashboard-map {
    min-height: 430px;
    border-radius: 18px;
    overflow: hidden;
    background: #eef2f5;
}
.admin-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
}
.admin-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #5f6670;
    font-size: .92rem;
}
.admin-map-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.admin-chart-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
}
.admin-demandas-legend {
    display: grid;
    gap: .8rem;
}
.admin-demandas-legend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .65rem;
    align-items: center;
    color: #4f5965;
}
.admin-demandas-legend-item strong {
    color: #1f2024;
}
.admin-demandas-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.admin-news-list,
.admin-side-stack {
    display: grid;
    gap: 1rem;
}
.admin-news-item,
.admin-action-item,
.admin-agenda-item {
    display: grid;
    gap: 1rem;
    align-items: center;
}
.admin-news-item,
.admin-action-item {
    grid-template-columns: 130px 1fr auto;
}
.admin-news-thumb img,
.admin-action-thumb img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    border-radius: 14px;
}
.admin-news-copy h4,
.admin-action-copy h4,
.admin-agenda-copy h4 {
    margin: 0 0 .35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2b2626;
}
.admin-news-copy p,
.admin-action-copy p,
.admin-agenda-copy p {
    margin: 0;
    color: #67707b;
    font-size: .93rem;
}
.admin-news-copy span,
.admin-action-date,
.admin-agenda-time {
    color: #7d848d;
    font-size: .88rem;
    white-space: nowrap;
}
.admin-agenda-item {
    grid-template-columns: 56px 1fr auto;
}
.admin-agenda-day {
    display: grid;
    place-items: center;
    padding: .55rem 0;
    border-radius: 14px;
    background: rgba(181, 31, 42, .08);
    color: var(--brand-red);
    text-transform: uppercase;
}
.admin-agenda-day strong {
    font-size: 1.2rem;
    line-height: 1;
}
.admin-agenda-day span {
    font-size: .75rem;
    font-weight: 700;
}
.admin-dashboard-popup h6 {
    margin-bottom: .3rem;
    color: var(--brand-red);
    font-weight: 800;
}
.admin-dashboard-marker {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 12px 20px rgba(0, 0, 0, .18);
}
.admin-dashboard-marker span {
    transform: rotate(45deg);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
}
.admin-dashboard-marker.is-acoes { background: #c62f2f; }
.admin-dashboard-marker.is-demandas { background: #9a7934; }
.admin-dashboard-marker.is-locais { background: #7f5724; }
.admin-dashboard-marker.is-secoes { background: #d6c786; color: #3d3720; }
.admin-dashboard-marker.is-secoes span { color: #3d3720; }
.map-shell { padding: .75rem; }
.map-canvas {
    min-height: 70vh;
    border-radius: 20px;
    overflow: hidden;
    background: #dfe9f1;
}
.local-editor-vertex {
    background: transparent;
    border: 0;
}
.local-editor-vertex span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 4px solid var(--brand-red);
    box-shadow: 0 6px 14px rgba(24, 34, 49, 0.22);
}
.map-popup h6 { margin-bottom: .35rem; color: var(--brand-red); }
.table { --bs-table-bg: transparent; }
.shared-rich-editor {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    min-height: 280px;
    background: #fff;
}
.shared-rich-editor .ql-toolbar.ql-snow,
.shared-rich-editor .ql-container.ql-snow {
    border-color: #d9dee7;
}
.shared-rich-editor .ql-toolbar.ql-snow {
    border-radius: 12px 12px 0 0;
}
.shared-rich-editor .ql-container.ql-snow {
    min-height: 240px;
    border-radius: 0 0 12px 12px;
    font-family: inherit;
    font-size: 1rem;
}
.shared-rich-editor .ql-editor {
    min-height: 240px;
}
.admin-form-actions {
    position: relative;
    z-index: 2;
    background: #fff;
}

.home-hero {
    padding: 0 0 2rem;
    background: linear-gradient(180deg, #fafbfc, #f3f5f8);
}
.home-hero-stage {
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 24px 60px rgba(24, 34, 49, 0.10);
}
.home-hero-media {
    position: relative;
    min-height: 620px;
    background:
        linear-gradient(180deg, rgba(181, 31, 42, .15), rgba(181, 31, 42, .02)),
        radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 28%);
}
.home-hero-photo,
.home-bio-photo,
.home-impact-photo {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background:
        linear-gradient(90deg, rgba(23, 12, 14, .18), rgba(23, 12, 14, .5)),
        linear-gradient(135deg, rgba(181, 31, 42, .2), rgba(181, 31, 42, .66)),
        url('../image/cab_menu.png?v=3') center/cover no-repeat;
}
.home-hero-photo {
    background:
        linear-gradient(90deg, rgba(23, 12, 14, .18), rgba(23, 12, 14, .5)),
        linear-gradient(135deg, rgba(181, 31, 42, .2), rgba(181, 31, 42, .66)),
        url('../image/banner_perfil.png') center/cover no-repeat;
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(120, 8, 8, 0.08) 0%, rgba(18, 30, 45, 0.45) 52%, rgba(13, 22, 34, 0.86) 100%);
}
.home-hero-brand {
    margin-bottom: 1rem;
}
.home-hero-brand img {
    width: min(250px, 40vw);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .26));
}
.home-hero-overlay h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 1rem;
}
.home-hero-overlay p {
    max-width: 56ch;
    font-size: 1.08rem;
    opacity: 0.95;
}
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.2rem;
}
.home-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}
.home-hero-badges span {
    padding: .58rem .9rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    font-size: .84rem;
    font-weight: 700;
}
.home-hero-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #16293f;
    color: #fff;
}
.home-hero-strip-text {
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.home-whats-chip {
    padding: .8rem 1.2rem;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-red);
    font-weight: 800;
    text-transform: uppercase;
}
.home-bio {
    padding: 0 0 4rem;
}
.home-bio .container {
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(24, 34, 49, 0.08);
}
.home-bio-copy {
    height: 100%;
    padding: 4rem 3rem;
    background: linear-gradient(180deg, #fff, #f7f8fa);
}
.home-section-kicker {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--brand-red);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.home-bio-copy h2,
.home-title-center h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #18283b;
}
.home-bio-copy strong {
    display: block;
    margin: .5rem 0 1rem;
    color: #db3f3f;
    font-size: 1.15rem;
}
.home-bio-photo {
    position: relative;
    min-height: 460px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.04)),
        linear-gradient(135deg, rgba(181, 31, 42, .12), rgba(181, 31, 42, .32)),
        url('../image/perfil1.png') center/cover no-repeat;
}
.home-bio-photo-mark {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(230px, 38%);
    padding: .9rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 18px 36px rgba(18, 26, 36, .12);
    backdrop-filter: blur(12px);
}
.home-bio-photo-mark img {
    width: 100%;
    display: block;
}
.home-values {
    padding: 4.5rem 0;
    background:
        linear-gradient(180deg, rgba(181, 31, 42, .96), rgba(110, 21, 28, .98)),
        linear-gradient(180deg, #17395b, #17395b);
    color: #fff;
}
.home-title-center {
    text-align: center;
    margin-bottom: 2.5rem;
}
.home-title-center h2 {
    color: inherit;
}
.home-values-grid,
.home-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.home-value-card {
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}
.home-value-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    color: #ffcece;
    font-weight: 800;
}
.home-news {
    padding: 4.5rem 0;
    background:
        linear-gradient(180deg, #2b1418, #451519 55%, #7f1c25 100%);
    color: #fff;
}
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.home-news-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
.home-news-card-media {
    min-height: 170px;
    background:
        linear-gradient(180deg, rgba(14, 24, 39, .1), rgba(14, 24, 39, .55)),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}
.home-news-card-body {
    padding: 1.3rem;
}
.home-news-card-body small {
    color: #ffc9c9;
}
.home-news-card-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: .75rem 0 1rem;
    color: #fff;
}
.home-news-card-body a,
.home-news-card-body span {
    color: #ffd0d0;
    font-weight: 700;
}
.home-impact {
    padding: 0 0 4.5rem;
    background: #7f1c25;
}
.home-impact-panel {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 0;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #b51f2a, #5c1017 58%, #31131c 100%);
    color: #fff;
}
.home-impact-copy {
    padding: 3rem;
}
.home-impact-copy p {
    max-width: 34ch;
    font-size: 1.25rem;
    font-weight: 700;
}
.home-impact-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
.home-impact-numbers strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}
.home-impact-photo {
    min-height: 280px;
    background:
        linear-gradient(180deg, rgba(17,27,40,.12), rgba(17,27,40,.22)),
        url('../image/cab_menu.png?v=3') center/center no-repeat;
    background-size: cover;
}
.home-areas {
    padding: 4.5rem 0;
    background:
        linear-gradient(180deg, #fff8f7, #fff);
}
.home-areas-grid {
    grid-template-columns: repeat(3, 1fr);
}
.home-area-card {
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--brand-border);
    background: linear-gradient(180deg, #fff, #f7f8fa);
    box-shadow: 0 18px 38px rgba(24, 34, 49, 0.06);
}
.home-area-card h3 {
    color: var(--brand-red);
    font-weight: 800;
}
.home-cta-band {
    padding: 0 0 4rem;
    background: #fff;
}
.home-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 3rem;
    border-radius: 28px;
    background:
        linear-gradient(135deg, #b51f2a, #7d1821 52%, #3a1218);
    color: #fff;
}
.home-cta-box h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
}
.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 991px) {
    .hero-section { padding-top: 4rem; }
    .hero-metrics { grid-template-columns: 1fr; }
    .site-header .nav { justify-content: center; }
    .admin-app { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: relative;
        height: auto;
    }
    .admin-sidebar-hero {
        min-height: 220px;
    }
    .admin-sidebar-brand {
        margin-top: -3rem;
    }
    .admin-main-header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        border-radius: 0;
    }
    .admin-main-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .admin-main-content {
        padding: 1.5rem;
    }
    .admin-dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-news-item,
    .admin-action-item {
        grid-template-columns: 96px 1fr;
    }
    .admin-action-date,
    .admin-news-copy span {
        grid-column: 2;
    }
    .map-canvas { min-height: 55vh; }
    .home-hero-media { min-height: 520px; }
    .home-hero-overlay { padding: 2rem 1.5rem; }
    .home-hero-strip,
    .home-impact-panel,
    .home-cta-box { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
    .home-values-grid,
    .home-news-grid,
    .home-impact-numbers,
    .home-areas-grid { grid-template-columns: 1fr; }
    .home-bio-copy { padding: 2rem 1.5rem; }
}

@media (max-width: 640px) {
    .admin-sidebar-scroll,
    .admin-sidebar-user,
    .admin-main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .admin-main-header-actions {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .admin-main-header-actions img {
        width: 180px;
        min-width: 0;
    }
    .admin-dashboard-cards {
        grid-template-columns: 1fr;
    }
    .admin-sidebar-user {
        grid-template-columns: auto 1fr;
    }
    .admin-sidebar-logout {
        grid-column: 1 / -1;
    }
    .admin-news-item,
    .admin-action-item,
    .admin-agenda-item {
        grid-template-columns: 1fr;
    }
    .admin-action-date,
    .admin-agenda-time,
    .admin-news-copy span {
        grid-column: auto;
    }
}
