/* ============================================================
 *  CUESTIONARIO VPH · drkerimrivera.com
 *  Origen: prototipo Kerim_23_02_2026 (versión "bonita" del home)
 *  Uso: 4 subpáginas (colpo, pap, pcr-vph, androscopia) + home
 *  No depende de Bootstrap. Sólo CSS vanilla.
 * ============================================================ */

/* ---------- Contenedor ---------- */
.contenedor-cuestionario {
    max-width: 620px;
    margin: 20px auto 40px auto;
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 56, 120, 0.08);
    position: relative;
    overflow: hidden;
    text-align: left;
    border: 1px solid var(--border-color, #e0e6ed);
}

.contenedor-cuestionario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #2196F3, #0056b3);
}

.contenedor-cuestionario h2 {
    font-family: 'Playfair Display', Georgia, serif;
    text-align: center;
    color: #0056b3;
    font-size: 1.6rem;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.subtitulo-q {
    text-align: center;
    color: #7a8a9e;
    font-size: 0.9rem;
    margin-bottom: 22px;
}

/* ---------- Nota confidencial ---------- */
.nota-confidencial {
    background-color: #eef5fc;
    border-left: 4px solid #0056b3;
    padding: 14px 16px;
    font-size: 13.5px;
    margin-bottom: 22px;
    color: #3a4a5c;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

.nota-confidencial strong {
    display: block;
    margin-bottom: 4px;
    color: #0056b3;
}

/* ---------- Consentimiento ---------- */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    cursor: pointer;
    color: #444;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #0056b3;
    flex-shrink: 0;
}

/* ---------- Botones ---------- */
.btn-principal-q {
    background: linear-gradient(135deg, #0056b3, #003d80);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-principal-q:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}

.btn-principal-q:disabled {
    background: #c5d0dc;
    cursor: not-allowed;
}

/* ---------- Preguntas ---------- */
.pregunta-q {
    margin-bottom: 18px;
    padding: 16px;
    background: #fafbfd;
    border-radius: 10px;
    border: 1px solid #e8edf2;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.pregunta-q.respondida {
    border-color: #0056b3;
    background: #f5f9ff;
}

.pregunta-q p {
    font-size: 14.5px;
    font-weight: 600;
    color: #2a3a4e;
    margin-bottom: 10px;
}

.pregunta-q label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: background 0.2s ease;
}

.pregunta-q label:hover {
    background: rgba(0, 86, 179, 0.05);
}

.pregunta-q input[type="radio"] {
    accent-color: #0056b3;
    cursor: pointer;
}

/* ---------- Semáforo ---------- */
.semaforo-container {
    background-color: #e9ecef;
    border-radius: 12px;
    height: 22px;
    width: 100%;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #d0d5dc;
    display: none;
}

.semaforo-barra {
    height: 100%;
    width: 0%;
    transition: width 0.6s ease, background-color 0.4s ease;
    border-radius: 12px;
}

.progreso-texto {
    display: none;
    text-align: center;
    font-size: 13px;
    color: #7a8a9e;
    margin-bottom: 18px;
}

/* ---------- Resultado ---------- */
#resultadoTexto {
    margin-top: 22px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    text-align: center;
    animation: fadeInVPH 0.5s ease;
}

#resultadoTexto h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

#resultadoTexto p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.resultado-verde {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.resultado-amarillo {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #f57f17;
}

.resultado-rojo {
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* ---------- Botones finales ---------- */
.btn-whatsapp-q {
    background: linear-gradient(135deg, #25D366, #1fba59);
    color: white;
    padding: 15px 24px;
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    text-decoration: none;
    display: none;
    text-align: center;
    margin-top: 16px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.btn-whatsapp-q:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-reiniciar-q {
    background: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    display: none;
    transition: background 0.2s ease;
}

.btn-reiniciar-q:hover {
    background: rgba(0, 86, 179, 0.05);
}

/* ---------- Animación ---------- */
@keyframes fadeInVPH {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .contenedor-cuestionario {
        margin: 16px 10px 30px 10px;
        padding: 24px 18px;
        border-radius: 12px;
    }
    .contenedor-cuestionario h2 {
        font-size: 1.35rem;
    }
    .nota-confidencial {
        font-size: 13px;
        padding: 12px 14px;
    }
    .pregunta-q {
        padding: 14px;
    }
}
