:root {
    --green-dark: #064b2f;
    --green-main: #08743f;
    --green-soft: #e8f4ee;
    --gold-main: #d6a51e;
    --gold-light: #f4d86b;
    --white: #ffffff;
    --gray-bg: #f4f7f5;
    --gray-text: #52616b;
    --dark-text: #182622;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--dark-text);
    background: var(--gray-bg);
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.splash-page {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(6, 75, 47, 0.96), rgba(8, 116, 63, 0.90)),
        url("../img/fondo-rendicion.jpeg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.splash-page::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 216, 107, 0.35), transparent 68%);
    top: -180px;
    right: -150px;
}

.splash-page::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 216, 107, 0.22), transparent 70%);
    bottom: -160px;
    left: -120px;
}

.splash-card {
    position: relative;
    z-index: 2;
    width: min(960px, 92%);
    padding: 48px 38px;
    text-align: center;
    color: var(--white);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    animation: splashIn 900ms ease-out both;
}

.splash-logo-box {
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
    background: var(--white);
    border-radius: 34px;
    padding: 14px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.30);
}

.splash-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.splash-kicker {
    margin: 0 0 12px;
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.splash-content h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.95;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.splash-content h1 span {
    color: var(--gold-light);
}

.splash-description {
    margin-top: 22px;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 600;
}

.splash-progress {
    width: 260px;
    height: 8px;
    margin: 32px auto 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.splash-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-main), var(--gold-light));
    animation: progressIntro 5s linear forwards;
}

.splash-skip {
    display: inline-block;
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    font-weight: 700;
    transition: 0.25s ease;
}

.splash-skip:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

@keyframes splashIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes progressIntro {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.site-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(214, 165, 30, 0.20), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f6faf7 50%, #e9f5ef 100%);
}

.public-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    color: var(--white);
    padding: 22px 0;
    box-shadow: 0 14px 36px rgba(6, 75, 47, 0.24);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: var(--white);
    padding: 8px;
    border-radius: 20px;
}

.brand h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
}

.brand p {
    margin: 2px 0 0;
    color: var(--gold-light);
    font-weight: 700;
}

.header-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--gold-light);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
}

.hero-section {
    padding: 58px 0 70px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: 36px;
    padding: 46px;
    box-shadow: 0 28px 80px rgba(16, 24, 40, 0.11);
    border: 1px solid rgba(6, 75, 47, 0.08);
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 165, 30, 0.18), transparent 70%);
}

.gold-pill {
    display: inline-block;
    background: rgba(214, 165, 30, 0.16);
    color: #85620e;
    border: 1px solid rgba(214, 165, 30, 0.35);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero-panel h2 {
    color: var(--green-dark);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.hero-panel h2 strong {
    color: var(--gold-main);
}

.hero-panel p {
    color: var(--gray-text);
    font-size: 18px;
    line-height: 1.65;
    max-width: 720px;
}

.hero-image-card {
    position: relative;
    z-index: 2;
    background: #f8fbf9;
    border: 1px solid rgba(6, 75, 47, 0.09);
    border-radius: 30px;
    padding: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.50);
}

.hero-image-card img {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.event-grid div {
    background: var(--green-soft);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(6, 75, 47, 0.08);
}

.event-grid small {
    display: block;
    color: var(--gray-text);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 4px;
}

.event-grid strong {
    color: var(--green-dark);
    font-size: 15px;
}

.section-heading {
    max-width: 760px;
    margin: 54px auto 34px;
}

.section-heading span {
    color: var(--gold-main);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.section-heading h3 {
    color: var(--green-dark);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    margin: 8px 0 12px;
}

.section-heading p {
    color: var(--gray-text);
    font-size: 17px;
}

.option-card {
    height: 100%;
    background: var(--white);
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.09);
    border: 1px solid rgba(6, 75, 47, 0.08);
    transition: 0.25s ease;
}

.option-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 80px rgba(16, 24, 40, 0.15);
}

.option-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: var(--white);
    margin-bottom: 22px;
}

.option-icon span {
    font-size: 22px;
    font-weight: 950;
}

.option-card h4 {
    color: var(--green-dark);
    font-size: 27px;
    font-weight: 900;
    margin-bottom: 14px;
}

.option-card p {
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.65;
}

.option-card-gold .option-icon {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    color: var(--green-dark);
}

.option-alert {
    background: #f8fbf9;
    border-left: 4px solid var(--gold-main);
    padding: 13px 16px;
    border-radius: 14px;
    margin: 22px 0;
    color: var(--dark-text);
}

.btn-main {
    display: inline-block;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: var(--white);
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn-main:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    color: var(--green-dark);
}

.btn-gold:hover {
    color: var(--green-dark);
}

.disabled-link {
    opacity: 0.75;
    pointer-events: none;
}

.public-footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 24px 0;
    text-align: center;
}

.public-footer p {
    margin: 0;
}

.public-footer strong {
    color: var(--gold-light);
}

@media (max-width: 991px) {
    .header-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-panel {
        padding: 32px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .splash-card {
        padding: 34px 22px;
        border-radius: 28px;
    }

    .splash-logo-box {
        width: 120px;
        height: 120px;
    }

    .brand img {
        width: 64px;
        height: 64px;
    }

    .brand h1 {
        font-size: 21px;
    }

    .hero-section {
        padding-top: 32px;
    }

    .option-card {
        padding: 28px;
    }
}
/* ==========================================================
   FORMULARIO CONSULTA CIUDADANA
========================================================== */

.form-page {
    padding: 56px 0 80px;
}

.form-intro {
    max-width: 900px;
    margin-bottom: 28px;
}

.form-intro h2 {
    color: var(--green-dark);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 950;
    letter-spacing: -1px;
    margin: 14px 0;
}

.form-intro p {
    color: var(--gray-text);
    font-size: 18px;
    line-height: 1.7;
}

.form-card {
    background: var(--white);
    border-radius: 34px;
    padding: 38px;
    box-shadow: 0 28px 80px rgba(16, 24, 40, 0.11);
    border: 1px solid rgba(6, 75, 47, 0.08);
}

.form-section {
    padding: 30px 0;
    border-bottom: 1px solid rgba(6, 75, 47, 0.10);
}

.form-section:first-child {
    padding-top: 0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--green-dark);
    font-size: 24px;
    font-weight: 950;
    margin-bottom: 20px;
}

.form-section h4 {
    color: var(--gold-main);
    font-size: 17px;
    font-weight: 900;
    margin: 28px 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.section-help {
    color: var(--gray-text);
    margin-top: -10px;
}

.form-group label {
    color: #344054;
    font-weight: 800;
}

.form-control {
    min-height: 48px;
    border-radius: 15px;
    border: 1px solid #d6ded9;
    color: var(--dark-text);
}

.form-control:focus {
    border-color: var(--green-main);
    box-shadow: 0 0 0 0.2rem rgba(8, 116, 63, 0.12);
}

textarea.form-control {
    min-height: 120px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.check-option {
    min-height: 58px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fbfdfc;
    border: 1px solid #dbe6df;
    border-radius: 16px;
    padding: 13px 14px;
    transition: 0.2s ease;
    cursor: pointer;
}

.check-option:hover {
    border-color: var(--green-main);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.07);
    transform: translateY(-2px);
}

.check-option input {
    margin-top: 4px;
}

.check-option span {
    color: var(--dark-text);
    font-weight: 650;
    line-height: 1.35;
}

.data-box {
    background: var(--green-soft);
    border-left: 5px solid var(--gold-main);
    border-radius: 18px;
    padding: 20px;
}

.data-box label {
    display: flex;
    gap: 12px;
    margin: 0;
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.5;
}

.data-box input {
    margin-top: 5px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 32px;
}

.btn-secondary-custom {
    display: inline-block;
    color: var(--green-dark);
    background: #eef4f0;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 900;
}

.btn-secondary-custom:hover {
    color: var(--green-dark);
    background: #e2ece6;
}

.success-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.success-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 36px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 28px 80px rgba(16, 24, 40, 0.12);
    border: 1px solid rgba(6, 75, 47, 0.08);
}

.success-card img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 24px;
}

.success-card h1 {
    color: var(--green-dark);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 950;
    margin: 16px 0;
}

.success-card p {
    color: var(--gray-text);
    font-size: 18px;
}

.code-box {
    max-width: 360px;
    margin: 28px auto;
    background: var(--green-soft);
    border: 1px solid rgba(6, 75, 47, 0.12);
    border-radius: 24px;
    padding: 20px;
}

.code-box small {
    display: block;
    color: var(--gray-text);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.code-box strong {
    color: var(--green-dark);
    font-size: 28px;
    font-weight: 950;
}

@media (max-width: 576px) {
    .form-card {
        padding: 24px;
        border-radius: 26px;
    }

    .form-section {
        padding: 24px 0;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .success-card {
        padding: 32px 22px;
    }
}

/* ==========================================================
   PANEL ADMINISTRATIVO
========================================================== */

.admin-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(214, 165, 30, 0.24), transparent 28%),
        linear-gradient(135deg, var(--green-dark), var(--green-main));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
}

.admin-login-card {
    width: min(460px, 100%);
    background: var(--white);
    border-radius: 34px;
    padding: 38px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.25);
}

.admin-login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.admin-login-brand img {
    width: 105px;
    height: 105px;
    object-fit: contain;
    margin-bottom: 18px;
}

.admin-login-brand span {
    display: inline-block;
    color: var(--gold-main);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.admin-login-brand h1 {
    color: var(--green-dark);
    font-size: 30px;
    font-weight: 950;
    margin: 0;
}

.admin-login-brand p {
    color: var(--gray-text);
    margin: 8px 0 0;
}

.admin-wrapper {
    min-height: 100vh;
    display: flex;
    background: #f4f7f5;
}

.admin-sidebar {
    width: 290px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--green-dark), #032f1d);
    color: var(--white);
    padding: 26px 20px;
    position: sticky;
    top: 0;
}

.admin-sidebar-brand {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

.admin-sidebar-brand img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: var(--white);
    padding: 8px;
    border-radius: 22px;
    margin-bottom: 14px;
}

.admin-sidebar-brand h2 {
    font-size: 22px;
    font-weight: 950;
    margin: 0;
}

.admin-sidebar-brand p {
    color: var(--gold-light);
    font-size: 13px;
    margin: 6px 0 0;
}

.admin-sidebar nav a {
    display: block;
    color: rgba(255,255,255,0.86);
    padding: 13px 15px;
    border-radius: 16px;
    font-weight: 850;
    margin-bottom: 8px;
    transition: 0.2s ease;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: var(--gold-light);
    background: rgba(255,255,255,0.10);
}

.admin-main {
    flex: 1;
    padding: 34px;
    overflow-x: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.admin-topbar span {
    color: var(--gold-main);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-topbar h1 {
    color: var(--green-dark);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 950;
    margin: 4px 0 0;
}

.admin-user {
    background: var(--white);
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--green-dark);
    font-weight: 850;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.metric-card {
    background: var(--white);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
    border: 1px solid rgba(6, 75, 47, 0.08);
}

.metric-card small {
    display: block;
    color: var(--gray-text);
    font-weight: 850;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.metric-card strong {
    display: block;
    color: var(--green-dark);
    font-size: 42px;
    line-height: 1;
    font-weight: 950;
    margin-bottom: 8px;
}

.metric-card span {
    color: var(--gold-main);
    font-weight: 850;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.admin-panel {
    background: var(--white);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
    border: 1px solid rgba(6, 75, 47, 0.08);
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-panel-head-column {
    align-items: flex-start;
    flex-direction: column;
}

.admin-panel-head h2 {
    color: var(--green-dark);
    font-size: 23px;
    font-weight: 950;
    margin: 0;
}

.admin-panel-head a {
    color: var(--green-dark);
    background: var(--green-soft);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 850;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table thead th {
    color: var(--gray-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 12px;
    border: none;
}

.admin-table tbody tr {
    background: #fbfdfc;
    box-shadow: 0 1px 0 rgba(6, 75, 47, 0.07);
}

.admin-table tbody td {
    padding: 13px 12px;
    color: var(--dark-text);
    font-weight: 650;
    border-top: 1px solid #edf2ef;
    border-bottom: 1px solid #edf2ef;
    vertical-align: middle;
}

.admin-table tbody td:first-child {
    border-left: 1px solid #edf2ef;
    border-radius: 14px 0 0 14px;
    color: var(--green-dark);
    font-weight: 950;
}

.admin-table tbody td:last-child {
    border-right: 1px solid #edf2ef;
    border-radius: 0 14px 14px 0;
}

.status-badge {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-dark);
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.admin-search,
.admin-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.admin-search input,
.admin-filter-form input,
.admin-filter-form select {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #d6ded9;
    padding: 0 14px;
    min-width: 260px;
}

.admin-search input,
.admin-filter-form input {
    flex: 1;
}

.admin-search button,
.admin-filter-form button {
    min-height: 44px;
    border: none;
    border-radius: 999px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: var(--white);
    font-weight: 900;
}

.admin-search a,
.admin-filter-form a {
    color: var(--green-dark);
    font-weight: 850;
}

.admin-pagination {
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .metrics-grid,
    .admin-grid-two {
        grid-template-columns: 1fr 1fr;
    }

    .admin-sidebar {
        width: 250px;
    }
}

@media (max-width: 850px) {
    .admin-wrapper {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }

    .admin-sidebar nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .admin-sidebar nav a {
        margin-bottom: 0;
    }

    .admin-main {
        padding: 24px 16px;
    }

    .metrics-grid,
    .admin-grid-two {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .admin-login-card {
        padding: 28px 22px;
    }

    .admin-sidebar nav {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-search input,
    .admin-filter-form input,
    .admin-filter-form select {
        width: 100%;
        min-width: 100%;
    }

    .admin-search button,
    .admin-filter-form button {
        width: 100%;
    }
}

/* ==========================================================
   BOTONES DE EXPORTACI�N
========================================================== */

.export-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.export-btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 950;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.10);
}

.export-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.excel-btn {
    background: linear-gradient(135deg, #08743f, #064b2f);
}

.pdf-btn {
    background: linear-gradient(135deg, #a61b1b, #7f1111);
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.3px;
}

.icon-action:hover {
    color: #ffffff;
    opacity: 0.92;
}

.excel-icon {
    background: linear-gradient(135deg, #08743f, #064b2f);
}

.pdf-icon {
    background: linear-gradient(135deg, #b42318, #7a130d);
}

/* ==========================================================
   DETALLE Y GESTI�N DE PREGUNTAS
========================================================== */

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-list div {
    background: #fbfdfc;
    border: 1px solid #edf2ef;
    border-radius: 16px;
    padding: 14px 16px;
}

.detail-list span {
    display: block;
    color: var(--gray-text);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
}

.detail-list strong {
    display: block;
    color: var(--green-dark);
    font-weight: 900;
    line-height: 1.45;
}

.question-box {
    background: #fbfdfc;
    border-left: 5px solid var(--gold-main);
    border-radius: 18px;
    padding: 22px;
    color: var(--dark-text);
    font-size: 17px;
    line-height: 1.7;
    white-space: pre-line;
}

.manage-btn {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-dark);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.manage-btn:hover {
    color: var(--green-dark);
    background: #dcebe3;
}

.mt-4 {
    margin-top: 24px;
}

@media (max-width: 992px) {
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   GR�FICAS DASHBOARD
========================================================== */

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 26px;
}

.chart-panel {
    min-height: 410px;
}

.chart-panel canvas {
    width: 100% !important;
    height: 320px !important;
}

@media (max-width: 1100px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-panel {
        min-height: 380px;
    }
}

/* ==========================================================
   ACCIONES DASHBOARD
========================================================== */

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 850px) {
    .dashboard-actions {
        justify-content: flex-start;
    }
}

/* ==========================================================
   DETALLE CONSULTA CIUDADANA
========================================================== */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid rgba(6, 75, 47, 0.12);
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 850;
    line-height: 1.35;
}

.tag-list-large span {
    border-radius: 16px;
    padding: 12px 15px;
}

.empty-box {
    background: #fbfdfc;
    border: 1px dashed #d6ded9;
    color: var(--gray-text);
    border-radius: 18px;
    padding: 18px;
    font-weight: 750;
}

/* ==========================================================
   DETALLE CONSULTA CIUDADANA
========================================================== */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid rgba(6, 75, 47, 0.12);
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 850;
    line-height: 1.35;
}

.tag-list-large span {
    border-radius: 16px;
    padding: 12px 15px;
}

.empty-box {
    background: #fbfdfc;
    border: 1px dashed #d6ded9;
    color: var(--gray-text);
    border-radius: 18px;
    padding: 18px;
    font-weight: 750;
}

/* ==========================================================
   SEGURIDAD LOGIN ADMIN
========================================================== */

.security-note {
    margin-top: 22px;
    padding: 13px 16px;
    background: #f8fbf9;
    border: 1px solid #dbe6df;
    border-left: 4px solid var(--gold-main);
    color: var(--gray-text);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

/* ==========================================================
   ACABADO VISUAL FINAL
========================================================== */

.admin-discreet-link {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 700;
}

.admin-discreet-link:hover {
    color: var(--gold-light);
}

.error-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(214, 165, 30, 0.22), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f6faf7 50%, #e9f5ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.error-card {
    width: min(760px, 100%);
    background: var(--white);
    border-radius: 36px;
    padding: 46px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(16, 24, 40, 0.12);
    border: 1px solid rgba(6, 75, 47, 0.08);
}

.error-card img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 24px;
}

.error-card h1 {
    color: var(--green-dark);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 950;
    margin: 16px 0;
}

.error-card p {
    color: var(--gray-text);
    font-size: 18px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 24px;
}

.success-note {
    background: #fbfdfc;
    border: 1px solid #dbe6df;
    color: var(--gray-text);
    border-radius: 16px;
    padding: 13px 16px;
    margin: 0 auto 24px;
    max-width: 430px;
    font-weight: 750;
}

.btn-main,
.btn-secondary-custom,
.export-btn,
.manage-btn,
.icon-action {
    text-decoration: none !important;
}

.admin-table tbody tr:hover {
    background: #f7fbf8;
}

.admin-panel {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-panel:hover {
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.10);
}

.form-card,
.success-card,
.error-card,
.hero-panel,
.option-card,
.admin-panel,
.metric-card {
    backdrop-filter: saturate(110%);
}

input[type="checkbox"] {
    accent-color: var(--green-main);
}

::selection {
    background: rgba(214, 165, 30, 0.35);
    color: var(--green-dark);
}

@media (max-width: 768px) {
    .error-card {
        padding: 32px 22px;
        border-radius: 28px;
    }

    .success-card {
        margin: 0 8px;
    }

    .form-actions {
        width: 100%;
    }

    .form-actions .btn-main,
    .form-actions .btn-secondary-custom {
        width: 100%;
        text-align: center;
    }

    .admin-topbar h1 {
        word-break: break-word;
    }

    .row-actions {
        width: 100%;
    }

    .row-actions .icon-action {
        flex: 1;
    }
}

/* ==========================================================
   CORRECCI�N LOGO �NICO HEADER P�BLICO
========================================================== */

.brand-main-logo {
    width: 76px !important;
    height: 76px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    padding: 8px !important;
    border-radius: 20px !important;
    display: block !important;
}

.public-header .brand > img:not(.brand-main-logo) {
    display: none !important;
}

/* ==========================================================
   FORMULARIOS P�BLICOS PRO
========================================================== */

.form-page-bg {
    background:
        radial-gradient(circle at top left, rgba(214, 165, 30, 0.14), transparent 25%),
        linear-gradient(180deg, #f8fbf9 0%, #edf6f1 100%);
    min-height: 100vh;
}

.public-form-wrapper {
    max-width: 1040px;
    margin: 0 auto;
}

.public-form-intro {
    background: linear-gradient(135deg, #064b2f 0%, #08743f 100%);
    color: #ffffff;
    border-radius: 32px;
    padding: 34px 34px 28px;
    box-shadow: 0 26px 70px rgba(16, 24, 40, 0.12);
    margin-bottom: 24px;
}

.public-form-intro h1 {
    margin: 16px 0 12px;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 950;
    line-height: 1.06;
}

.public-form-intro p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255,255,255,0.90);
    max-width: 860px;
    margin-bottom: 0;
}

.public-form-highlight {
    margin-top: 18px;
    display: inline-block;
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff3c4;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 800;
}

.public-alert {
    border-radius: 22px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.pro-form {
    display: grid;
    gap: 22px;
}

.form-step-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.step-item {
    background: #ffffff;
    border: 1px solid rgba(6, 75, 47, 0.10);
    color: var(--green-dark);
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
}

.step-item.active {
    background: linear-gradient(135deg, #064b2f, #08743f);
    color: #ffffff;
}

.pro-form-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 65px rgba(16, 24, 40, 0.08);
    border: 1px solid rgba(6, 75, 47, 0.08);
}

.pro-form-card-head {
    margin-bottom: 20px;
}

.pro-form-card-head h2 {
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: 28px;
    font-weight: 950;
}

.pro-form-card-head p {
    margin: 0;
    color: var(--gray-text);
    line-height: 1.7;
}

.required-mark {
    color: #b42318;
    font-weight: 900;
}

.pro-form .form-group label {
    color: var(--green-dark);
    font-weight: 900;
    margin-bottom: 8px;
}

.pro-form .form-control {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid #d9e6dd;
    padding: 12px 16px;
    box-shadow: none;
}

.pro-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.pro-form .form-control:focus {
    border-color: var(--gold-main);
    box-shadow: 0 0 0 4px rgba(214, 165, 30, 0.12);
}

.radio-card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-card {
    min-width: 130px;
    background: #f9fcfa;
    border: 1px solid #dce8df;
    border-radius: 18px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    color: var(--green-dark);
    cursor: pointer;
}

.radio-card input {
    transform: scale(1.1);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.check-card {
    background: #fbfdfc;
    border: 1px solid #e1ebe4;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.check-card:hover {
    border-color: rgba(214, 165, 30, 0.55);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.06);
    transform: translateY(-1px);
}

.check-card input {
    margin-top: 3px;
    transform: scale(1.1);
}

.check-card span {
    color: #1f3a2d;
    font-weight: 750;
    line-height: 1.5;
}

.check-card-priority {
    background: linear-gradient(180deg, #fcfdfc 0%, #f7fbf8 100%);
}

.char-counter {
    margin-top: 7px;
    color: var(--gray-text);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.legal-check {
    background: #fbfdfc;
    border: 1px solid #e0e9e3;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.7;
    color: var(--dark-text);
    cursor: pointer;
}

.legal-check input {
    margin-top: 4px;
    transform: scale(1.2);
}

.public-form-wrapper .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 992px) {
    .check-grid {
        grid-template-columns: 1fr;
    }

    .public-form-intro {
        padding: 28px 24px;
        border-radius: 26px;
    }

    .pro-form-card {
        padding: 22px;
    }

    .pro-form-card-head h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .form-step-line {
        justify-content: flex-start;
    }

    .step-item {
        width: 100%;
        text-align: center;
    }

    .radio-card-group {
        flex-direction: column;
    }

    .radio-card {
        width: 100%;
    }

    .public-form-wrapper .form-actions .btn-main,
    .public-form-wrapper .form-actions .btn-secondary-custom {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================
   LOGOS EN FORMULARIOS P�BLICOS
========================================================== */

.public-form-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.public-form-brand-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.form-logo-alcaldia {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.public-form-brand-left strong {
    display: block;
    color: #ffffff;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.1;
}

.public-form-brand-left span {
    display: block;
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 850;
    margin-top: 4px;
}

.public-form-brand-right {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.form-logo-rendicion {
    max-width: 360px;
    width: 100%;
    max-height: 92px;
    object-fit: contain;
    background: rgba(255,255,255,0.96);
    padding: 10px 16px;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    .public-form-brand {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .public-form-brand-left {
        width: 100%;
    }

    .public-form-brand-right {
        width: 100%;
        justify-content: center;
    }

    .form-logo-rendicion {
        max-width: 360px;
        max-height: 92px;
    }

    .form-logo-alcaldia {
        width: 68px;
        height: 68px;
    }

    .public-form-brand-left strong {
        font-size: 18px;
    }
}

/* ==========================================================
   FORMULARIO DOCUMENTAL DETALLADO
========================================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-grid div {
    background: #fbfdfc;
    border: 1px solid #e1ebe4;
    border-radius: 18px;
    padding: 15px 16px;
}

.info-grid span {
    display: block;
    color: var(--gray-text);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.info-grid strong {
    display: block;
    color: var(--green-dark);
    font-weight: 900;
    line-height: 1.45;
}

.document-text-box {
    background: #fbfdfc;
    border-left: 5px solid var(--gold-main);
    color: var(--dark-text);
    border-radius: 18px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.75;
}

.instruction-list,
.normative-list {
    margin: 0;
    padding-left: 22px;
    color: var(--dark-text);
}

.instruction-list li,
.normative-list li {
    margin-bottom: 10px;
    line-height: 1.65;
    font-weight: 650;
}

.topic-group {
    margin-top: 28px;
}

.topic-group:first-of-type {
    margin-top: 0;
}

.topic-group h3 {
    color: var(--gold-main);
    font-size: 17px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.form-note {
    background: #fffaf0;
    border: 1px solid rgba(214, 165, 30, 0.38);
    color: #7a5a0c;
    padding: 12px 15px;
    border-radius: 15px;
    font-weight: 850;
}

.admin-only-info {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.final-submit-card {
    text-align: center;
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    color: #ffffff;
}

.final-submit-card h2 {
    color: #ffffff;
    font-weight: 950;
    margin-bottom: 8px;
}

.final-submit-card p {
    color: var(--gold-light);
    font-weight: 850;
    margin-bottom: 0;
}

.final-submit-card .form-actions {
    justify-content: center;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
