/* ==========================================================================
   DISEÑO PREMIUM ESTILO CUESTIONARIO FINTECH
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.65;
    padding: 3rem 1rem;
}

.container {
    max-width: 800px; /* Más estrecho para enfocar la lectura del quiz */
    margin: 0 auto;
}

/* ENLACE VOLVER AL PORTAL */
.back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #312e81;
}

/* CABECERA */
header {
    margin-bottom: 3.5rem;
    text-align: left;
    border-left: 4px solid #6366f1; /* Color índigo del test */
    padding-left: 1.5rem;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

header p {
    color: #64748b;
    font-size: 1.05rem;
}

/* LA TARJETA CONTENEDORA DEL TEST */
.quiz-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.02);
    margin-bottom: 4rem;
}

/* BARRA DE PROGRESO INVISIBLEMENTE AGRADABLE */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 999px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PASOS DEL CUESTIONARIO (Ocultar/Mostrar de forma limpia) */
.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-counter {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6366f1;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.quiz-step h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* OPCIONES TRANSFORMADAS EN TARJETAS SELECCIONABLES */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.option-item {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.option-item:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Ocultar el radio button feo por defecto */
.option-item input[type="radio"] {
    margin-right: 1.25rem;
    width: 18px;
    height: 18px;
    accent-color: #6366f1; /* Da el tono premium en navegadores modernos */
}

.option-item span {
    font-size: 0.98rem;
    font-weight: 500;
    color: #334155;
}

/* Cuando el usuario hace click, cambia el estilo de la tarjeta via CSS de proximidad */
.option-item:has(input[type="radio"]:checked) {
    background-color: #f5f3ff;
    border-color: #c7d2fe;
    box-shadow: 0 0 0 1px #6366f1;
}

.option-item:has(input[type="radio"]:checked) span {
    color: #1e1b4b;
    font-weight: 600;
}

/* NAVEGACIÓN Y BOTONES */
.quiz-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

button {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary { background-color: #0f172a; color: #ffffff; }
.btn-primary:hover { background-color: #1e293b; }

.btn-secondary { background-color: #e2e8f0; color: #475569; }
.btn-secondary:hover { background-color: #cbd5e1; }

.btn-success { background-color: #6366f1; color: #ffffff; }
.btn-success:hover { background-color: #4f46e5; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }

/* ==========================================================================
   PANEL DE RESULTADOS PRESTIGIO FINANCIERO
   ========================================================================== */
.results-panel {
    text-align: center;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-panel h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1rem;
}

.score-display {
    margin-bottom: 1rem;
}

#score-number {
    font-size: 5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.05em;
    line-height: 1;
}

.score-max {
    font-size: 1.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.badge-status {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.badge-status.success { background-color: #d1fae5; color: #065f46; }
.badge-status.warning { background-color: #fef3c7; color: #92400e; }
.badge-status.danger { background-color: #fee2e2; color: #991b1b; }

.feedback-text {
    font-size: 1.05rem;
    color: #475569;
    max-width: 620px;
    margin: 0 auto 2.5rem auto;
}

/* Caja contenedora de recomendaciones */
.action-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem;
    text-align: left;
}

.action-box h3 {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.action-box ul {
    list-style: none;
}

.action-box li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #475569;
}

.action-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
}

/* ==========================================================================
   SECCIÓN SEO PERFECTO DE TEXTO LARGO
   ========================================================================== */
.seo-content {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid #e2e8f0;
}

.seo-content h2 {
    font-size: 1.5rem;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.seo-content h3 {
    font-size: 1.18rem;
    color: #0f172a;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    font-weight: 700;
}

.seo-content p {
    color: #475569;
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.seo-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.75rem;
    color: #475569;
    font-size: 0.98rem;
}

.seo-content li {
    margin-bottom: 0.85rem;
}

.seo-content strong {
    color: #0f172a;
}

/* PIE DE PÁGINA */
footer {
    margin-top: 6rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

footer p {
    margin-bottom: 0.35rem;
}

/* Efecto hover suave para el botón de Buy Me a Coffee */
.support-section a:hover img, .privacy-box a:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}