/* PJ Misiones – Consulta Padrón | Estilos */
#pj-padron-widget {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 680px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(13,43,92,.18);
}

/* Header */
.pj-header {
    background: #0D2B5C;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 28px;
}
.pj-logo { height: 64px; width: auto; }
.pj-header-text h2 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
}
.pj-header-text p {
    color: #94A3B8;
    margin: 0;
    font-size: .85rem;
}

/* Search box */
.pj-search-box {
    background: #F8FAFC;
    padding: 28px;
    border-bottom: 1px solid #E2E8F0;
}
.pj-search-box label {
    display: block;
    font-weight: 600;
    color: #0D2B5C;
    margin-bottom: 10px;
    font-size: 1rem;
}
.pj-input-row {
    display: flex;
    gap: 10px;
}
.pj-input-row input[type=number] {
    flex: 1;
    padding: 13px 16px;
    border: 2px solid #CBD5E1;
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color .2s;
    -moz-appearance: textfield;
}
.pj-input-row input[type=number]:focus { border-color: #1B4F9A; }
.pj-input-row input::-webkit-outer-spin-button,
.pj-input-row input::-webkit-inner-spin-button { -webkit-appearance: none; }
#pj-buscar-btn {
    background: #0D2B5C;
    color: #fff;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
#pj-buscar-btn:hover { background: #1B4F9A; }
.pj-hint { color: #94A3B8; font-size: .8rem; margin: 8px 0 0; }

/* Loading */
.pj-loading {
    text-align: center;
    padding: 20px;
    color: #1B4F9A;
    font-weight: 600;
    background: #F8FAFC;
}

/* Error */
.pj-error {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
    padding: 16px 20px;
    font-size: .95rem;
}

/* Resultado */
.pj-resultado { background: #fff; padding: 24px 28px; }
.pj-elector { margin-bottom: 20px; }
.pj-badge {
    display: inline-block;
    background: #D1FAE5;
    color: #065F46;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.pj-elector h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #0D2B5C;
    font-weight: 700;
}

/* Grid de datos */
.pj-datos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.pj-dato {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 16px;
}
.pj-dato-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.pj-dato-valor {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #0D2B5C;
}
.pj-mesa {
    font-size: 1.8rem !important;
    color: #C8A84B !important;
    font-weight: 800 !important;
}

/* Maps button */
.pj-maps-btn {
    display: inline-block;
    background: #1B4F9A;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 16px;
    transition: background .2s;
}
.pj-maps-btn:hover { background: #0D2B5C !important; }

/* Fecha */
.pj-fecha {
    margin: 12px 0 0;
    color: #64748B;
    font-size: .9rem;
    border-top: 1px solid #E2E8F0;
    padding-top: 12px;
}

@media (max-width: 520px) {
    .pj-datos-grid { grid-template-columns: 1fr; }
    .pj-input-row { flex-direction: column; }
    .pj-header { flex-direction: column; text-align: center; }
}
