:root {
    /* Paleta institucional */
    --verde-principal: #89A492;
    --verde-oscuro: #708A79;
    --verde-secundario: #A7B9AD;
    --verde-suave: #E5ECE7;
    --dorado: #C99A2E;
    --fondo: #F7F9F8;
    --texto: #18342C;

    /* Compatibilidad con todo el diseño actual */
    --dp-primary: #89A492;
    --dp-primary-dark: #708A79;
    --dp-primary-deep: #587064;

    --dp-bg: #F7F9F8;
    --dp-surface: #FFFFFF;
    --dp-text: #18342C;
    --dp-muted: #53675D;
    --dp-border: #DDE6E0;

    --dp-shadow: 0 14px 35px rgba(60, 82, 70, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.declarapublica-body {
    margin: 0;
    min-height: 100vh;
    background: var(--dp-bg);
    color: var(--dp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.dp-main {
    min-height: calc(100vh - 92px);
}

/* Encabezado */
.dp-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--dp-border);
    box-shadow: 0 3px 18px rgba(36, 49, 43, 0.05);
}

.dp-header__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dp-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dp-text);
    text-decoration: none !important;
}

.dp-brand__logo {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.dp-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.dp-brand__institution {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.dp-brand__office {
    margin-top: 3px;
    color: var(--dp-primary-dark);
    font-size: .88rem;
    font-weight: 600;
}

.dp-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid rgba(137, 164, 146, .36);
    border-radius: 999px;
    background: #F7FAF8;
    color: var(--dp-primary-dark);
    font-size: .86rem;
    font-weight: 700;
}

/* Portada */
.dp-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 62px;
    background:
        radial-gradient(circle at 14% 12%, rgba(137,164,146,.18), transparent 34%),
        radial-gradient(circle at 88% 20%, rgba(183,155,89,.10), transparent 26%),
        linear-gradient(180deg, #F8FAF9 0%, #EEF4F0 100%);
}

.dp-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.dp-shape--one {
    width: 360px;
    height: 360px;
    right: -170px;
    top: 90px;
    border: 62px solid rgba(137,164,146,.08);
}

.dp-shape--two {
    width: 240px;
    height: 240px;
    left: -120px;
    bottom: -105px;
    background: rgba(137,164,146,.07);
}

.dp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.dp-hero__eyebrow,
.dp-results-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dp-primary-dark);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.dp-hero__title {
    margin: 15px 0 7px;
    color: var(--dp-primary-deep);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.dp-hero__subtitle {
    margin: 0 0 34px;
    color: var(--dp-muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 500;
}

.dp-search-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 24px;
    text-align: left;
    background: var(--dp-surface);
    border: 1px solid rgba(137,164,146,.26);
    border-radius: 24px;
    box-shadow: var(--dp-shadow);
}

.dp-search-card__icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--dp-primary), #AFC2B5);
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 12px 24px rgba(73,104,90,.18);
}

.dp-search-card__body h2 {
    margin: 0 0 8px;
    color: var(--dp-text);
    font-size: 1.35rem;
    font-weight: 800;
}

.dp-search-card__body > p {
    margin: 0 0 22px;
    color: var(--dp-muted);
    line-height: 1.65;
}

.dp-label {
    display: block;
    margin-bottom: 8px;
    color: var(--dp-text);
    font-size: .9rem;
    font-weight: 700;
}

.dp-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.dp-input-wrap {
    position: relative;
}

.dp-input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: var(--dp-primary);
    z-index: 2;
}

.dp-input.form-control {
    height: 52px;
    padding-left: 46px;
    border: 1px solid var(--dp-border);
    border-radius: 12px;
    color: var(--dp-text);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dp-input.form-control:focus {
    border-color: var(--dp-primary);
    box-shadow: 0 0 0 4px rgba(137,164,146,.14);
}

.dp-btn-primary,
.dp-btn-secondary,
.dp-btn-pdf {
    border: 0;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.dp-btn-primary {
    min-width: 138px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;

    background: #587064 !important;
    color: #ffffff !important;

    font-weight: 700;
    box-shadow: 0 10px 22px rgba(41,75,60,.22);
}

.dp-btn-primary:hover,
.dp-btn-primary:focus {
    background: #455A50 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.dp-info-row {
    margin: 26px auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 26px;
    color: var(--dp-muted);
    font-size: .88rem;
}

.dp-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dp-info-item i {
    color: var(--dp-primary-dark);
}

/* Resultados */
.dp-results-hero {
    padding: 42px 0 32px;
    background: linear-gradient(135deg, #EEF4F0 0%, #F9FBFA 70%);
    border-bottom: 1px solid var(--dp-border);
}

.dp-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.dp-results-heading h1 {
    margin: 7px 0 8px;
    color: var(--dp-primary-deep);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 800;
}

.dp-results-heading p {
    margin: 0 0 10px;
    color: var(--dp-muted);
}

.dp-person-name {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--dp-border);
    color: var(--dp-text);
    font-weight: 700;
}

.dp-person-name i {
    color: var(--dp-primary);
}

.dp-btn-secondary {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border: 1px solid var(--dp-primary);
    border-radius: 10px;
    background: #fff;
    color: var(--dp-primary-dark) !important;
    text-decoration: none !important;
}

.dp-btn-secondary:hover {
    background: var(--dp-primary-deep);
    border-color: var(--dp-primary-deep);
    color: #fff !important;
}

.dp-results-section {
    padding: 38px 0 60px;
}

.dp-result-card {
    margin-bottom: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--dp-border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(46,76,62,.08);
}

.dp-result-card__header {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAF9 100%);
    border-bottom: 1px solid var(--dp-border);
}

.dp-result-card__kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--dp-primary-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dp-result-card__header h2 {
    margin: 0;
    color: var(--dp-text);
    font-size: 1.18rem;
    font-weight: 800;
}

.dp-result-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(137,164,146,.13);
    color: var(--dp-primary-deep);
    font-size: 1.15rem;
}

.dp-table-wrap {
    padding: 18px 20px 22px;
}

.dp-table {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

.dp-table thead th {
    border-top: 0 !important;
    border-bottom: 1px solid var(--dp-border) !important;
    background: #F1F6F3;
    color: var(--dp-primary-deep);
    font-size: .82rem;
    font-weight: 800;
    vertical-align: middle;
}

.dp-table tbody td {
    border-top: 1px solid #EDF1EF !important;
    color: #405048;
    font-size: .9rem;
    vertical-align: middle;
}

.dp-table tbody tr:hover {
    background: #FAFCFB;
}

.dp-btn-pdf {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    background: #587064 !important;
    color: #ffffff !important;

    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.dp-btn-pdf i {
    color: #ffffff !important;
}

.dp-btn-pdf:hover,
.dp-btn-pdf:focus {
    background: #455A50 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* DataTables */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--dp-border);
    border-radius: 8px;
    padding: 6px 9px;
    background: #fff;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--dp-primary);
    box-shadow: 0 0 0 3px rgba(137,164,146,.12);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border: 1px solid var(--dp-primary) !important;
    background: var(--dp-primary) !important;
    color: #fff !important;
    border-radius: 7px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: 1px solid var(--dp-primary-dark) !important;
    background: var(--dp-primary-dark) !important;
    color: #fff !important;
    border-radius: 7px;
}

/* Pie */
.dp-footer {
    background: var(--dp-primary-deep);
    color: rgba(255,255,255,.92);
}

.dp-footer__inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: .86rem;
}

.dp-footer__inner > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-footer__legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.75);
}

/* Compatibilidad con clases antiguas */
.content {
    padding-top: 40px;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.text-center {
    color: inherit;
}

@media (max-width: 767.98px) {
    .dp-header__inner {
        min-height: 82px;
    }

    .dp-brand__logo {
        height: 50px;
    }

    .dp-brand__institution {
        font-size: .9rem;
    }

    .dp-header__badge {
        display: none;
    }

    .dp-hero {
        padding: 52px 0 42px;
    }

    .dp-search-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .dp-search-card__icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .dp-search-row {
        grid-template-columns: 1fr;
    }

    .dp-btn-primary {
        width: 100%;
    }

    .dp-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dp-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .dp-result-card__header {
        align-items: flex-start;
    }

    .dp-table-wrap {
        padding: 12px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left !important;
        margin-bottom: 12px;
    }

    .dp-footer__inner {
        padding-top: 22px;
        padding-bottom: 22px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .dp-brand__text {
        display: none;
    }

    .dp-hero__title {
        font-size: 2rem;
    }

    .dp-search-card {
        border-radius: 18px;
    }
}

/* =========================
   ENCABEZADO INSTITUCIONAL
   ========================= */

.institutional-header {
     width: 100%;
    background: #89A492;
    color: #ffffff;
    padding: 18px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,.10);
}

.institutional-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.institutional-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.institutional-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.institutional-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-transform: uppercase;
}

.institutional-brand-text strong {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.institutional-brand-text span {
    font-size: .88rem;
    opacity: .96;
}

.institutional-divider {
    width: 1px;
    height: 54px;
    background: rgba(255,255,255,.45);
    flex-shrink: 0;
}

.institutional-shield {
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #ffffff;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .institutional-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .institutional-divider {
        display: none;
    }

    .institutional-brand-right {
        margin-top: 4px;
    }

    .institutional-brand-text strong {
        font-size: 1rem;
    }

    .institutional-brand-text span {
        font-size: .8rem;
    }
}

/* =========================
   FOOTER DECLARA PÚBLICA
   ========================= */

.dp-footer {
    margin-top: 0;
    background: #89A492;
    color: #ffffff;
}

.dp-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 30px;
}

.dp-footer__brand,
.dp-footer__center,
.dp-footer__right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-footer__center {
    text-align: center;
}

.dp-footer__right {
    text-align: right;
}

.dp-footer__inner strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.dp-footer__inner span {
    font-size: .85rem;
    opacity: .90;
}

.dp-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 13px 20px;
    text-align: center;
    font-size: .78rem;
    background: rgba(0,0,0,.10);
}

@media (max-width: 768px) {
    .dp-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dp-footer__brand,
    .dp-footer__center,
    .dp-footer__right {
        text-align: center;
    }
}
