/* Estilos del formulario y panel SDN */

:root {
    font-family:Inter,system-ui,Arial,sans-serif;
    color:#173a2b;
    background:#f1f6f2
}

* {
    box-sizing:border-box
}

body {
    margin:0
}

header {
    background:linear-gradient(115deg,#0b532f,#23814b);
    color:white;
    padding:24px max(18px,calc((100% - 1100px)/2));
}

header h1 {
    font-size:clamp(22px,3vw,32px);
    margin:0
}

header p {
    margin: 14px 0 0;
}

header .subtitulo {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.wrap {
    max-width:1100px;
    margin:24px auto;
    padding:0 16px
}

.tabs {
    display:flex;
    gap:10px;
    margin-bottom:20px
}

.tabs button {
    background:white;
    color:#145c37;
    border:1px solid #bcd3c2
}

.tabs button.active {
    background:#146a3b;
    color:white
}

button {
    border:0;
    border-radius:9px;
    padding:12px 18px;
    font-weight:700;
    cursor:pointer;
    background:#146a3b;
    color:white
}

button:disabled {
    opacity:.5;
    cursor:not-allowed
}

.panel {
    background:white;
    border:1px solid #d9e6dc;
    border-radius:16px;
    box-shadow:0 7px 26px #123a1d0d;
    padding:22px;
    margin-bottom:18px
}

h2 {
    margin:0 0 10px
}

h3 {
    background:#e8f3ea;
    color:#12613b;
    padding:11px 13px;
    border-radius:8px;
    font-size:15px;
    margin:25px 0 14px
}

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

.field {
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-bottom:12px
}

.field label {
    font-size:14px;
    font-weight:650
}

input,select,textarea {
    width:100%;
    border:1px solid #b7cfc0;
    border-radius:8px;
    padding:11px;
    font:inherit;
    background:white;
    color:#1d3427
}

input:focus,select:focus,textarea:focus {
    outline:2px solid #7cbf91
}

.muted {
    color:#5d7565;
    font-size:13px
}

.hint {
    padding:12px;
    background:#edf6ef;
    border-radius:8px;
    font-size:13px
}

.error {
    color:#b91c1c;
    font-weight:700
}

.success {
    color:#12613b;
    font-weight:700
}

.hidden {
    display:none!important
}

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

.stat {
    padding:18px;
    background:#f0f7f1;
    border-radius:12px
}

.stat strong {
    display:block;
    font-size:30px
}

.stat span {
    font-size:13px
}

.bars {
    display:flex;
    gap:6px;
    align-items:flex-end;
    height:180px;
    overflow-x:auto;
    border-bottom:1px solid #ddd
}

.bar {
    min-width:38px;
    flex:1;
    background:#298550;
    border-radius:5px 5px 0 0;
    position:relative
}

.bar small {
    position:absolute;
    bottom:-22px;
    left:0;
    font-size:10px;
    white-space:nowrap;
    color:#445
}

.barswrap {
    padding-bottom:28px
}

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

.modal {
    position:fixed;
    inset:0;
    background:#092617aa;
    display:grid;
    place-items:center;
    padding:16px
}

.modal>div {
    max-width:450px;
    background:white;
    border-radius:16px;
    padding:28px;
    text-align:center
}

.modal button {
    margin-top:15px
}

.notice {
    border-left:4px solid #d2a133;
    background:#fff9e9;
    padding:12px;
    margin-bottom:16px
}

a {
    color:#0e6a40
}

@media(max-width:720px) {
    .grid,.stats {
    grid-template-columns:1fr
}

.panel {
    padding:16px
}

.stats {
    grid-template-columns:repeat(2,minmax(0,1fr))
}


}

#setup-note {
    display: none !important;
}

/* Logo del encabezado */

header .header-brand {
    margin: 0;
}

header .header-logo {
    display: block;
    width: 340px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Adaptación para celulares */

@media (max-width: 720px) {
    header .header-logo {
        width: 260px;
        margin: 0 auto;
    }
}

/* Encabezado principal */

header {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

header .header-logo {
    margin: 0 auto;
}

.header-info {
    margin-top: 20px;
}

header .candidata-nombre {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
}

header .candidata-cargo {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0 0;
}

header .header-formulario {
    font-size: 16px;
    font-weight: 500;
    border-top: 1px solid #ffffff50;
    max-width: 650px;
    margin: 18px auto 0;
    padding-top: 14px;
}