/* Contenedor general */
.main-diagnostico {
    padding: 6rem 1.5rem 4rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, #ffffff, #e3f3ff);
}

.diagnostico-contenedor {
    max-width: 960px;
    width: 100%;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem 3rem;
}

/* Títulos */
.diagnostico-titulo {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.diagnostico-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* Indicador de pasos */
.diagnostico-pasos-indicador {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.paso-indicador {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #0077ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0077ff;
    background: #fff;
    transition: all 0.25s ease;
}

.paso-indicador.activo {
    background: #0077ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 119, 255, 0.3);
}

/* Formulario */
.diagnostico-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.paso {
    display: none;
}

.paso.active {
    display: block;
}

.paso h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.paso-descripcion {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Opciones (radios bonitos) */
.opcion {
    margin-bottom: 0.75rem;
}

.opcion input[type="radio"] {
    display: none;
}

.opcion label {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid #d4e4ff;
    background: #f7fbff;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.opcion input[type="radio"]:checked + label {
    border-color: #0077ff;
    background: #e6f1ff;
    box-shadow: 0 6px 14px rgba(0, 119, 255, 0.2);
}

/* Navegación entre pasos */
.diagnostico-nav {
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn-nav,
.btn-resultado {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn-anterior {
    background: #f2f4f8;
    color: #555;
}

#btn-anterior:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#btn-anterior:not(:disabled):hover {
    background: #e3e6ec;
}

#btn-siguiente {
    background: #0077ff;
    color: #fff;
}

#btn-siguiente:hover {
    background: #005fd1;
}

.btn-resultado {
    background: #00b894;
    color: #fff;
}

.btn-resultado:hover {
    background: #009e7f;
}

/* Resultado */
.resultado-sitio {
    margin-top: 2.5rem;
    padding: 1.8rem 1.5rem;
    border-radius: 1.3rem;
    background: #f5f9ff;
    border: 1px solid #d6e4ff;
    text-align: center;
    animation: aparecer 0.4s ease-out;
}

.resultado-sitio.oculto {
    display: none;
}

.resultado-icono {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.resultado-titulo {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.resultado-descripcion {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: #444;
}

.btn-ver-mas {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: #0077ff;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-ver-mas:hover {
    background: #005fd1;
    transform: translateY(-1px);
}

/* Animación */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .diagnostico-contenedor {
        padding: 1.8rem 1.4rem 2.4rem;
    }

    .diagnostico-titulo {
        font-size: 1.8rem;
    }

    .diagnostico-pasos-indicador {
        gap: 0.5rem;
    }
}
