/* ===== Reset mínimo ===== */
.voting-container * {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ===== Layout ===== */
.voting-container {
    display: flex;
    justify-content: center;
    padding: 40px 15px;
    background: #f4f6f9;
}

.voting-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ===== Títulos ===== */
.voting-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #0f172a;
}

.voting-card .subtitle {
    margin-bottom: 24px;
    font-size: 14px;
    color: #475569;
}

/* ===== Campos ===== */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
}

.field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===== Botón ===== */
.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

/* ===== Resultado ===== */
.result {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.result.success {
    background: #ecfdf5;
    border: 1px solid #34d399;
    color: #065f46;
    padding: 12px;
    border-radius: 10px;
}

.result.error {
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #7f1d1d;
    padding: 12px;
    border-radius: 10px;
}

/* ===== WhatsApp ===== */
.whatsapp-btn {
    display: block;
    margin-top: 26px;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: #22c55e;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.whatsapp-btn:hover {
    background: #16a34a;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .voting-card {
        padding: 24px;
    }
}




/* Sección oculta */
#voting-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

/* Sección visible */
#voting-section.active {
    max-height: 2000px; /* suficiente para el formulario */
    opacity: 1;
    transform: translateY(0);
}

