:root {
    --color1: #68421f;
    --color2: #9a744b;
    --color3: #f5f5f1;
    --color1-soft: rgba(104, 66, 31, 0.10);
    --color2-soft: rgba(154, 116, 75, 0.14);
    --color3-soft: rgba(245, 245, 241, 0.86);
    --ink: #30271e;
    --muted: #6d6255;
    --border: rgba(104, 66, 31, 0.16);
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color3);
    background-image: linear-gradient(180deg, rgba(245, 245, 241, 0) 0%, rgba(154, 116, 75, 0.12) 100%);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 22rem;
    color: var(--ink);
}

.card-header.bg-primary,
.navbar.bg-primary,
.btn-primary,
.badge.bg-success-subtle,
.btn-outline-primary:hover,
.btn-primary:hover {
    background-color: var(--color1) !important;
    border-color: var(--color1) !important;
    color: var(--color3) !important;
}

.brand-logo {
    display: block;
    width: 135px;
    height: auto;
}

.login-brand {
    display: flex;
    justify-content: center;
}

.login-brand .brand-logo {
    width: min(100%, 250px);
}

.btn-outline-primary {
    color: var(--color1);
    border-color: var(--color1);
}

.btn-outline-primary:hover {
    background-color: var(--color1) !important;
    color: var(--color3) !important;
}

.card,
.border,
.captcha-box {
    border-color: var(--border) !important;
}

.captcha-box {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--color3-soft), var(--color2-soft));
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.card {
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(104, 66, 31, 0.08);
}

.rounded-top-4 {
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
}

.text-muted,
.small.text-muted,
.label,
.card .text-muted {
    color: var(--muted) !important;
}

.form-control,
.form-select {
    border-color: rgba(104, 66, 31, 0.22);
    background-color: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color1);
    box-shadow: 0 0 0 0.2rem rgba(104, 66, 31, 0.14);
}

.vote-option-list {
    display: grid;
    gap: 0.65rem;
}

.vote-option {
    border-radius: 0.75rem;
    transition: box-shadow 140ms ease;
}

.vote-option-input {
    width: 1rem;
    height: 1rem;
    margin: 0 !important;
    accent-color: var(--color1);
    cursor: pointer;
}

.vote-option .input-group-text {
    padding: 0 1rem;
    border-color: rgba(104, 66, 31, 0.2);
    background-color: #fff;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.vote-option-label {
    display: flex;
    min-height: 3.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(104, 66, 31, 0.2);
    background-color: #fff;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.vote-option:hover .input-group-text,
.vote-option:hover .vote-option-label {
    border-color: var(--color2);
    background-color: #fcfaf6;
}

.vote-option:has(.vote-option-input:checked) {
    box-shadow: 0 0 0 2px var(--color1-soft);
}

.vote-option:has(.vote-option-input:checked) .input-group-text,
.vote-option:has(.vote-option-input:checked) .vote-option-label,
.vote-option-label.is-selected {
    border-color: var(--color1) !important;
    background-color: #f7f1e8 !important;
    color: var(--ink) !important;
    font-weight: 600;
}

.vote-option-input:disabled {
    cursor: not-allowed !important;
}

.vote-option:has(.vote-option-input:disabled) .input-group-text,
.vote-option:has(.vote-option-input:disabled) .vote-option-label {
    border-color: #d6d3ce !important;
    background-color: #ffffff !important;
    color: #74706a !important;
    cursor: not-allowed !important;
}

.vote-option:has(.vote-option-input:disabled):hover .input-group-text,
.vote-option:has(.vote-option-input:disabled):hover .vote-option-label {
    border-color: #d6d3ce !important;
    background-color: #ffffff !important;
    color: #74706a !important;
}

.vote-option:has(.vote-option-input:disabled:checked) .input-group-text,
.vote-option:has(.vote-option-input:disabled:checked) .vote-option-label {
    border-color: var(--color1) !important;
    background-color: #f7f1e8 !important;
    color: var(--ink);
}

.vote-option-selected {
    display: none;
    flex-shrink: 0;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background-color: var(--color1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.vote-option:has(.vote-option-input:checked) .vote-option-selected,
.vote-option-label.is-selected .vote-option-selected {
    display: inline-flex;
    align-items: center;
}

.vote-actions {
    display: flex;
    justify-content: flex-end;
}

.vote-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 13rem;
    min-height: 3.2rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.35rem 0.8rem rgba(104, 66, 31, 0.16);
    font-weight: 600;
    transition: box-shadow 140ms ease, transform 140ms ease;
}

.vote-submit:hover {
    box-shadow: 0 0.5rem 1rem rgba(104, 66, 31, 0.22);
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.2rem;
    }

    .vote-option-label {
        padding-right: 0.75rem;
    }

    .vote-actions {
        display: block;
    }

    .vote-submit {
        width: 100%;
    }
}

/* Reporte imprimible */
.report-standalone {
    min-height: 100vh;
    padding: 1.5rem;
    color: #000;
    background-color: #fff;
}

.report-sheet {
    max-width: 1100px;
    margin: 0 auto;
    color: #000;
    background-color: #fff;
}

.report-logo {
    width: 150px;
    height: auto;
    filter: grayscale(1);
}

.report-header {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #000;
}

.report-header-table,
.report-header-details {
    width: 100%;
    border-collapse: collapse;
}

.report-header-table td,
.report-header-details th,
.report-header-details td {
    padding: 0;
    border: 0;
    vertical-align: top;
}

.report-header-logo {
    width: 170px;
    padding-right: 1.25rem !important;
}

.report-acta-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.report-header-subtitle {
    padding-top: 0.25rem !important;
    font-size: 1.05rem;
    font-weight: 600;
}

.report-header-meta {
    padding-top: 0.55rem !important;
}

.report-header-meta span {
    display: inline-block;
    margin-right: 1.5rem;
    white-space: nowrap;
}

.report-header-details {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.report-header-details th,
.report-header-details td {
    padding: 0.2rem 0.5rem 0.2rem 0;
}

.report-header-details th {
    width: 6rem;
    text-align: left;
}

.report-header-description {
    margin: 0.75rem 0 0;
    color: #333;
}

.report-section-title {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #000;
}

.report-agenda {
    padding-left: 1.4rem;
}

.report-agenda li {
    margin-bottom: 0.4rem;
    padding-left: 0.2rem;
    list-style: none;
}

.report-agenda-plain {
    list-style: disc;
}

.report-metric {
    height: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #000;
    border-radius: 0;
    color: #000;
    background-color: #fff;
    text-align: center;
}

.report-metric-value {
    color: #000;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.report-metric-label {
    color: #333;
    font-size: 0.78rem;
}

.report-metric-sm .report-metric-value {
    font-size: 1.15rem;
}

.report-progress {
    border: 1px solid #000;
    background-color: #e6e6e6;
}

.report-progress .progress-bar {
    background-color: #000;
}

.report-voting {
    padding: 1.1rem;
    border: 1px solid #000;
    border-radius: 0;
    color: #000;
    background-color: #fff;
}

.report-voting-metrics {
    margin-top: 0.85rem;
}

.report-question {
    padding: 0.85rem 0 0;
    border-top: 1px solid #000;
}

.report-table {
    font-size: 0.88rem;
}

.report-table th {
    color: #000;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.report-sheet .table> :not(caption)>*>* {
    border-color: #000 !important;
}

.report-anexo-block {
    margin-top: 1.5rem;
}

.report-sheet .card {
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.report-sheet .rounded-4 {
    border-radius: 0 !important;
}

.report-sheet .badge {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
}

.report-sheet .text-muted {
    color: #333 !important;
}

.report-sheet .progress,
.report-sheet .progress-stacked {
    border-radius: 0 !important;
    background-color: #e6e6e6 !important;
}

.report-sheet .progress-bar {
    border-radius: 0 !important;
    background-color: #000 !important;
}

.report-sheet a {
    color: #000 !important;
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11px;
    }

    .no-print {
        display: none !important;
    }

    .container,
    .report-container,
    .report-standalone {
        width: 100% !important;
        max-width: none !important;
        min-height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
    }

    .report-sheet {
        max-width: none;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-block,
    .report-voting,
    .report-question,
    .report-anexo-block {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-header {
        margin-bottom: 1rem !important;
    }

    .card-body {
        padding: 0.85rem !important;
    }

    .table {
        font-size: 10px;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

form .form-control,
form .form-select {
    font-size: 0.875rem;
}

form .form-control {
    min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
    padding: 0.25rem 0.5rem;
    border-radius: var(--bs-border-radius-sm);
}

form .form-select {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    border-radius: var(--bs-border-radius-sm);
}

form .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

form .input-group-text {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

form .btn {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm);
}